skill-creator
16
总安装量
5
周安装量
#21588
全站排名
安装命令
npx skills add https://github.com/carvalab/k-skills --skill skill-creator
Agent 安装分布
claude-code
4
trae
2
antigravity
2
codex
2
gemini-cli
2
Skill 文档
Skill Creator
Create effective agent skills using progressive disclosure. Skills are workflow capabilities, not documentation dumps. The goal is loading the right information at the right time.
Core Principle
Skills â Documentation
devopsisn’t “Cloudflare docs” â it’s the ability to deploy infrastructureui-stylingisn’t “Tailwind docs” â it’s the ability to design interfaces- Each skill teaches how to perform a task, not what a tool does
3-Tier Architecture
Tier 1: Metadata (always loaded)
âââ YAML frontmatter only (~100 words)
âââ Enough for Claude to decide relevance
Tier 2: SKILL.md entry point (loaded on activation)
âââ ~200 lines MAX
âââ Overview, quick start, navigation
âââ Points to references (doesn't include them)
Tier 3: references/ (loaded on-demand)
âââ 200-300 lines each
âââ Detailed documentation
âââ Focused on single topics
The 200-Line Rule
Entry point MUST be under 200 lines. This enables:
- Fast relevance scanning
- Quick reference selection
- 400-700 lines of relevant context vs 1,000+ of mixed relevance
If you can’t fit core instructions in 200 lines, you’re putting too much in the entry point.
Skill Structure
skills/my-skill/
âââ SKILL.md # Entry point (<200 lines)
âââ references/ # Detailed content
â âââ guide-a.md # 200-300 lines each
â âââ guide-b.md
â âââ examples.md
âââ scripts/ # Optional executable code
âââ assets/ # Optional templates
SKILL.md Template
---
name: skill-name
description: One-line description. When to use this skill.
tools: Read, Write, Edit, Bash # Optional
model: opus # Optional
---
# Skill Name
Brief description (2-3 sentences max).
## Quick Start
\`\`\`bash
# Essential commands only
\`\`\`
## Workflow
### 1. First Step
- Key points only
- No lengthy explanations
### 2. Second Step
- Action-oriented
- Link to references for details
## References
| Reference | Purpose |
|-----------|---------|
| `references/detailed-guide.md` | Full implementation details |
| `references/examples.md` | Code examples |
Writing Guidelines
- Imperative tone: “Run the build” not “You should run the build”
- Action-oriented: What to do, not what things are
- Progressive detail: Overview â Reference â Implementation
- No redundancy: Say it once, in the right place
When to Create vs Reference
Create a skill when:
- Task requires specific workflow knowledge
- Multiple steps with decision points
- Reusable across projects
Use references when:
- Detailed implementation specifics
- Code examples
- Edge cases and troubleshooting
Refactoring Bloated Skills
Signs you need to refactor:
- SKILL.md over 200 lines
- Loading 5+ skills causes context issues
- 90% of loaded content isn’t used
Process:
- Extract detailed sections to
references/ - Keep only overview in SKILL.md
- Add navigation table to references
- Test cold start (should load <500 lines)
References
| Reference | Purpose |
|---|---|
references/architecture.md |
3-tier system deep dive |
references/frontmatter.md |
YAML frontmatter spec |
references/writing-guide.md |
Content writing best practices |
references/refactoring.md |
How to split bloated skills |
references/anti-patterns.md |
What NOT to do |
references/examples.md |
Complete skill examples |
Metrics
After creating/refactoring a skill:
- Entry point: <200 lines â
- Each reference: 200-300 lines â
- Cold start load: <500 lines â
- Relevant info ratio: >80% â