/coograph:coograph-debugfrom coograph
Root-causes bugs and build errors with minimal investigation, then applies the smallest fix. Reproduce, gather evidence, fix, verify, with a 3-attempt circuit breaker. Use for failing builds, tests, or runtime errors.
Ships in coograph. 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.
None: SKILL.md is the whole skill.
Diagnose the bug or build error below. Find the root cause with minimal investigation, then apply the smallest possible fix.
Before reading any file or running any search, this is the HARD RULE — code-graph first, no exceptions:
get_minimal_context(task="debug <symptom>") then detect_changes(). ALWAYS start here. Use detect_changes() risk scores first — recent high-risk changes are the most likely culprit. Use the returned file list to focus investigation.sqlite3 .code-graph/graph.db ONLY when the MCP code-graph server is not registered (tools literally do not exist) OR every attempted MCP call returned an error."Slow", "unwieldy", "it's a simple bug" are NOT valid reasons to bypass. When tracing call chains use query_graph("callers_of", fn) and query_graph("callees_of", fn) before reading files. Validate every hypothesis directly in source regardless of graph output.
git log --oneline -10, git blame on suspect lines.After 3 failed hypotheses, STOP. Report what was tried and ask for direction. Do not keep trying variations of the same approach.
AGENTS.md § Hard rules and .github/copilot-instructions.md (when AGENTS.md has no Hard rules section, .github/copilot-instructions.md holds them all).## Bug Report
**Symptom**: [What the user sees]
**Root Cause**: [The actual issue at file:line]
**Reproduction**: [Minimal steps to trigger]
**Fix**: [Minimal code change applied]
**Verification**: [How it was proven fixed]
**Similar Issues**: [Other places this pattern might exist]
**Gotcha candidate**: [none, or a GOTCHAS.md entry when the root cause was a trap the code does not show]
Gotcha candidate. When the root cause was environmental or non-obvious (a tool that ignores the shell environment, a deploy setting, an error message that points the wrong way), draft a GOTCHAS.md entry in the format in .github/layout/README.md: Symptom with the exact error text, Cause, Fix / rule, paths: globs for where it bites, commands: if a command triggers it, confirmed: today. Show it and ask before writing it to GOTCHAS.md. A bug that was just a bug gets none.
## Build Error Resolution
**Initial Errors**: X
**Errors Fixed**: Y
**Build Status**: PASSING / FAILING
### Errors Fixed
1. src/file.ts:45 — [error message] — Fix: [what was changed]
### Verification
- Build command: [command] → exit code 0
- No new errors introduced: confirmed
$ARGUMENTS
Read the models block in openspec/config.yaml before delegating. When mode is
preset or per-task, pass that agent's model on the Agent call; when it is off
or unset, pass nothing and let the agent inherit the session model.
End your report with one line naming what ran where, so the setting is visible without reading config:
models: reviewer=opus (mapping), explore=haiku (mapping)
Print the footer in every mode. In off and unset it reads (inherited).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
debugging, root-cause-analysis, build-errors, code-graph, bug-fixing
npx claudepluginhub paullukic/coograph --plugin coograph18 skills in this plugin
/coograph-applyImplement tasks from an OpenSpec change. Use when the user wants to start or continue implementing a proposed change./coograph-archiveArchive a completed change. Use when implementation is done and the change is ready to be moved to the archive./coograph-disable-multi-modelsTurn off per-task model selection for this project. Every agent inherits the session model and Coograph stops suggesting mappings. Use when the user says they do not want multiple models, wants one model for everything, or wants the suggestions to stop./coograph-docs-restructureBring a project's instruction and map files back under the tier budgets. Takes stock with layout.py, works out the project's shape, writes a project-specific OpenSpec (areas, layout.json, gotcha extraction), and after approval migrates one area per agent with every kept fact checked against the code. Use when layout.py --budget or a retro reports STRUCTURAL, or when maps have turned into changelogs./coograph-doctorHealth check of a Coograph install. Runs a read-only script that checks the code graph, its server and MCP configs, unfilled placeholders, per-tool files, git and Claude Code hooks, openspec/config.yaml and pending sync copies, then offers the fix for each problem. Trigger when the user types `/coograph-doctor` or `$coograph-doctor`, or asks to "check the install", "run the doctor", or why coograph seems broken./coograph-exploreEnter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.Other plugins' skills for the same job