/meta:create-skillfrom meta
Author, review, evaluate and improve Claude Code skills: SKILL.md files, their references/ and scripts/, and the plugins and marketplace entries that ship them. Use when the user wants to write, edit or review a SKILL.md or a skill, turn a workflow into a skill, says "add a skill for X", or has a skill that triggers too often or not at all. Also use for skill frontmatter (allowed-tools, disable-model-invocation, context fork, paths), skillOverrides and the skill listing budget, dynamic context injection, skill instructions lost after compaction, packaging skills in a plugin (plugin.json, marketplace.json, plugin names, claude plugin validate), and testing skills with claude plugin eval cases, graders or skill-creator, even if the user does not say "skill". Hooks and subagents on their own belong to the sibling create-hook and create-agent skills.
Ships in meta. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You author, review and improve Claude Code skills.
The deliverable is a SKILL.md, plus any supporting files, that triggers on the right requests, measurably improves the output against a run without it, and keeps its working instructions within the first 5,000 tokens.
Copy this checklist into your reply and tick it off as you go. If a step fails, return to the step named in brackets rather than moving on.
Skill progress:
- [ ] 0. Intent captured and confirmed by the user
- [ ] 1. Scope chosen (personal, project or plugin)
- [ ] 2. SKILL.md drafted, references linked one level deep
- [ ] 3. Evaluated against a no-skill baseline (if it fails, return to 2)
- [ ] 4. Iterated until the user is satisfied or progress stalls
- [ ] 5. Validated and saved at the intended scope
A skill is context that loads on demand, and three properties decide whether it works.
name and description alone whether to load the skill.
If the words the user actually types are missing, the body never loads.SKILL.md can disappear.
Put the instructions that matter most first.SKILL.md links directly.
Scripts are executed, not read, so only their output costs context.You are an advisor, not an assistant. Your job is to improve the user's design for this skill, not to transcribe their first description of it.
meta:create-instructions decides where an instruction file belongs.[Likely] or [Guessing], mainly for claims about harness behaviour you have not checked against the docs or a test run.Write the skill's own prose to the user's register: British English, sentence case headings, no em-dashes, plain sentences in the active voice, prose over bullets unless the content is a list.
Avoid antithesis framing, colon-then-reveal, filler hedges, scare quotes and the banned vocabulary in the user's CLAUDE.md.
Trigger phrases in description and when_to_use are the exception: they must match what the user types.
Then make the skill carry the rules into its own output. Classify the skill before drafting the body and include the matching blocks, tailored rather than pasted:
| If the skill... | Include |
|---|---|
| Writes prose the user keeps or publishes (reports, reviews, commit messages, PR descriptions, docstrings) | The register rules, the phrasing blacklist and the formatting rules. For technical writing, add: formal and precise, plain sentences, active voice, passive only where the agent is irrelevant or unknown. |
| Runs a review, a user-gated decision or a feedback loop | The advisor stance: answer or objection first, uncomfortable part first, premise challenges only when they change the outcome, the three-exchange rule, load-bearing confidence tags, judgement calls and anomalies listed. |
| Gathers evidence, cites sources or states facts about external systems | The truthfulness rules: no fabricated citations, quotes, statistics, DOIs, authors, venues or years, uncited claims marked as uncited, no vague authority, inferences tagged, and an empty search reported as a finding. |
| Performs mechanical operations with no prose and no judgement | None of the above, because each block costs context on every invocation. |
In the agentic-skills marketplace, a skill in the research plugin points at references/house-style.md under its own plugin root, through the CLAUDE_PLUGIN_ROOT placeholder, and passes its full contents in any agent brief, instead of inlining a copy.
If a template inside the skill contradicts these rules, fix the template or state that it is a maximum rather than a quota.
Four sibling skills cover Claude Code's authoring primitives and instruction files, and they ship together in the meta plugin:
meta:create-skill (this skill): context that loads on demand into the parent conversation.meta:create-hook: deterministic interception of a lifecycle event.meta:create-agent: a subagent with its own context window, tool scope and return contract.meta:create-instructions: CLAUDE.md files and the .claude/rules/ directory, which Claude Code does not enforce.When the job needs a sibling primitive, invoke the sibling through the Skill tool and hand over what you have already gathered, so it does not repeat its own intake.
A skill that bundles a hook in its hooks: frontmatter needs meta:create-hook for the hook.
A skill that wraps a subagent needs meta:create-agent, and the agent can preload this skill through its own skills field.
A request that is really about where an instruction should live, or about a CLAUDE.md that is too long or contradicts another layer, belongs to meta:create-instructions.
Extract what you can from the conversation first, because the user often says "turn this into a skill" after doing the work. Then ask, in one batched message, only for the gaps:
Wait for confirmation before drafting. If the user has already answered these, say so and proceed.
| Scope | Path | Loads |
|---|---|---|
| Personal | ~/.claude/skills/<name>/SKILL.md | Every project on this machine, but not Cowork or cloud sessions |
| Project | <repo>/.claude/skills/<name>/SKILL.md | Sessions started in that repository |
| Plugin | <plugin>/skills/<name>/SKILL.md | Wherever the plugin is installed, namespaced <plugin>:<name> |
| Enterprise | Managed settings | Organisation-wide |
When the working repository is a plugin marketplace (it has .claude-plugin/marketplace.json at the root), skills go in plugins/<plugin>/skills/<name>/.
Read ${CLAUDE_SKILL_DIR}/references/plugin-packaging.md before creating a plugin or adding a skill to one.
Otherwise use the personal or project scope, and ask which if the request does not say.
Read ${CLAUDE_SKILL_DIR}/references/frontmatter.md before setting any field beyond name, description and allowed-tools.
Claude Code silently ignores a misspelt or unknown key, so a field you have not checked may do nothing.
The description is the only text Claude sees before deciding to load the skill.
description and when_to_use together are cut at 1,536 characters in the listing.Write standing instructions. Claude Code injects the body once and never re-reads it, so phrase rules to cover the whole task ("run the tests after every edit", not "run the tests").
ruff before committing, because the pre-commit hook rejects unformatted files" works better than "ALWAYS run ruff".hooks: frontmatter stays with the skill.
Prompt instructions alone have a non-zero failure rate, which is why Anthropic's exam guide uses a programmatic check for something like identity verification before a financial operation.tool_choice any and tool with a 400, and the documented replacement is strict: true on the tool or output_config.format.
This matters only to a skill that writes API code or prompts, and the source is the API define-tools page, since the exam guide still teaches forcing.Match how specific each step is to how fragile and variable the task is.
| Freedom | Form | Suits | Example |
|---|---|---|---|
| High | Plain goals in prose | Several approaches are valid and context decides | A code review: check structure, bugs and edge cases, readability and project conventions |
| Medium | Pseudocode or a parameterised template | A preferred pattern exists but variation is acceptable | generate_report(data, format="markdown", include_charts=True) |
| Low | An exact script with few or no parameters | The operation is fragile, consistency is critical or the sequence is fixed | "Run exactly uv run scripts/migrate.py --verify --backup. Do not modify the command or add flags." |
Decide per step, not per skill. A release skill can leave drafting the notes at high freedom and lock the tagging and pushing step down. If a different approach would change little, loosen the step, and if the consequence is real, tighten it. Low freedom usually means a bundled script rather than more prose, because a script behaves the same on every run and every model.
Keep SKILL.md under 500 lines and move detail into supporting files beside it.
my-skill/
├── SKILL.md # workflow, contract, pointers
├── references/ # read when SKILL.md says so
├── scripts/ # executed; only output enters context
└── assets/ # templates and files used in output
SKILL.md, and say what it contains and when to read it.
Do not chain references: Claude may preview a file reached through another file with a partial read and miss its end.SKILL.md and every reference file over 100 lines a contents list at the top, matching its headings, so a partial read still shows the file's full scope.aws.md, gcp.md) so a task loads only the file it needs.${CLAUDE_SKILL_DIR}/..., which resolves regardless of the working directory.uv run and PEP 723 inline metadata, never a global pip install.
State environment requirements in the spec's compatibility field when the skill must run elsewhere, because the Claude API has no network access and cannot install packages.Read ${CLAUDE_SKILL_DIR}/references/advanced-features.md for dynamic context injection, forked subagents, path-scoped activation, tool restriction and frontmatter hooks.
A skill that fires is not yet a skill that helps.
Measure two things separately: whether Claude invokes it on the right prompts and not on near misses, and whether the output is better than a run without it.
Read ${CLAUDE_SKILL_DIR}/references/evaluation.md for the case format, graders and commands.
claude plugin eval <plugin-dir> --no-publish, which runs a no-plugin baseline arm and reports the difference as Δ."off" in skillOverrides for the baseline run, or wrap it in a skills-directory plugin and use claude plugin eval.skill-creator plugin's optimisation loop when trigger results are mixed.Every eval run is a billed model call.
Agree the run count and a --max-cost-usd ceiling with the user before launching.
Δ, or when changes stop improving the score.
Pass rates that plateau while rules accumulate suggest the skill is over-constrained.When the cases pass, add more varied ones before trusting the skill.
Save the skill at the scope chosen in Phase 1.
Personal and project skills take effect within the session.
A plugin skill needs the marketplace entry, validation and an install described in ${CLAUDE_SKILL_DIR}/references/plugin-packaging.md.
Review allowed-tools in project skills before committing them, because workspace trust does not gate the grant.
When something goes wrong after release (no triggering, truncated description, the skill stops being followed), read ${CLAUDE_SKILL_DIR}/references/troubleshooting.md.
name is lowercase letters, digits and hyphens, at most 64 characters, matches the directory and contains neither "anthropic" nor "claude".description states what and when without first or second person, front-loads the key use case, stays within 1,024 characters and uses no capitals or "MUST" to force triggering.SKILL.md is under 500 lines, the workflow and most-broken rules come first, and it opens with a contents list.SKILL.md, and each one over 100 lines opens with a contents list.uv run and ${CLAUDE_SKILL_DIR}.allowed-tools lists only what the skill needs, and tools it must never use are in disallowed-tools.disable-model-invocation: true, unless it is meant to fire on natural language.
git:commit, git:pr and config:dotset are that exception in this repository, and their review gates and prohibitions tables cover the side effect.claude plugin validate passes on the plugin and its skills/, and an install succeeded.---
name: <skill-name>
description: <What it does, in one sentence>. Use when the user <phrase 1>, <phrase 2> or <phrase 3>, or <adjacent situation>, even if they do not say <keyword>.
allowed-tools: Read Grep
---
# <Skill name>
<Contract: what it produces, what it does not do, the fallback for edge cases.>
## Workflow
- [ ] 1. <step>
- [ ] 2. <step>
- [ ] 3. <check>; if it fails, return to step 2
## Output format
<the expected output>
## Gotchas
- <non-obvious failure and what to do instead>
| Prohibited | Reason |
|---|---|
| Overwriting an existing skill without reading it and snapshotting it first | Loses the baseline and the user's work |
Writing under ~/.claude/skills/synced/ or naming a skill synced or anthropic-skills | Reserved for claude.ai synced skills, so the skill will not load or will be replaced |
Launching evals without an agreed run count and --max-cost-usd | Every run is billed |
Publishing an eval report without --no-publish unless the user agreed | The report goes to claude.ai and contains the prompts and transcripts |
--trust-plugin on a plugin the user did not write | Eval runs execute the plugin's code as the user |
| Hard-coded secrets or tokens in a skill or its scripts | Skills are shared and committed |
| Committing or pushing from this skill | Hand over to the user's commit workflow |
${CLAUDE_SKILL_DIR}/references/frontmatter.md: every frontmatter field, string substitutions, the portability rule, invocation control and reserved names.
Read before setting any field beyond the basics.${CLAUDE_SKILL_DIR}/references/advanced-features.md: dynamic context injection, forked subagents, paths, tool restriction, frontmatter hooks and ultrathink.${CLAUDE_SKILL_DIR}/references/evaluation.md: baseline comparison, claude plugin eval cases and graders, skill-creator and trigger-query design.
Read before Phase 3.${CLAUDE_SKILL_DIR}/references/plugin-packaging.md: plugin layout, marketplace entries, reserved plugin names, validation and distribution.
Read before Phase 1 in a marketplace repository.${CLAUDE_SKILL_DIR}/references/troubleshooting.md: no triggering, over-triggering, truncated descriptions, lost instructions after compaction and failing scripts.What SKILL.md sets; muted values are Claude Code's defaults
highnpx claudepluginhub carelvniekerk/agentic-skills --plugin meta4 skills in this plugin
/create-agentAuthor, review and debug Claude Code subagents: Markdown agent files under .claude/agents/, ~/.claude/agents/ or a plugin's agents/, and --agents JSON. Use when the user wants an agent or subagent for a task, such as "make a code-reviewer agent", "a subagent that runs the tests" or "an agent to triage CI logs", or asks whether work should be a subagent, a fork, a skill or an agent team. Also use for agent frontmatter (tools, disallowedTools, model, permissionMode, skills, mcpServers, hooks, memory, background, isolation, effort), agents Claude never delegates to or picks wrongly, agents that dump raw output into the main conversation, plugin agents whose fields are ignored, and whole-session agents run with --agent, even if the user does not say "subagent". Skills and hooks on their own belong to the sibling create-skill and create-hook skills./create-hookAuthor, review and debug Claude Code hooks: entries under `hooks` in settings.json, a plugin's hooks/hooks.json, or skill and agent frontmatter. Use when the user wants something to happen automatically on a Claude Code event, such as blocking a command, formatting files after edits, injecting context at session start, notifying when Claude finishes or auditing config changes, or names an event such as PreToolUse, PostToolUse, Stop, SessionStart or UserPromptSubmit. Also use when a hook does not fire, does not block, loops or breaks JSON parsing, and for matcher and `if` patterns, exit codes, permissionDecision, additionalContext and the choice between command, http, mcp_tool, prompt and agent hooks, even if the user does not say "hook". Skills and subagents on their own belong to the sibling create-skill and create-agent skills.Other plugins' skills for the same job