Add deployment guidance and missing frontmatter fields to skill-creator#985
Open
flound1129 wants to merge 2 commits intoanthropics:mainfrom
Open
Add deployment guidance and missing frontmatter fields to skill-creator#985flound1129 wants to merge 2 commits intoanthropics:mainfrom
flound1129 wants to merge 2 commits intoanthropics:mainfrom
Conversation
The skill-creator guides users through creating and iterating on skills
but never tells them where to place the finished skill so Claude Code
actually discovers it. This is the most common reason skills fail to
trigger after creation — they end up in the working directory instead
of a discovery path.
Add a "Deploying the finished skill" section covering:
- The four skill placement levels (enterprise, personal, project, plugin)
with priority ordering
- Project root clarification (.claude/skills/ lives at project root)
- Monorepo nested discovery behavior
- How the name field relates to directory name (optional, defaults to dir)
- A deployment checklist
- All supported frontmatter fields with behavioral notes (context:fork
turns skill body into subagent prompt, effort:max is Opus-only, hooks
link to docs)
- String substitutions ($ARGUMENTS, ${CLAUDE_SKILL_DIR}, etc.)
- Dynamic context injection (!`command` syntax)
- Updated core loop summary to include the deployment step
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The !`command` examples inside a code block were being interpreted as actual dynamic injection directives when Claude Code loaded the SKILL.md. Replace the code block with prose that describes the syntax without containing executable examples. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The skill-creator guides users through creating and iterating on skills but never tells them where to place the finished skill so Claude Code actually discovers it. This is the most common reason skills fail to trigger after creation — they end up in the working directory instead of a discovery path.
The skill-creator also only teaches 3 frontmatter fields (name, description, compatibility) while Claude Code supports 11. Users who need disable-model-invocation, context: fork, or allowed-tools have no guidance within the skill-creation workflow.
What this PR changes
Adds a "Deploying the finished skill" section to the skill-creator SKILL.md covering:
commandsyntax)All content sourced from the official Claude Code docs at code.claude.com/docs/en/skills and platform.claude.com/docs/en/agents-and-tools/agent-skills/.
Methodology
We downloaded and cross-referenced the official Anthropic skill docs against the skill-creator SKILL.md and identified every gap where the skill-creator is silent on information users need to successfully deploy a skill.
Two rounds of code review caught issues in the initial draft:
Adversarial pressure testing
We ran 3 pressure scenarios, each tested once without any skill guidance (baseline) and once with the updated guidance that documents the same placement/frontmatter information this PR adds:
Test 1 (manual-invoke skill): Baseline hallucinated
trigger: manual. With guidance, agent used correctdisable-model-invocation: true.Test 2 (skill in ~/Downloads not triggering): Baseline diagnosed using the deprecated
.claude/commands/system and flat files. With guidance, agent correctly identified~/.claude/skills/api-linter/SKILL.md.Test 3 (monorepo + subagent + dynamic injection): Baseline hallucinated
agent: true,tools:, and$GIT_BRANCHfields, and got priority ordering backwards. With guidance, agent used correctcontext: fork+agent: Exploreand correct priority (enterprise > personal > project).Environment