/coograph:coograph-doctor Optional. A project path (default the current folder); "--registry <coograph>/projects.json" to compare against the registry.from coograph
Runs a read-only health check on a Coograph install, verifying the code graph, server/MCP configs, placeholders, per-tool files, git hooks, and sync state. Reports PASS/WARN/FAIL per check and offers one-at-a-time fixes.
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.
Read when SKILL.md points to them.
Check that this project's Coograph install is healthy. The script only reads. Fixes happen only after the user says yes, one at a time.
The script ships next to this file: .github/skills/coograph-doctor/doctor.py. In plugin mode it is <plugin>/skills/coograph-doctor/doctor.py. If neither exists, say the install predates the doctor and that re-running /coograph-init (or a coograph git pull for registered projects) delivers it. Then stop.
python3 .github/skills/coograph-doctor/doctor.py --project <project>
<project> defaults to the current folder; pass the user's path if they named one.<coograph>/.github/skills/coograph-doctor/doctor.py --project <project>). It then compares against projects.json on its own. Inside a project, add --registry <coograph>/projects.json when the user knows where the checkout is.python when python3 is missing.Exit 0 means no FAIL, 1 means at least one FAIL, 2 means a bad argument (show the message and stop).
Show the output as it is: one PASS / WARN / FAIL / SKIP line per check, a fix: line under each problem, and the summary. Then one sentence: "N problems, the first one to fix is ". Order: FAIL before WARN, then the order printed.
The checks, so you can explain any of them:
| Check | Looks at |
|---|---|
graph | .code-graph/graph.db exists, its node/edge/file counts; WARN when many functions have no call edges (built without tree-sitter) |
graph-age | every committed file of an indexed kind matches the content hash the graph holds (child repos too in a multi-repo workspace); uncommitted edits are left out |
server | .github/code-graph/server.py and requirements.txt; uv on PATH |
mcp:<tool> | the code-graph entry in .mcp.json, .vscode/mcp.json, .cursor/mcp.json, opencode.json (JSONC where the tool accepts it), and that every path in it exists after the tool's own variables are expanded; WARN when a variable is not set where the doctor runs |
markers | _TBD_ / <!-- FILL left in .github/copilot-instructions.md, CLAUDE.md, AGENTS.md (backticked mentions, as in the template guard line, do not count) |
tools | each installed tool's files; registry vs disk |
hooks:git | post-commit, post-merge, post-rewrite update the graph; tells a missing hook apart from one that belongs to another tool |
openspec | openspec/config.yaml exists and parses |
hooks:claude | every hook .claude/settings.json wires exists |
sync | template files sync kept as local edits, with the newer upstream copy waiting in .coograph/upstream/ |
SKIP means the check does not apply (feature not enabled, not a git repo, template checkout). It is never a problem.
For each FAIL, then each WARN, offer the fix and wait for a yes before doing anything:
| Check | Fix |
|---|---|
graph, graph-age | the coograph-rebuild-graph skill (build for a missing or empty graph, the tree-sitter WARN, or a graph without file hashes; update for an old one), or the raw command on the fix: line |
server, mcp:<tool>, markers, tools, hooks:claude, openspec | re-run /coograph-init on the project. Its Step 1b adds what is missing and also offers to refresh template-managed files that differ from the template (skills, agents, .claude/hooks/, .claude/settings.json); before the user answers, list the differing files and ask which to keep. For markers, offer to fill the listed lines directly instead. For a config that is not valid JSON, fix its syntax by hand: init cannot merge into it either |
hooks:git | the command on the fix: line (init Step 6h) for a missing hook. Never copy over a hook that already exists: add the one line the fix: line names, before its first exit or exec; a hook in another language calls the coograph hook in its own language |
sync | show the diff between each parked file and the local one; the user decides per file. Never copy over a local edit unasked |
A tools WARN about files on disk for an unregistered tool is the user's call: add the tool to projects.json, or delete the stray files. Never edit projects.json or delete files without that answer.
After any fix, run the script again and show the new summary.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-debugRoot-cause a bug or build error with minimal investigation, then apply the smallest fix. Reproduce, gather evidence, fix, verify, with a 3-attempt circuit breaker. Use for failing builds, tests, or runtime errors./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-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