plugin:skill
FreeRuns bundled scriptsNot checkedUse when creating a skill, converting a memory file into one, debugging skill activation, or structuring skill content. For prompt wording, pair with…
by bendrucker★ 18 GitHub starsAbout this skill
Claude Code Skills Development
Arguments
Run a check against a skill path in $ARGUMENTS, defaulting to the skill you just edited:
--validate: runskill-lint(see Validation) for frontmatter, naming, and reference depth.--structure: run${CLAUDE_SKILL_DIR}/scripts/check-structure.tsfor the SKILL.md,scripts/,references/,assets/layout.
With neither flag, use the skill as an authoring reference.
Skill Structure
---
name: plugin-name:skill-name
description: Third-person capability description with trigger terms
argument-hint: "[--flag] [<positional>]"
allowed-tools: [Read, Grep, Glob]
model: sonnet
effort: low
context: fork
agent: Explore
background: false
user-invocable: false
hooks:
PreToolUse:
- matcher: "Bash"
hooks:
- type: command
command: "./scripts/validate.sh"
once: true
---
Required Fields
name: Lowercase letters, numbers, hyphens only (max 64 chars). See Naming.description: Third-person, includes trigger terms and use cases (max 1024 chars).
Optional Fields
argument-hint: Arguments the skill accepts, shown in the slash menu after the skill name. See Argument Hints.allowed-tools: Tools Claude can use without permission when skill is activemodel: Override the conversation's model. Prefer a tier alias (haiku,sonnet,opus,fable) orinheritover a dated model ID.effort: Reasoning effort while the skill is active, whether the user types it as a slash command or the model invokes it through the Skill tool. Defaults to the conversation's effort. See Reasoning Effort for levels and cache cost by model.context: Set toforkto run in isolated subagent contextagent: Agent type whencontext: fork(Explore,Plan,general-purpose, or custom)background: Only withcontext: fork.falsewaits for the fork's result in the invoking turn instead of backgrounding it. Defaulttrue.user-invocable: Hide from slash menu whenfalse(default:true)disable-model-invocation: Block model (Skill-tool) invocation and drop the skill's name and description from the always-on catalog (zero recurring context cost); still slash-invocable. Opposite ofuser-invocable: false, which hides the slash menu but keeps the description loaded for the model.hooks: Skill-scoped hooks (PreToolUse,PostToolUse,Stop)
Naming
Plugin skills use plugin-name:skill-name with a colon namespace (e.g., gitlab:ci, things:url). The part after the colon should not repeat the plugin name. Skip the prefix when name equals plugin name. For standalone skills, use a specific gerund form (verb + -ing): processing-pdfs, analyzing-data.
Storage
~/.claude/skills/ (personal), .claude/skills/ (project), plugins (bundled)
Skill Authoring Best Practices
Load the prompting skill before writing a skill body or a reference file. The sections below cover what is specific to Claude Code skills.
Descriptions
The description field is the pointer Claude scans to decide whether to activate the skill. Write it for the model and make it slightly pushy, since under-triggering is the common failure.
List triggers: the requests that call for the skill. End with the boundary to any sibling skill a request could land on. Tools, techniques, and capabilities go in the body.
description: Use when timing a program or command, asking whether a change or version made it faster, or building a benchmark harness. For repeated optimization toward a target, use performance:hill-climb.
Gotchas
Record failure modes hit in practice in a ## Gotchas section, and grow it as edge cases surface.
Progressive Disclosure
Keep SKILL.md a concise hub and push details into references/, scripts/, and assets/, organized by domain. Point to each file with when to read it.
A model-invocable skill's description costs tokens in every session. Keep an invoked skill's body under roughly 4k tokens, since it is re-injected in full at every compaction. A references/ file costs nothing until its pointer fires.
Split one skill into two by invocation when the branches need different frontmatter: a different model, different allowed-tools, or one branch routed by the model while the other stays user-invoked.
State and Scripts
Store state that must survive plugin upgrades (logs, JSON records, SQLite, a first-run config.json of user answers) in ${CLAUDE_PLUGIN_DATA}. Point to bundled scripts with "Run script.py" to execute and "See script.py" to read.
On-Demand Hooks
Skill-scoped hooks activate when the skill is invoked and last for the session. Use them for guardrails that belong only in the skill's context, such as blocking destructive commands during prod operations.
Content Features
String Substitutions
| Variable
Install plugin:skill in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
ReadWriteEditGlobGrepBashWebFetch(domain:docs.claude.com)Bundled files
FAQ
What does the plugin:skill skill do?
Use when creating a skill, converting a memory file into one, debugging skill activation, or structuring skill content. For prompt wording, pair with prompting:prompting.
How do I install the plugin:skill skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the plugin:skill skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
by Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
by Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
by Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
by Anthropic