Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agentskills/agentskills
/ functions
Functions
65 in github.com/agentskills/agentskills
⨍
Functions
65
◇
Types & classes
4
↓ 22 callers
Function
validate
Validate a skill directory. Args: skill_dir: Path to the skill directory Returns: List of validation error messages. Empty l
skills-ref/src/skills_ref/validator.py:150
↓ 9 callers
Function
read_properties
Read skill properties from SKILL.md frontmatter. This function parses the frontmatter and returns properties. It does NOT perform full valida
skills-ref/src/skills_ref/parser.py:67
↓ 7 callers
Function
parse_frontmatter
Parse YAML frontmatter from SKILL.md content. Args: content: Raw content of SKILL.md file Returns: Tuple of (metadata dict,
skills-ref/src/skills_ref/parser.py:30
↓ 6 callers
Function
find_skill_md
Find the SKILL.md file in a skill directory. Prefers SKILL.md (uppercase) but accepts skill.md (lowercase). Args: skill_dir: Path to
skills-ref/src/skills_ref/parser.py:12
↓ 5 callers
Function
to_prompt
Generate the <available_skills> XML block for inclusion in agent prompts. This XML format is what Anthropic uses and recommends for Claude models
skills-ref/src/skills_ref/prompt.py:9
↓ 3 callers
Function
_is_skill_md_file
Check if path points directly to a SKILL.md or skill.md file.
skills-ref/src/skills_ref/cli.py:15
↓ 2 callers
Function
shuffle
(arr)
docs/snippets/ClientShowcase.jsx:7
↓ 2 callers
Method
to_dict
Convert to dictionary, excluding None values.
skills-ref/src/skills_ref/models.py:28
↓ 1 callers
Function
_validate_compatibility
Validate compatibility format.
skills-ref/src/skills_ref/validator.py:87
↓ 1 callers
Function
_validate_description
Validate description format.
skills-ref/src/skills_ref/validator.py:70
↓ 1 callers
Function
_validate_metadata_fields
Validate that only allowed fields are present.
skills-ref/src/skills_ref/validator.py:104
↓ 1 callers
Function
_validate_name
Validate skill name format and directory match. Skill names support i18n characters (Unicode letters) plus hyphens. Names must be lowercase a
skills-ref/src/skills_ref/validator.py:25
↓ 1 callers
Function
main
Reference library for Agent Skills.
skills-ref/src/skills_ref/cli.py:22
↓ 1 callers
Function
shuffle
(items)
docs/snippets/LogoCarousel.jsx:10
↓ 1 callers
Function
sort
(clients)
docs/snippets/ClientShowcase.jsx:16
↓ 1 callers
Function
validate_metadata
Validate parsed skill metadata. This is the core validation function that works on already-parsed metadata, avoiding duplicate file I/O when
skills-ref/src/skills_ref/validator.py:118
Function
ClientShowcase
({clients})
docs/snippets/ClientShowcase.jsx:6
Function
Logo
({ client })
docs/snippets/ClientShowcase.jsx:26
Function
Logo
({ client })
docs/snippets/LogoCarousel.jsx:31
Function
LogoCarousel
({clients})
docs/snippets/LogoCarousel.jsx:5
Function
ToggleButton
({ active, onClick, icon, title })
docs/snippets/ClientShowcase.jsx:33
Method
__init__
(self, message: str, errors: list[str] | None = None)
skills-ref/src/skills_ref/errors.py:23
Function
read_properties_cmd
Read and print skill properties as JSON. Parses the YAML frontmatter from SKILL.md and outputs the properties as JSON. Exit codes:
skills-ref/src/skills_ref/cli.py:55
Function
test_allowed_tools_accepted
allowed-tools is accepted (experimental feature).
skills-ref/tests/test_validator.py:150
Function
test_compatibility_too_long
Compatibility exceeding 500 chars should fail.
skills-ref/tests/test_validator.py:251
Function
test_description_too_long
Description exceeding 1024 chars should fail.
skills-ref/tests/test_validator.py:221
Function
test_empty_list
()
skills-ref/tests/test_prompt.py:6
Function
test_find_skill_md_accepts_lowercase
skill.md should be accepted when SKILL.md doesn't exist.
skills-ref/tests/test_parser.py:139
Function
test_find_skill_md_prefers_uppercase
SKILL.md should be preferred over skill.md when both exist.
skills-ref/tests/test_parser.py:128
Function
test_find_skill_md_returns_none_when_missing
find_skill_md should return None when no skill.md exists.
skills-ref/tests/test_parser.py:150
Function
test_i18n_chinese_name
Chinese characters are allowed in skill names.
skills-ref/tests/test_validator.py:165
Function
test_i18n_russian_lowercase_valid
Russian lowercase names should be accepted.
skills-ref/tests/test_validator.py:193
Function
test_i18n_russian_name_with_hyphens
Russian names with hyphens are allowed.
skills-ref/tests/test_validator.py:179
Function
test_i18n_russian_uppercase_rejected
Russian uppercase names should be rejected.
skills-ref/tests/test_validator.py:207
Function
test_invalid_name_uppercase
(tmp_path)
skills-ref/tests/test_validator.py:41
Function
test_invalid_yaml
()
skills-ref/tests/test_parser.py:44
Function
test_missing_description
(tmp_path)
skills-ref/tests/test_parser.py:116
Function
test_missing_frontmatter
()
skills-ref/tests/test_parser.py:29
Function
test_missing_name
(tmp_path)
skills-ref/tests/test_parser.py:104
Function
test_missing_skill_md
(tmp_path)
skills-ref/tests/test_parser.py:99
Function
test_missing_skill_md
(tmp_path)
skills-ref/tests/test_validator.py:33
Function
test_multiple_skills
(tmp_path)
skills-ref/tests/test_prompt.py:29
Function
test_name_consecutive_hyphens
(tmp_path)
skills-ref/tests/test_validator.py:81
Function
test_name_directory_mismatch
(tmp_path)
skills-ref/tests/test_validator.py:107
Function
test_name_invalid_characters
(tmp_path)
skills-ref/tests/test_validator.py:94
Function
test_name_leading_hyphen
(tmp_path)
skills-ref/tests/test_validator.py:68
Function
test_name_too_long
(tmp_path)
skills-ref/tests/test_validator.py:54
Function
test_nfkc_normalization
Skill names are NFKC normalized before validation. The name 'café' can be represented two ways: - Precomposed: 'café' (4 chars, 'é' is U+00E9
skills-ref/tests/test_validator.py:267
Function
test_non_dict_frontmatter
()
skills-ref/tests/test_parser.py:55
Function
test_nonexistent_path
(tmp_path)
skills-ref/tests/test_validator.py:19
Function
test_not_a_directory
(tmp_path)
skills-ref/tests/test_validator.py:25
Function
test_read_properties_with_lowercase_skill_md
read_properties should work with lowercase skill.md.
skills-ref/tests/test_parser.py:158
Function
test_read_valid_skill
(tmp_path)
skills-ref/tests/test_parser.py:67
Function
test_read_with_allowed_tools
allowed-tools should be parsed into SkillProperties.
skills-ref/tests/test_parser.py:173
Function
test_read_with_metadata
(tmp_path)
skills-ref/tests/test_parser.py:83
Function
test_single_skill
(tmp_path)
skills-ref/tests/test_prompt.py:11
Function
test_special_characters_escaped
XML special characters in description are escaped.
skills-ref/tests/test_prompt.py:55
Function
test_unclosed_frontmatter
()
skills-ref/tests/test_parser.py:35
Function
test_unexpected_fields
(tmp_path)
skills-ref/tests/test_validator.py:120
Function
test_valid_compatibility
Valid compatibility field should be accepted.
skills-ref/tests/test_validator.py:236
Function
test_valid_frontmatter
()
skills-ref/tests/test_parser.py:14
Function
test_valid_skill
(tmp_path)
skills-ref/tests/test_validator.py:6
Function
test_valid_with_all_fields
(tmp_path)
skills-ref/tests/test_validator.py:134
Function
to_prompt_cmd
Generate <available_skills> XML for agent prompts. Accepts one or more skill directories. Exit codes: 0: Success 1: Error
skills-ref/src/skills_ref/cli.py:80
Function
validate_cmd
Validate a skill directory. Checks that the skill has a valid SKILL.md with proper frontmatter, correct naming conventions, and required fiel
skills-ref/src/skills_ref/cli.py:29