/citadel:systematic-debuggingfrom citadel
Enforces a 4-phase root cause analysis (observe, hypothesize, verify, fix) to prevent shotgun debugging. Use when root cause is unknown and premature fixes keep failing.
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: root cause is unknown and premature fixes keep failing -- enforces observe -> hypothesize -> verify before touching code. Don't use when: root cause is already known (use /marshal to implement the fix); the bug is shallow and the stack trace is enough (use /do).
Output: A clear problem statement: "{Component} does {X} when it should do {Y}, triggered by {condition}"
Formulate up to 3 hypotheses for WHY the bug exists:
For each hypothesis, define a verification step:
Run the verification:
CRITICAL: Do not skip this phase. Do not "just try" a fix. Verify first.
Once a hypothesis is confirmed:
Explain WHY the bug happens, not just WHERE:
Check for related occurrences:
Output: Root cause statement: "The bug occurs because {cause}. This happens when {trigger}."
If a fix fails TWICE: STOP.
Do not try a third guess. The root cause analysis was wrong. Either:
Three failed fixes in a row means you're guessing, not debugging.
Disclosure: "Debugging [symptom]. Phases 1-3 read-only; will confirm before applying fixes in Phase 4."
Reversibility: amber — Phase 4 applies targeted fixes to source files; undo with git checkout on modified files. Phases 1-3 are read-only.
Trust gates:
Bug is intermittent: Document the triggering conditions as precisely as possible. Reproduce it at least once before forming hypotheses. If it can't be reproduced, stop at Phase 1 and ask for more context.
Two fix attempts have already failed: Invoke the Emergency Stop Rule. Return to Phase 2 with new hypotheses. Do not try a third guess without re-reading the relevant code.
No test framework exists: Skip the "write a failing test" step in Phase 4. Verify the fix manually and document how to reproduce the original bug for future reference.
Error is in a dependency or generated file: Document the root cause but do not modify the dependency. Propose a workaround in the consuming code instead.
---HANDOFF---
- Bug: {problem statement}
- Root cause: {one-line cause}
- Fix: {what was changed}
- Verified: {typecheck + tests passing}
- Related: {any similar patterns found and fixed}
---
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./autopilotIntake-to-delivery pipeline. Processes pending items from .planning/intake/: briefs new ideas, executes approved work through research → plan → build → verify. Drop a file in .planning/intake/ and invoke this skill./costDeep cost exploration and transparency. Shows real token usage, session costs, campaign spend, burn rates, and model breakdown. Reads Claude Code's native session data for exact numbers. Complements /dashboard with focused cost views./create-appEnd-to-end app creation from a single description. Five tiers: blank project, guided, templated, fully generated, or feature addition to existing codebase. Routes through PRD, architecture, and Archon campaign with verification at every step.2 plugins ship this exact skill · first indexed Jun 24, 2026
Other plugins' skills for the same job