/code-knowledge:decision-recordsfrom code-knowledge
Guidance for writing decision records under docs/decisions/ -- when a decision is worth recording, how they are numbered, and the minimal format. Use when recording a decision, adding or superseding a decision record, or judging whether a decision warrants one.
Ships in code-knowledge. 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 record records that a decision was made and why. The value is in the record, not in filling out sections: a single paragraph is a complete record.
Files are docs/decisions/<NNNN>-<slug>.md, e.g. 0001-no-soft-deletions.md. The number is the highest existing one plus one, zero-padded to four. Create docs/decisions/ when the first record needs it, not before.
These are ADRs (architecture decision records) without the assumption that every decision worth recording is architectural. Half of what belongs here is not: a compliance constraint, a deliberate deviation from the obvious path, a rejected library. Hence decisions/.
All three must hold:
If the decision is easy to reverse, skip it; it will just get reversed. If it isn't surprising, nobody will wonder. If there was no alternative, there is nothing to record beyond doing the obvious thing.
What usually qualifies:
Dropped work is a common source: "we decided not to do X because Y" outlives the work item it came from, and the item itself gets deleted (see /code-knowledge:docs-folder skill).
---
name: No soft deletions
description: Why deleted rows leave the database instead of being flagged
---
# No soft deletions
<1-3 sentences: the context, the decision, and the reason.>
Add a section only when it earns its place; most records need none:
status: frontmatter (proposed, accepted, superseded by 0007) -- when decisions get revisited.A decision taken while doing a piece of work is drafted at docs/wip/<work-slug>/decisions/<slug>.md and promoted to docs/decisions/ when the work lands. Drafts carry no number: assigning it at promotion keeps two concurrent work items from claiming the same one. Promote with git mv and add the number to the filename then.
A decision record records a decision at a point in time, so it stays true even after the decision is reversed. This is the exception to the rule that a stale reference file gets deleted. Don't rewrite a record to match a newer decision and don't delete it: write a new record, and note in the old one which record replaced it.
Because records are never edited in place, they have no delta form. A draft that reverses 0003 is an ordinary draft that says so.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub a3lem/knowledge-powerups --plugin code-knowledge5 skills in this plugin
/architecture-mdGuidance for writing docs/architecture.md, the high-level architecture overview of a code base. Use when creating an architecture overview, updating one after a large refactor, or deciding what belongs in it versus elsewhere in docs/./changelog-mdGuidance for maintaining CHANGELOG.md following the Keep a Changelog convention. Use when recording a notable change, cutting a release, marking a yanked release, or creating a changelog for a project that lacks one./docs-folderA standard layout for the docs/ directory of a code base, where a file's path tells you its role (spec, decision record, how-to, work item) and its authority (whether it can be built on without re-verifying against the code). Use when creating, moving, or organizing documentation, when deciding where a new document belongs, when judging whether an existing doc is trustworthy, when creating, picking up, resuming, or archiving a work item under docs/wip/, or when asked to set up, initialize, or scaffold docs/ in a new or existing project.