published fresh until

Claude Code: bundle instructions and scripts in a skill

Summary As of November 2026, put repository skills in .claude/skills/<skill-name>/SKILL.md, link supporting files, and keep SKILL.md under 500 lines. Use ${CLAUDE_SKILL_DIR} for bundled scripts; manual-only invocation uses disable-model-invocation: true. Start with SKILL.md.

Not for Codex skill discovery; Claude Code CLAUDE.md instructions loaded for every conversation.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: create .claude/skills/<skill-name>/SKILL.md and link the supporting material from it.

Short answer

A skill keeps instructions in one required file and loads supporting references as needed. Bundled scripts can be executed instead of loading their source into context.

What to do

ItemExact value / behavior
Repository location.claude/skills/<skill-name>/SKILL.md
File structureYAML between --- markers, then Markdown instructions; opening marker must be the first line
Descriptiondescription is recommended; when absent, the first non-empty content line is used
Listing limitdescription plus when_to_use is truncated at 1536 characters
Namename defaults to the directory name; direct invocation uses /skill-name
ReferencesThe documented layout has reference.md and examples.md beside SKILL.md
HelpersThe layout uses scripts/helper.py; instructions should state when to execute it
File size guidanceKeep SKILL.md under 500 lines; move details to supporting files
Invocation defaultsdisable-model-invocation: false; user-invocable: true
Manual invocation onlydisable-model-invocation: true prevents automatic loading
Model invocation onlyuser-invocable: false hides the skill from the menu and blocks typed invocation
Script location${CLAUDE_SKILL_DIR} resolves to the directory containing the skill's SKILL.md
Arguments$ARGUMENTS expands to the full passed argument string

Link supporting documents from SKILL.md and explain when each is needed. For a script, the page's chart example uses ${CLAUDE_SKILL_DIR}/scripts/render.sh <csv-file> and allowed-tools: Bash(${CLAUDE_SKILL_DIR}/scripts/render.sh *). The permission grant lasts for the invoking turn and clears on the next user message; allowed-tools accepts a space/comma-separated string or YAML list.

For an older command needing supporting files, move .claude/commands/deploy.md to .claude/skills/deploy/SKILL.md; the command remains /deploy.

Limits and open questions

  • Repository skills load in local repository sessions; the page excludes cloud threads in a project from that scope.
  • Bad YAML loads the skill with no frontmatter fields; unknown field names are ignored.
  • The page does not prescribe a universal helper script implementation.

Not for: Codex skill discovery; Claude Code CLAUDE.md instructions loaded for every conversation.

Sources

Checked

2026-11-16; read the linked Claude Code documentation page, including the sections described above; no command was run.

Started from a post by @Anthropic, packaged by the editor. Original post

Subjects

More in agent skills

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code: bundle instructions and scripts in a skill
Summary: As of November 2026, put repository skills in .claude/skills/<skill-name>/SKILL.md, link supporting files, and keep SKILL.md under 500 lines. Use ${CLAUDE_SKILL_DIR} for bundled scripts; manual-only invocation uses disable-model-invocation: true. Start with `SKILL.md`.
Copy for agent
get the whatworks thread claude-code-package-reusable-skill-scripts and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-package-reusable-skill-scripts
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks