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.
Notice how scripts eliminate the need to regenerate complex code each time.### Real Example: mcp-builder ScriptsThe mcp-builder skill has simpler script needs:
scripts/
├── run_eval.py # Run MCP server evaluations
└── …
### Script Best Practices<Steps> <Step title="Make Scripts Self-Contained"> Include all dependencies, error handling, and documentation within the script. </Step> <Step title="Provide Clear Interfaces"> Use command-line arguments with `--help` documentation. </Step> <Step title="Test Thoroughly"> Scripts should handle edge cases - Claude won't fix bugs during execution. </Step> <Step title="Document in SKILL.md"> Show exactly how to invoke each script with examples. </Step></Steps>## references/ DirectoryThe `references/` directory contains detailed documentation loaded into context only when explicitly referenced.### When to Use References- **Large documentation** (>300 lines) that shouldn't always be in context- **Domain-specific guides** for different frameworks or platforms- **Technical specifications** needed for specific tasks- **Schema definitions** for data formats### Real Example: skill-creator ReferencesThe skill-creator skill uses references for schemas and agent instructions:
**schemas.md excerpt:**```markdown# JSON SchemasThis document defines the JSON schemas used by skill-creator.## evals.jsonDefines the evals for a skill. Located at `evals/evals.json`.```json{ "skill_name": "example-skill", "evals": [ { "id": 1, "prompt": "User's example prompt", "expected_output": "Description of expected result", "files": ["evals/files/sample1.pdf"] } ]}
**Referenced in SKILL.md:**```markdownSee `references/schemas.md` for the full schema (including the `assertions` field).
assets/└── eval_review.html # HTML template for evaluation viewer
Usage in SKILL.md:
Present the eval set to the user for review using the HTML template:1. Read the template from `assets/eval_review.html`2. Replace the placeholders: - `__EVAL_DATA_PLACEHOLDER__` → the JSON array - `__SKILL_NAME_PLACEHOLDER__` → the skill's name - `__SKILL_DESCRIPTION_PLACEHOLDER__` → current description3. Write to a temp file and open it
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.