Create production-quality Claude/OpenClaw skills following Anthropic's official design patterns.
This skill helps you design, structure, and refactor OpenClaw skills using Progressive Disclosure principles from Anthropic's Complete Guide to Building Skills for Claude.
Anthropic Skill Builder guides you through creating well-structured skills that:
- β Minimize context usage β Only load what Claude needs, when it needs it
- β Follow official patterns β Proven design patterns from Anthropic
- β Scale gracefully β Handle simple and complex use cases efficiently
- β Are maintainable β Clear structure, easy to update
# For OpenClaw users
cd ~/.openclaw/skills
git clone https://github.com/llh315434220/anthropic-skill-builder.git
# Restart OpenClaw gateway
openclaw gateway restartOnce installed, the skill triggers automatically when you ask about:
- Creating new skills
- Improving existing skills
- Refactoring skill structure
- Applying progressive disclosure patterns
Example prompts:
"Help me create a skill for PDF processing"
"Refactor my database-query skill to use progressive disclosure"
"My skill is too long, how do I split it into references?"
Skills should reveal information progressively, not dump everything into context at once:
-
Metadata (~100 words, always loaded)
- Skill name + comprehensive description
- All triggering logic goes here
-
SKILL.md (<500 lines, loaded when triggered)
- Core workflow and navigation
- Links to detailed references
-
Resources (loaded as needed)
scripts/β Executable codereferences/β Detailed documentationassets/β Templates, images, etc.
The context window is a public good.
Every token counts. Ask: "Does Claude really need this?"
Skills should provide only non-obvious procedural knowledge, not general capabilities Claude already has.
my-skill/
βββ SKILL.md # Main skill file (< 500 lines)
βββ scripts/ # Executable scripts (avoid rewriting fragile code)
β βββ example.py
β βββ helper.sh
βββ references/ # Detailed docs (loaded on demand)
β βββ API_REFERENCE.md
β βββ ADVANCED_PATTERNS.md
β βββ TROUBLESHOOTING.md
βββ assets/ # Templates, images, config files
βββ template.json
βββ icon.png
For skills supporting multiple frameworks/domains (AWS/GCP/Azure):
cloud-deploy/
βββ SKILL.md # Overview + framework selection
βββ references/
βββ aws.md # AWS-specific details
βββ gcp.md # GCP-specific details
βββ azure.md # Azure-specific details
Common operations in SKILL.md, complex cases in references:
pdf-processing/
βββ SKILL.md # Common operations
βββ references/
βββ FORMS.md # Form filling
βββ ENCRYPTION.md # Password protection
βββ OCR.md # Text extraction
Split schemas by domain to avoid loading irrelevant tables:
database-analytics/
βββ SKILL.md # Query patterns
βββ references/
βββ finance_schema.md
βββ sales_schema.md
βββ product_schema.md
See more patterns in references/PATTERNS.md
- Understand β Gather 3-5 concrete examples
- Plan β Identify scripts, references, assets needed
- Structure β Create directory layout
- Write SKILL.md β Core workflow + navigation
- Create references β Split domain-specific details
- Add scripts β Package fragile/repetitive code
- Test β Validate all scripts work
- Put ALL triggering logic in description (not body)
- Keep SKILL.md under 500 lines
- Split large skills into references/
- Use imperative voice: "Read X", not "You can read X"
- Test all scripts before committing
- Create README.md, CHANGELOG.md in skill directory (meta-docs belong in repo root)
- Exceed 500 lines in SKILL.md without splitting
- Explain things Claude already knows
- Nest references deeper than one level
- SKILL.md β Core skill implementation
- PATTERNS.md β Detailed design patterns with examples
- QUICK_REFERENCE.md β Cheat sheet for common tasks
- USAGE.md β Detailed usage guide with examples
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-pattern) - Commit your changes (
git commit -m 'Add amazing pattern') - Push to the branch (
git push origin feature/amazing-pattern) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Anthropic for the Complete Guide to Building Skills for Claude
- OpenClaw team for the extensible skill system
- All contributors who help improve skill design patterns
- Issues: GitHub Issues
- Discord: OpenClaw Community
- Documentation: OpenClaw Docs
Made with β€οΈ for the OpenClaw community