Skip to content

llh315434220/anthropic-skill-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Anthropic Skill Builder for OpenClaw

License: MIT OpenClaw Compatible

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.

🎯 What This Skill Does

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

πŸš€ Quick Start

Installation

# For OpenClaw users
cd ~/.openclaw/skills
git clone https://github.com/llh315434220/anthropic-skill-builder.git

# Restart OpenClaw gateway
openclaw gateway restart

Usage

Once 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?"

πŸ“– Core Concepts

Progressive Disclosure (3 Levels)

Skills should reveal information progressively, not dump everything into context at once:

  1. Metadata (~100 words, always loaded)

    • Skill name + comprehensive description
    • All triggering logic goes here
  2. SKILL.md (<500 lines, loaded when triggered)

    • Core workflow and navigation
    • Links to detailed references
  3. Resources (loaded as needed)

    • scripts/ β€” Executable code
    • references/ β€” Detailed documentation
    • assets/ β€” Templates, images, etc.

The Golden Rule

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.

πŸ—οΈ Skill Structure

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

πŸ“š Design Patterns

Pattern 1: Multi-Framework Skill

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

Pattern 2: Basic + Advanced Skill

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

Pattern 3: Database Query Skill

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

πŸ› οΈ Workflow

  1. Understand β€” Gather 3-5 concrete examples
  2. Plan β€” Identify scripts, references, assets needed
  3. Structure β€” Create directory layout
  4. Write SKILL.md β€” Core workflow + navigation
  5. Create references β€” Split domain-specific details
  6. Add scripts β€” Package fragile/repetitive code
  7. Test β€” Validate all scripts work

πŸ“‹ Best Practices

βœ… Do:

  • 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

❌ Don't:

  • 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

πŸ“– Documentation

🀝 Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-pattern)
  3. Commit your changes (git commit -m 'Add amazing pattern')
  4. Push to the branch (git push origin feature/amazing-pattern)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

πŸ”— Resources

πŸ“§ Support


Made with ❀️ for the OpenClaw community

About

Production-quality Claude/OpenClaw skill builder following Anthropics official design patterns

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages