Back to skills
SKILL.md
2627 Skill Structure Summary 2025 11 30 29527039
ASecurity**Date:** 2025-11-30 **Analysis Type:** Comparative Structure Assessment **Repositories:** anthropics/skills vs. claude-mpm-skills
- 9 stars
- 0 votes
- 0 copies
- 0 views
- Added October 11, 2026
Works with
Security analysis
100/100npx -y skills add tools-only/X-Skills --skill 2627-skill-structure-summary-2025-11-30_29527039 --agent claude-codeAre you the author of 2627 Skill Structure Summary 2025 11 30 29527039?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-2627-skill-structure-summary-2025-11-30-29527039)# Skill Structure Analysis - Executive Summary
**Date:** 2025-11-30
**Analysis Type:** Comparative Structure Assessment
**Repositories:** anthropics/skills vs. claude-mpm-skills
## TL;DR
**Finding:** Our SKILL.md files are 2-3x larger than Anthropic's official structure due to embedding all code inline instead of using separate runnable examples.
**Impact:** 25 skills need restructuring, 4-5 week timeline, significant UX and maintainability improvements.
**Action:** Extract code to examples/ and scripts/, slim down SKILL.md files to focus on concepts.
## Key Metrics
### Current State (claude-mpm-skills)
- **Total skills:** 87
- **Average SKILL.md size:** 900 lines
- **Largest SKILL.md:** 2,432 lines (langgraph)
- **Code blocks per skill:** 40-160
- **Separate code files:** 0
- **Skills with references/:** 20
### Target State (Anthropic alignment)
- **Total skills:** 87 (unchanged)
- **Average SKILL.md size:** 500 lines (44% reduction)
- **Largest SKILL.md:** 800 lines (max target)
- **Code blocks per skill:** 20-30 (snippets only)
- **Separate code files:** ~75 working examples
- **Skills with examples/:** 25
## Anthropic's Structure Pattern
### Simple Skill (Most Common)
```
skill-name/
├── SKILL.md # Concepts + snippets
└── LICENSE.txt # Optional
```
### With Code Samples
```
skill-name/
├── SKILL.md # Concepts + references
├── examples/ # Runnable code
│ ├── basic_example.py
│ └── advanced_example.py
└── scripts/ # Utilities
└── helper.py
```
### Complex Example (webapp-testing)
```
webapp-testing/
├── SKILL.md # Core documentation
├── examples/ # Demonstrations
│ ├── console_logging.py
│ ├── element_discovery.py
│ └── static_html_automation.py
├── scripts/ # Utilities
│ └── with_server.py
└── LICENSE.txt
```
## Our Current Pattern
### Standard (67/87 skills)
```
skill-name/
├── SKILL.md # All code inline, 1000-2500 lines
└── metadata.json # Enhanced metadata
```
### With References (20/87 skills)
```
skill-name/
├── SKILL.md # Large, code-heavy
├── metadata.json
└── references/ # Extended docs
├── examples.md
├── workflow.md
└── anti-patterns.md
```
## Gap Analysis
| Aspect | Anthropic | Our Current | Gap |
|--------|-----------|-------------|-----|
| SKILL.md size | 300-800 lines | 900-2500 lines | ❌ 2-3x too large |
| Code organization | Separate files | Inline blocks | ❌ No runnable examples |
| Examples directory | Common | None | ❌ Missing pattern |
| Scripts directory | Common | None | ❌ Missing utilities |
| References directory | None | 20 skills | ✓ Our innovation |
| Metadata | Minimal | Enhanced | ✓ Our innovation |
## Why This Matters
### User Experience Issues
1. **Token consumption:** Large SKILL.md files consume excessive context
2. **Not runnable:** Inline code can't be executed directly
3. **Hard to navigate:** 2000+ line files are difficult to scan
4. **Copy-paste friction:** Users must extract code from markdown
### Maintenance Issues
1. **Code accuracy:** Embedded code harder to test
2. **Update burden:** Code changes require doc updates
3. **Version control:** Large diffs for small code changes
4. **Testing:** Can't verify examples independently
### Benefits of Anthropic's Approach
1. **Runnable examples:** Copy entire working projects
2. **Token efficiency:** Load code on demand
3. **Better organization:** Clear code/docs separation
4. **Easier maintenance:** Test examples independently
5. **User-friendly:** Quick start scripts and templates
## Skills Requiring Restructuring
### Tier 1: Large Framework Skills (High Priority)
1. **langgraph/** (2,432 lines) - AI framework with complex patterns
2. **tanstack-query/** (2,397 lines) - State management patterns
3. **graphql/** (2,311 lines) - Schema and resolver examples
4. **tRPC/** (2,091 lines) - Type-safe API patterns
5. **celery/** (2,089 lines) - Async task queue patterns
6. **session-compression/** (2,028 lines) - AI optimization techniques
7. **django/** (1,600 lines, 86 blocks) - Web framework
8. **fastapi-local-dev/** (1,200 lines, 160 blocks) - API framework
### Tier 2: Medium Framework Skills
9. **wordpress-testing-qa/** (1,956 lines)
10. **turborepo/** (1,769 lines)
11. **wordpress-advanced-architecture/** (1,688 lines)
12. **wordpress-security-validation/** (1,610 lines)
13. **asyncio/** (1,564 lines)
14. **dspy/** (1,541 lines)
15. **flask/** (1,463 lines)
16. **docker/** (1,452 lines)
17. **github-actions/** (1,432 lines)
### Tier 3: Universal Skills (Multi-Language)
18. **web-performance-optimization/** (2,305 lines)
19. **systematic-debugging/** (existing references/)
20. **test-driven-development/** (existing references/)
21. **dispatching-parallel-agents/** (existing references/)
22. **root-cause-tracing/** (existing references/)
23. **verification-before-completion/** (existing references/)
## Recommended Hybrid Structure
**Best of Both Worlds:**
```
skill-name/
├── SKILL.md # Core concepts (400-800 lines)
├── metadata.json # Keep our enhanced metadata
├── examples/ # NEW: Anthropic pattern
│ ├── basic/
│ ├── intermediate/
│ └── advanced/
├── scripts/ # NEW: Anthropic pattern
│ └── setup.sh
└── references/ # KEEP: Our innovation
├── examples.md # Walkthrough guides
├── workflow.md # Process docs
└── anti-patterns.md # What to avoid
```
**Division of Content:**
- **SKILL.md:** Principles, patterns, short snippets (5-15 lines)
- **examples/:** Complete runnable code (working projects)
- **scripts/:** Setup and utility automation
- **references/:** Extended guides and walkthroughs
- **metadata.json:** Enhanced skill information
## Implementation Timeline
### Week 1: Templates & Pilot
- Create framework-skill and multi-language templates
- Restructure fastapi-local-dev/ (pilot)
- Restructure test-driven-development/ (pilot)
- Document learnings
### Week 2-3: Bulk Restructuring
- Week 2: Tier 1 skills (langgraph, django, tanstack-query, etc.)
- Week 3: Tier 2 skills (flask, docker, github-actions, etc.)
### Week 4: Universal Skills
- Add multi-language examples to TDD, debugging, etc.
- Enhance web-performance-optimization
### Week 5: Validation
- Test all examples
- Update documentation
- Create contributor guide
- Final review
## Success Metrics
### Technical Metrics
- [ ] Average SKILL.md reduced from 900 to 500 lines (44%)
- [ ] 25 skills with examples/ directories
- [ ] ~75 runnable code examples created
- [ ] All examples tested and working
### Quality Metrics
- [ ] No broken references in SKILL.md files
- [ ] All examples have README.md
- [ ] Scripts are executable and documented
- [ ] Progressive disclosure maintained
### User Experience Metrics
- [ ] Reduced token consumption on skill load
- [ ] Users can run examples immediately
- [ ] Clear learning progression (basic → advanced)
- [ ] Quick start scripts for common tasks
## Risks and Mitigation
### Risk 1: Breaking Changes
**Mitigation:** Git branches, backups, incremental rollout
### Risk 2: Time Overrun
**Mitigation:** Prioritize high-value skills, accept partial completion
### Risk 3: Inconsistency
**Mitigation:** Templates, clear guidelines, code review
### Risk 4: Example Quality
**Mitigation:** Testing protocol, peer review, user feedback
## Next Steps
### Immediate Actions (This Week)
1. ✅ Review and approve analysis
2. ⏳ Create templates (.templates/ directory)
3. ⏳ Start pilot with fastapi-local-dev/
4. ⏳ Start pilot with test-driven-development/
### Short-term (Week 2-3)
5. Evaluate pilot results
6. Refine process based on learnings
7. Begin bulk restructuring
### Long-term (Week 4-5)
8. Complete universal skills enhancement
9. Final validation and testing
10. Update all documentation
## Conclusion
**The restructuring is warranted because:**
1. Aligns with official Anthropic standards
2. Significantly improves user experience
3. Enhances maintainability and testability
4. Reduces token consumption
5. Provides runnable starter projects
**The hybrid approach is optimal because:**
1. Keeps our references/ innovation (documentation depth)
2. Adopts Anthropic's examples/ pattern (runnable code)
3. Adds scripts/ for utilities (developer experience)
4. Maintains metadata.json (enhanced information)
**Estimated ROI:**
- **Effort:** 80-100 hours over 4-5 weeks
- **Impact:** 25 skills improved, ~75 runnable examples
- **User benefit:** Faster onboarding, better learning, reduced friction
- **Maintenance:** Easier testing, clearer code/docs separation
---
**Status:** Analysis Complete, Ready for Implementation
**Full Details:** See anthropic-skills-structure-analysis-2025-11-30.md
**Action Plan:** See skill-restructuring-action-plan-2025-11-30.md
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.