Skip to main content

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

All three directories are optional. Add them only when they provide clear value.

scripts/ Directory

The scripts/ 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:
Usage in SKILL.md:
  1. Launch the viewer:
scripts/ ├── run_eval.py # Run MCP server evaluations └── …
references/ └── schemas.md # JSON schemas for evals, grading, benchmarks agents/ ├── grader.md # Grading subagent instructions ├── comparator.md # Comparison subagent instructions └── analyzer.md # Analysis subagent instructions

Real Example: mcp-builder References

The mcp-builder skill heavily uses references for different frameworks:
Referenced in SKILL.md:
This pattern:
  1. Keeps SKILL.md focused on workflow (237 lines)
  2. Loads detailed guides only when needed
  3. Supports multiple frameworks without bloating context

Reference Organization Patterns

Pattern: One main reference file
Use when: Single topic with comprehensive documentation
Pattern: One reference per domain/framework
Use when: Supporting multiple platforms/frameworksSKILL.md guidance:
Pattern: Organized subdirectories
Use 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

The assets/ 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

Usage in SKILL.md:

Real Example: brand-guidelines Assets

While the brand-guidelines skill doesn’t currently have an assets/ directory, it could include:
Then reference in SKILL.md:

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)
Level 2: Loaded when skill triggers (SKILL.md body)
Level 3: Loaded as needed
  • references/schemas.md - Only when working with JSON structures
  • agents/grader.md - Only when spawning grading subagent
  • scripts/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