/dev-project-docs:debug-retrospectivefrom dev-project-docs
After a debugging session, write a retrospective into the repo (docs/debug-log/) — what broke, what caused it, how it was found, what was ruled out, how it was fixed and what is verified — so the next agent or person starts from what is known. Use after a bug is diagnosed or fixed, whether or not a fix shipped, on "write up the debugging", "debugging retrospective", "log this bug", "add it to the debug log", or when an investigation turned up something someone would otherwise rediscover.
Ships in dev-project-docs. 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.
The diff keeps the cheap half of a fix. The retrospective keeps the expensive half: what was wrong, how it was found, and the plausible causes that turned out not to be it. Write it while the session is still open, because the wrong turns are the first thing to be forgotten.
Write one if finding the cause took more than reading the obvious line: a trace, a measurement,
a hypothesis ruled out, a value that looked authoritative and wasn't, an environment-specific
behaviour. An unresolved investigation is worth an entry too (status: unfixed), because it
stops the next person repeating the same steps. Skip typos and one-line fixes whose cause is
plain from the diff.
Look for an existing one first: docs/debug-log/, docs/debugging/, docs/postmortems/,
planning/bugs/. If the repo has one, follow its format; its README wins over this skill.
If there is none, create docs/debug-log/README.md:
# Debug log
One file per bug that took diagnosis, written for the next person or agent who hits the same
wall. The investigation lives here. Lasting rules live in the maintainer docs, and choices of
behaviour live in the decision log.
File name: `YYYY-MM-DD-<short-slug>.md`, dated the day the bug was diagnosed.
## Index
| Date | Entry | Component | Status |
|---|---|---|---|
From the session, the shell history and the commits, collect:
If a piece is missing, say so in the entry. Don't reconstruct evidence you didn't see.
Create docs/debug-log/YYYY-MM-DD-<short-slug>.md. Omit a section only if it would be empty.
---
date: YYYY-MM-DD # diagnosed
environment: <OS, runtime, versions>
component: <file, module or service>
affected: "<versions that have the bug>"
fixed_in: "<version or commit>" # or "unfixed"
status: fixed # fixed | worked-around | unfixed | not-a-bug
---
# <the symptom, in the reporter's terms>
## Symptom
<What was seen, quoted where possible, and what was expected.>
## Cause
<What was actually wrong and why it produced that symptom. Mark claims (V) or (I).>
## How it was found
1. <Steps in the order they narrowed the cause, with the commands and trimmed output.>
## Ruled out
- <Hypothesis>: <the evidence against it.>
## Fix
<What changed, with commit, files and functions. For a workaround, its limits.>
## Verified / not verified
- (V) <what was checked, and how>
- (I) <what is inferred or awaiting confirmation>
## Related
<Other entries, decisions, issues, upstream reports.>
Number "How it was found" in the order the steps narrowed the cause: that order is what the next reader reuses. Then add a row to the Index in the log's README, newest first.
record-decision.~.What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/decision-compactionCompact a repo's decision log and plan documents so agents read the current state, not the history — newest 3 kept in full, the rest summarised in place, full text pinned to a commit./record-decisionRecord a project decision in the repo's decision log (planning/DECISIONS.md) — numbered, dated, newest first, short, and kept to 3 full entries by rolling older ones into one-line summaries.dev-project-docs@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin dev-project-docs