sample-skill
Use when validating the SkillForge validator itself - exercises every supported frontmatter feature: boolean user-invocable, an allowed-tools block list, and nested metadata with an inline list.
tripleyak · 已有 AI 审核记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add tripleyak/SkillForge --skill sample-skill技能说明
name: sample-skill description: "Use when validating the SkillForge validator itself - exercises every supported frontmatter feature: boolean user-invocable, an allowed-tools block list, and nested metadata with an inline list." license: MIT user-invocable: true allowed-tools:
- Read
- Grep
- Bash metadata: version: 1.2.3 author: skillforge-tests domains: [testing, meta]
Sample Skill
A fixture skill used by test_validate_skill.py. It uses every frontmatter feature the vendored YAML parser must support, and satisfies every structural check in validate_skill.py, so the full validator must report zero errors for it.
Process
- Run the validator against this directory.
- Assert that the error list is empty.
- Assert that typed values survived parsing (booleans stay booleans).
| Step | Check | Expected |
|---|---|---|
| 1 | frontmatter parse | no error |
| 2 | user-invocable | bool True |
| 3 | allowed-tools | list of 3 tools |
Verification
- validate_skill.py reports zero errors
- quick_validate.py reports the skill as valid
- user-invocable parsed as a boolean
Anti-Patterns
- Do not pin a dated model ID in frontmatter.
- Do not duplicate reference content in collapsible details blocks.
Extension Points
- Add hooks frontmatter once the vendored parser grows hook fixtures.
- Add a scripts/ directory to exercise script lint checks.