sethgammon/citadel/create-skill
Claude Code and agent skill by sethgammon/citadel
- community
Checking that the SKILL.md file is still in the repository.
Creates new skills from the user's repeating patterns. Interview-driven: discovers the task, analyzes failure modes, generates a production SKILL.md, installs it, tests it on a real target, and teaches the user how to use it. Use when a user wants to encode a repeating workflow; do NOT use for one-off tasks or modifying existing skills.
Install
npx vskill@latest install sethgammon/citadel/create-skillSKILL.md
The same SKILL.md was published earlier as sethgammon/citadel/create-skill.
/create-skill — Skill Creator
Orientation
Use when:
- The user says "I keep doing this same thing" or "automate this for me"
- The user wants to encode a workflow they have refined through repetition
- The user says "create a skill for X" or "make a skill that does Y"
Do NOT use when:
- The user wants a one-off task done (just do it)
- The pattern has only happened once
- An existing skill already covers this
- The user wants to modify an existing skill (edit directly)
Output: A complete .claude/skills/{name}/SKILL.md in the project directory, tested and working.
Protocol
Step 1: DISCOVER — The Three Questions
Ask these three questions and wait for answers before proceeding.
Q1: "What do you keep repeating?" Listen for: trigger, steps in order, scope, frequency. If vague, probe: "Walk me through the last time you did this."
Q2: "What mistakes happen when you do it manually?" Listen for: forgotten steps, ordering mistakes, convention drift, edge cases. These become guardrails and quality gates.
Q3: "What does 'done right' look like?" Listen for: observable outputs, quality signals, anti-patterns. These become quality gates and exit protocol.
Step 2: ANALYZE — Extract the Skill's DNA
Internal working material — do not show to user.
2a. Identity statement: "You are a {role} that {does what} to ensure {outcome}." Must distinguish this skill from all others.
2b. Trigger keywords (5-10): Specific enough to avoid false matches. Check existing .claude/skills/ for conflicts.
2c. Protocol steps: Transform "what I do" into numbered steps where:
- Each step has a clear input and output
- Decision points have explicit criteria ("IF x THEN y, ELSE z")
- Steps reference concrete things (file paths, commands, patterns)
Bad: "3. Review the code for issues." Good: "3. Read every function. For each, check: (a) return type explicit, (b) error cases handled, (c) no input mutations. List violations with line numbers."
2d. Quality gates: Yes/no verifiable questions, no subjective criteria. Map each to a user "done right" criterion or common mistake.
2e. Pitfalls: From Q2. Become warnings or guard clauses in the protocol.
Step 3: GENERATE — Write the SKILL.md
Every section required. File MUST be under 500 lines.
Writing rules:
- Steps must be reproducible by a different AI session with no memory of this conversation.
- No hedge language — "do X" not "consider X".
- No filler — delete sections that add no new information.
- Include examples only where the pattern is non-obvious.
- Encode the user's taste: "I hate when it does Z" → explicit prohibition.
Step 4: INSTALL & REGISTER
- Create
.claude/skills/{name}/ - Write the SKILL.md
- Verify file exists and is readable
- Register with router:
a. Read .claude/harness.json, Citadel's shared config path for all runtimes including Codex (create with {} if missing) b. Add skill name to registeredSkills array c. Update registeredSkillCount to match array length
- Only add the skill to an active project instruction file that already has an explicit skills section. Codex uses
AGENTS.md. Claude Code usesCLAUDE.mdwhen present; with confirmedAGENTS.mdsupport, it usesAGENTS.mdby default if no projectCLAUDE.mdexists, or both when configured under Project instructions. Check the active setting before editing and preserve user-authored guidance. - Run
/reload-skillsif the running Claude Code version supports it; the skill is live without a session restart. If unsupported, tell the user a fresh session is required before/{name}resolves.
Step 5: VERIFY — Test on a Real Target
- Find a real target in the current project the skill applies to.
- Run the skill's protocol following the SKILL.md exactly — pretend you are a different AI session with no memory of this conversation.
- Evaluate: did every step have enough information? Did any step require missing context? Did quality gates catch real issues?
- If it fails or produces thin output, fix SKILL.md (common fixes: step too vague, step assumed context, gate not checkable, exit output missing fields).
- Run again after fixes. Must pass on second attempt. If it fails twice, discuss scope with user.
Step 6: TEACH — Explain What Was Built
A. How to invoke:
- Direct:
/{name}or/{name} [target] - Via router:
/do {natural language matching trigger keywords}
B. How it works (30-second version):
- Steps summary, quality gates summary, exit output summary
C. How to modify:
- File:
.claude/skills/{name}/SKILL.md - Add step: new
### Step Nin Protocol - Change quality standards: edit Quality Gates checkboxes
- Change trigger words: edit
trigger_keywordsin frontmatter - Split if too large: create two skills, move steps between them
Contextual Gates
Disclosure: "Creating skill '{name}'. Will create skills/{name}/SKILL.md." Reversibility: green — creates skills/{name}/SKILL.md only; undo by deleting the directory. Trust gates:
- Any: full skill creation, install, and teach workflow.
Quality Gates
- [ ] Three discovery questions asked and answered
- [ ] Generated SKILL.md follows exact format (frontmatter + required sections)
- [ ] Frontmatter has: name, description, user-invocable, trigger_keywords
- [ ] Description includes use-when / do-not-use orientation
- [ ] Protocol steps specific enough for a different AI session to follow
- [ ] No steps contain vague directives ("review", "consider", "ensure quality")
- [ ] Quality gates all yes/no verifiable
- [ ] Trigger keywords do not conflict with existing skills
- [ ] SKILL.md is under 500 lines
- [ ] Skill tested on a real target in the current project
- [ ] Test produced meaningful output
- [ ] User taught invocation, mechanics, and modification
- [ ] File installed at
.claude/skills/{name}/SKILL.md
Exit Protocol
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/create-skill/SKILL.md
Popularity
- Repository stars
- 918
- Repository forks
- 82
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 1 Jun 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sethgammon/citadel/create-skill)