MCPcopy Create free account

hub / github.com/agentskills/agentskills / functions

Functions65 in github.com/agentskills/agentskills

↓ 22 callersFunctionvalidate
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 callersFunctionread_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 callersFunctionparse_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 callersFunctionfind_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 callersFunctionto_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 callersFunction_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 callersFunctionshuffle
(arr)
docs/snippets/ClientShowcase.jsx:7
↓ 2 callersMethodto_dict
Convert to dictionary, excluding None values.
skills-ref/src/skills_ref/models.py:28
↓ 1 callersFunction_validate_compatibility
Validate compatibility format.
skills-ref/src/skills_ref/validator.py:87
↓ 1 callersFunction_validate_description
Validate description format.
skills-ref/src/skills_ref/validator.py:70
↓ 1 callersFunction_validate_metadata_fields
Validate that only allowed fields are present.
skills-ref/src/skills_ref/validator.py:104
↓ 1 callersFunction_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 callersFunctionmain
Reference library for Agent Skills.
skills-ref/src/skills_ref/cli.py:22
↓ 1 callersFunctionshuffle
(items)
docs/snippets/LogoCarousel.jsx:10
↓ 1 callersFunctionsort
(clients)
docs/snippets/ClientShowcase.jsx:16
↓ 1 callersFunctionvalidate_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
FunctionClientShowcase
({clients})
docs/snippets/ClientShowcase.jsx:6
FunctionLogo
({ client })
docs/snippets/ClientShowcase.jsx:26
FunctionLogo
({ client })
docs/snippets/LogoCarousel.jsx:31
FunctionLogoCarousel
({clients})
docs/snippets/LogoCarousel.jsx:5
FunctionToggleButton
({ 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
Functionread_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
Functiontest_allowed_tools_accepted
allowed-tools is accepted (experimental feature).
skills-ref/tests/test_validator.py:150
Functiontest_compatibility_too_long
Compatibility exceeding 500 chars should fail.
skills-ref/tests/test_validator.py:251
Functiontest_description_too_long
Description exceeding 1024 chars should fail.
skills-ref/tests/test_validator.py:221
Functiontest_empty_list
()
skills-ref/tests/test_prompt.py:6
Functiontest_find_skill_md_accepts_lowercase
skill.md should be accepted when SKILL.md doesn't exist.
skills-ref/tests/test_parser.py:139
Functiontest_find_skill_md_prefers_uppercase
SKILL.md should be preferred over skill.md when both exist.
skills-ref/tests/test_parser.py:128
Functiontest_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
Functiontest_i18n_chinese_name
Chinese characters are allowed in skill names.
skills-ref/tests/test_validator.py:165
Functiontest_i18n_russian_lowercase_valid
Russian lowercase names should be accepted.
skills-ref/tests/test_validator.py:193
Functiontest_i18n_russian_name_with_hyphens
Russian names with hyphens are allowed.
skills-ref/tests/test_validator.py:179
Functiontest_i18n_russian_uppercase_rejected
Russian uppercase names should be rejected.
skills-ref/tests/test_validator.py:207
Functiontest_invalid_name_uppercase
(tmp_path)
skills-ref/tests/test_validator.py:41
Functiontest_invalid_yaml
()
skills-ref/tests/test_parser.py:44
Functiontest_missing_description
(tmp_path)
skills-ref/tests/test_parser.py:116
Functiontest_missing_frontmatter
()
skills-ref/tests/test_parser.py:29
Functiontest_missing_name
(tmp_path)
skills-ref/tests/test_parser.py:104
Functiontest_missing_skill_md
(tmp_path)
skills-ref/tests/test_parser.py:99
Functiontest_missing_skill_md
(tmp_path)
skills-ref/tests/test_validator.py:33
Functiontest_multiple_skills
(tmp_path)
skills-ref/tests/test_prompt.py:29
Functiontest_name_consecutive_hyphens
(tmp_path)
skills-ref/tests/test_validator.py:81
Functiontest_name_directory_mismatch
(tmp_path)
skills-ref/tests/test_validator.py:107
Functiontest_name_invalid_characters
(tmp_path)
skills-ref/tests/test_validator.py:94
Functiontest_name_leading_hyphen
(tmp_path)
skills-ref/tests/test_validator.py:68
Functiontest_name_too_long
(tmp_path)
skills-ref/tests/test_validator.py:54
Functiontest_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
Functiontest_non_dict_frontmatter
()
skills-ref/tests/test_parser.py:55
Functiontest_nonexistent_path
(tmp_path)
skills-ref/tests/test_validator.py:19
Functiontest_not_a_directory
(tmp_path)
skills-ref/tests/test_validator.py:25
Functiontest_read_properties_with_lowercase_skill_md
read_properties should work with lowercase skill.md.
skills-ref/tests/test_parser.py:158
Functiontest_read_valid_skill
(tmp_path)
skills-ref/tests/test_parser.py:67
Functiontest_read_with_allowed_tools
allowed-tools should be parsed into SkillProperties.
skills-ref/tests/test_parser.py:173
Functiontest_read_with_metadata
(tmp_path)
skills-ref/tests/test_parser.py:83
Functiontest_single_skill
(tmp_path)
skills-ref/tests/test_prompt.py:11
Functiontest_special_characters_escaped
XML special characters in description are escaped.
skills-ref/tests/test_prompt.py:55
Functiontest_unclosed_frontmatter
()
skills-ref/tests/test_parser.py:35
Functiontest_unexpected_fields
(tmp_path)
skills-ref/tests/test_validator.py:120
Functiontest_valid_compatibility
Valid compatibility field should be accepted.
skills-ref/tests/test_validator.py:236
Functiontest_valid_frontmatter
()
skills-ref/tests/test_parser.py:14
Functiontest_valid_skill
(tmp_path)
skills-ref/tests/test_validator.py:6
Functiontest_valid_with_all_fields
(tmp_path)
skills-ref/tests/test_validator.py:134
Functionto_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
Functionvalidate_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