/dev-project-docs:decision-compactionfrom dev-project-docs
Compact 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.
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.
Decision logs and plan folders grow until an agent opening the repo reads ten superseded plans before it finds the one that's live, and acts on the wrong one. This skill keeps the newest 3 decisions and the newest 3 plans in full, and summarises everything older in place. Nothing is lost: each compacted file names the commit that holds the full text.
Use it when the user says "compact the decisions", "clean up the old plans", "the decision log is too long", or "agents keep reading old plans".
### NNN — title line keeps its number and
title, because code and docs cite decisions by number. Before editing, count
the citations (grep -rEn "decision [0-9]{2,4}") to show why this matters.date · status · area,
superseded by NNN, amends NNN). They are what an agent filters on.git rev-parse HEAD on a clean, pushed
tree. That commit holds the full text, and every compacted file cites it.planning/DECISIONS.md, docs/DECISIONS.md, DECISIONS.md,
or an ADR folder (one file per decision).planning/plans/, docs/plans/, plans/, PLAN-*.md, RFC-*, and
any plan index (a README table of IDs and statuses).git log --diff-filter=A.Full: the 3 newest entries, untouched, under ## Current (full).
Summarised: every other entry, under ## Earlier (summarised), newest first:
### NNN — <title, unchanged>
<status line, unchanged>
<one sentence: what was decided and the reason that settled it>
Keep any number, model or version, threshold or file path someone would need to act on. Drop the narrative, the alternatives and the measurements.
Header note: add Entries before NNN are summarised. Full text as of YYYY-MM-DD: git show <sha>:<path>. On a later run, keep the earlier notes,
because older full text may sit in an older commit.
ADR folders (one file per decision): compact each old file in place to the
same three lines plus the Full text: pointer. Keep the file names.
Full: the 3 newest plans, plus any plan whose status says it is in progress, because someone is working from it. Say which plans you kept for that reason.
Summarised: every other plan file, rewritten in place to at most ~25 lines:
# <title, unchanged>
**Plan ID:** <ID, if the plan has one>
**Status:** <from the index if there is one, else from the plan>
**Goal:** <1–2 sentences>
**Done:**
- ...
**Open:**
- <what a future agent needs to pick it up: paths, blockers, decision numbers>
Full text: git show <sha>:<path>
Supporting files (specs, appendices) follow their plan: compacted with it, or kept with it.
A plan index (status table) stays as it is. Fix only a status line that the plan text clearly shows is out of date, and report that you did.
sha=$(git rev-parse HEAD).git show <sha>:<log>).record-decision keeps the log at 3 full entries as it adds new ones.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./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.