/citadel:create-skillfrom citadel
Interview-driven skill generator that discovers repeating workflows, analyzes failure modes, produces a tested SKILL.md, and teaches usage. Use when users want to encode a recurring pattern.
Ships in citadel. 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.
Use when:
Do NOT use when:
Output: A complete .claude/skills/{name}/SKILL.md in the project directory, tested and working.
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.
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:
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.
Every section required. File MUST be under 500 lines.
---
name: {kebab-case-name}
description: >-
{One to three sentences. Start with verb. Use when X; do NOT use for Y.}
user-invocable: true
auto-trigger: false
trigger_keywords:
- {keyword 1}
- {keyword 2}
---
# /{name} — {Readable Title}
## Orientation
**Use when:**
- {condition}
**Do NOT use when:**
- {exclusion}
**What this skill needs:**
- {required input}
## Protocol
### Step 1: {VERB — Name}
{Exact instructions. What to read, what to produce. No vague directives.}
### Step 2: {VERB — Name}
{Continue...}
## Quality Gates
- [ ] {Verifiable gate}
## Exit Protocol
{Exact output format}
Writing rules:
.claude/skills/{name}/.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 lengthAGENTS.md. Claude Code uses CLAUDE.md when present; with confirmed AGENTS.md support, it uses AGENTS.md by default if no project CLAUDE.md exists, or both when configured under Project instructions. Check the active setting before editing and preserve user-authored guidance./reload-skills if 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.A. How to invoke:
/{name} or /{name} [target]/do {natural language matching trigger keywords}B. How it works (30-second version):
C. How to modify:
.claude/skills/{name}/SKILL.md### Step N in Protocoltrigger_keywords in frontmatterDisclosure: "Creating skill '{name}'. Will create skills/{name}/SKILL.md."
Reversibility: green — creates skills/{name}/SKILL.md only; undo by deleting the directory.
Trust gates:
.claude/skills/{name}/SKILL.mdSKILL CREATED
Name: {name}
Path: .claude/skills/{name}/SKILL.md
Invoke: /{name} [target]
Route via: /do {example natural language}
What it does:
{One sentence description}
Steps: {N} steps
Quality gates: {N} gates
Lines: {line count}/500
Tested on: {target description}
Test result: PASS
Trigger keywords: {comma-separated list}
Reversibility: green — delete skills/{name}/ to undo
Try it now: /{name} {suggested first target}
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sethgammon/citadel --plugin citadel48 skills in this plugin
/architectGiven a PRD, produces an implementation architecture: file tree, component breakdown, data model, and a phased build plan with end conditions that Archon can execute directly. Multi-candidate evaluation for key decisions./archonAutonomous multi-session campaign agent. Decomposes large work into phases, delegates to sub-agents, reviews output, and maintains campaign state across context windows. Use for work that spans multiple sessions and needs persistent state, quality judgment, and strategic decomposition./ascii-diagramGenerate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.Other plugins' skills for the same job