Bundled Resources
Bundled resources extend skills beyond basic instructions by providing executable scripts, detailed reference documentation, and static assets. These resources are loaded only when needed, keeping context efficient.Directory Structure
scripts/ Directory
Thescripts/ directory contains executable code for deterministic or repetitive tasks.
When to Add Scripts
Repeated Work
If test runs all independently create similar helper code, bundle it as a script
Deterministic Tasks
Operations requiring exact behavior (parsing, validation, formatting)
Performance
Tasks where native code is faster than Claude generating it each time
Complexity
Multi-step operations with edge cases better handled in tested code
Real Example: skill-creator Scripts
The skill-creator skill includes 9 Python scripts:- Launch the viewer:
Real Example: mcp-builder References
The mcp-builder skill heavily uses references for different frameworks:- Keeps SKILL.md focused on workflow (237 lines)
- Loads detailed guides only when needed
- Supports multiple frameworks without bloating context
Reference Organization Patterns
Single Domain
Single Domain
Pattern: One main reference fileUse when: Single topic with comprehensive documentation
Multiple Domains
Multiple Domains
Pattern: One reference per domain/frameworkUse when: Supporting multiple platforms/frameworksSKILL.md guidance:
Hierarchical Topics
Hierarchical Topics
Pattern: Organized subdirectoriesUse when: Complex skill with natural topic hierarchy
Reference File Best Practices
1
Include Table of Contents
For files >300 lines, add a TOC at the top so Claude can navigate efficiently.
2
Use Clear Headings
Structure content with markdown headings for easy scanning.
3
Provide Context
Each reference should be understandable on its own, not require reading other files.
4
Link from SKILL.md
Always provide clear pointers: “Read
references/schemas.md for the full schema”assets/ Directory
Theassets/ directory contains static files embedded in skill outputs: templates, images, fonts, etc.
When to Use Assets
- Templates - HTML, document, or presentation templates
- Images - Logos, icons, graphics for outputs
- Fonts - Custom typography files
- Data files - Configuration, lookup tables, example data
Real Example: skill-creator Assets
Real Example: brand-guidelines Assets
While the brand-guidelines skill doesn’t currently have anassets/ directory, it could include:
Asset Best Practices
File Sizes: Keep assets reasonable. A 50MB template defeats the purpose of progressive loading.Portability: Use relative paths from the skill root:
assets/logo.png, not absolute paths.Licensing: Ensure you have rights to distribute any bundled assets.Documentation: Explain in SKILL.md what each asset is and when to use it.Deciding What to Bundle
Use this decision tree:Progressive Loading in Practice
Here’s how skill-creator uses progressive loading: Level 1: Always in context (frontmatter)references/schemas.md- Only when working with JSON structuresagents/grader.md- Only when spawning grading subagentscripts/aggregate_benchmark.py- Executes without loading into context
Next Steps
Best Practices
Learn how to write effective, maintainable skills
Skill Structure
Review the overall anatomy of a skill