/dev-project-docs:record-decisionfrom dev-project-docs
Record 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.
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.
A decision log answers "why is it like this?" for the next agent or person who opens the repo cold. It is one markdown file, newest first. Record a decision when a call has been made that someone might otherwise relitigate: an architecture, product, editorial or cost choice, or the reversal of an earlier one. Most changes don't need an entry.
Look for an existing log first: planning/DECISIONS.md, planning/decisions.md,
docs/DECISIONS.md, DECISIONS.md, or an ADR folder (docs/adr/, doc/architecture/decisions/).
If the repo has one, follow its format and skip what doesn't apply below.
If there's none, create planning/DECISIONS.md with this header:
# Decisions
One file, newest first. Each entry records what was decided and the reason that settled it.
- New entries go at the top of **Current (full)**. Number = highest number in the file + 1.
- Format: `### NNN — title`, then `date · status · area`, then 2–4 sentences.
- Only the newest 3 entries stay in full; older ones are summarised to one sentence
under **Earlier (summarised)**. Full text stays in git history.
## Current (full)
## Earlier (summarised)
The number is the highest ### NNN in the file + 1, zero-padded to three digits.
Insert at the top of ## Current (full):
### NNN — <short title saying what was decided>
YYYY-MM-DD · active · <area>
<2–4 sentences: what was decided and the reason that settled it. Name a rejected
alternative only if one clause says why it lost.>
---
Status is active, partial, in-progress or superseded by NNN. Relations go
on the status line (· amends 056).
Reversing an earlier entry: set that entry's status to superseded by NNN.
Leave its heading alone.
Keep 3 in full: if ## Current (full) now holds more than 3 entries, move the
oldest to the top of ## Earlier (summarised) and cut it to its heading, its
status line and one sentence (what was decided and why, plus any number, name or
path someone would need to act on).
## Current (full) holds many entries, run
decision-compaction.What SKILL.md sets; muted values are Claude Code's defaults
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-docs3 skills in this plugin
/debug-retrospectiveAfter 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./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.