Loading...
Loading...
Guide for creating effective agent skills. Use PROACTIVELY when creating new skills or refactoring bloated ones. Teaches progressive disclosure, 200-line rule, and 3-tier loading system.
npx skill4agent add carvalab/k-skills skill-creatordevopsui-stylingTier 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 topicsskills/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---
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 |references/| Reference | Purpose |
|---|---|
| 3-tier system deep dive |
| YAML frontmatter spec |
| Content writing best practices |
| How to split bloated skills |
| What NOT to do |
| Complete skill examples |