Skills for Real Engineers. Straight from my .agents directory.
systematic-debugging
Agent skill fromSethGammon/Citadel
4-phase root cause analysis: observe, hypothesize, verify, fix. Enforces investigation before any code changes. Emergency stop after 2 failed fixes. Prevents shotgun debugging and fix cascades.
How to install systematic-debugging
npx skills add SethGammon/Citadel# or add only this skill to Claude Code: copy the folder
skills/systematic-debugging/
# into
~/.claude/skills/systematic-debugging/ (all projects)
.claude/skills/systematic-debugging/ (one project)
1# /systematic-debugging — Root Cause Before Fix23## Orientation45**Use when:** root cause is unknown and premature fixes keep failing -- enforces observe -> hypothesize -> verify before touching code.6**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).78## Protocol910### Phase 1: OBSERVATION & REPRODUCTION11121. Read the error message, stack trace, or bug description132. Reproduce the issue:14 - If it's a type error: run typecheck and read the full error15 - If it's a runtime error: identify the triggering conditions16 - If it's a behavioral bug: document expected vs actual behavior173. Isolate the failing component/function:18 - What file? What function? What line?19 - What are the inputs when it fails?20 - Does it fail consistently or intermittently?2122**Output**: A clear problem statement:23"{Component} does {X} when it should do {Y}, triggered by {condition}"2425### Phase 2: HYPOTHESIS & VERIFICATION26271. Formulate up to 3 hypotheses for WHY the bug exists:28 - H1: {most likely cause} — because {evidence}29 - H2: {second candidate} — because {evidence}30 - H3: {third candidate} — because {evidence}31322. For each hypothesis, define a verification step:33 - Add a console.log / diagnostic read / breakpoint34 - Check a specific value at a specific point35 - DO NOT change any logic yet — only observe36373. Run the verification:38 - Which hypothesis was confirmed?39…
Excerpt shown under the repository's MIT license.
More skills in Citadel
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
