/tsh-core:managing-decision-recordsfrom TSH Core
Manages architecture decision records (ADRs): defines the four-section format, status vocabulary, numbering, superseding, and keeps docs/decisions/README.md in sync. Use when adding, changing status, superseding, or deciding if something warrants a record.
Ships in TSH Core. 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.
Owns what a decision record is — its sections, its status, its number, and its
row in the index. It does not own the words inside it: prose craft belongs to
writing-technical-documents, which
covers decision-first ordering, compressed alternatives, concrete consequences and
reversibility.
A decision record earns its keep only when someone later asks "why is it like this?" and gets an answer. A record with no rationale, or one the index does not list, has cost effort and bought nothing.
The repository's existing ADR convention outranks this format. Where records already
follow a shape — Nygard, MADR, a house template — match it exactly and apply only
the lifecycle rules in status-lifecycle.md.
Read two neighbouring records before writing a new one.
docs/decisions/ is the default location. A repository already keeping records
elsewhere keeps them there.
The record is the source of truth for status and tags. The index mirrors it. When the two disagree, the record wins and the index is corrected.
This skill does not:
writing-technical-documentsCLAUDE.md — that is
managing-claude-contextWhen the reasoning behind a decision cannot be recovered, write the record with the gap named explicitly. A plausible invented rationale is worse than an admitted one, because it will be cited later as if it were true.
| Severity | Rule |
|---|---|
| MUST | Include all four sections — Decision, Context, Alternatives, Consequences, in that order — plus the metadata block. Decision comes first: the conclusion belongs in the first sentence. A record missing Alternatives cannot stop re-litigation, which is the reason the artifact exists. |
| MUST | State the decision in the present tense as settled fact, in the first sentence of the Decision section. |
| NEVER | Edit the body of a record whose status is Accepted or later. Write a new record and link the two. |
| MUST | Add the index row in the same change as the record. An unindexed record is invisible and will not be read. |
| MUST | Keep status and tags identical in the record and the index. The record is authoritative. |
| NEVER | Set or change a status yourself. Propose it, name who decides, and leave it. |
| MUST | Number records with a zero-padded sequence, never reused and never renumbered. |
| MUST | When superseding, update both records and both index rows — the old one points forward, the new one points back. |
| NEVER | Delete a record or its index row, including for rejected and superseded decisions. The rejected option is the most valuable thing in the archive. |
| MUST | Name the gap explicitly when a rationale cannot be recovered, rather than reconstructing one. |
| MUST | Treat only Accepted records as binding when reading decisions to inform other work. Other statuses are history. |
| Reference | Load when | Covers |
|---|---|---|
| Record format | Writing or restructuring any record | The metadata block and four sections one by one, why Decision precedes Context, numbering and file naming, a worked example, what bloats each section |
| Status lifecycle | Setting a status, superseding, or reconciling index and record | The status vocabulary, legal transitions, the supersede procedure, which status binds, the index-sync obligation |
| When to write one | Unsure whether something warrants a record | The threshold, ADR vs. a convention in CLAUDE.md vs. nothing, why most choices are not decisions |
Step 1 — Confirm it is a decision. Read
when-to-write-one.md before creating a
file. Most things people want to record are conventions, and a convention belongs
in CLAUDE.md or a path-scoped rule where it is loaded automatically. A record
written for a non-decision dilutes the index for every real one.
Step 2 — Read the neighbours. Open the index and two existing records. Match their shape. Check whether an existing record already covers this ground — if one does, this is a supersede, not a new decision, and Step 5 applies.
Step 3 — Gather what is actually known. The constraint that forced the decision, the options considered, the reason each lost, and the consequences. Ask when the rationale is not recoverable. Do not fill a section by inference.
Step 4 — Write the record. Read
record-format.md before writing the first
section — the ordering and what each section excludes are not reconstructible from
the rules table. Take the next free number. Apply
writing-technical-documents to the prose
within the sections.
Step 5 — Handle superseding, if this replaces something. Read
status-lifecycle.md. The old record keeps its
body unchanged and gains a forward pointer; the new one points back. Both index rows
change in this same step.
Step 6 — Update the index and stop at status. Add or update the row so path, tags, description and status match the record exactly. Then state the status you believe is correct and who should confirm it — do not set it yourself.
- [ ] This is a decision, not a convention that belongs in CLAUDE.md
- [ ] All four sections are present, Decision is first, and Alternatives says why each option lost
- [ ] The Decision section's first sentence states the choice as settled fact
- [ ] No accepted record's body was edited
- [ ] The index row was added or updated in this same change
- [ ] Status and tags are identical in the record and the index
- [ ] No status was set or changed without a human deciding it
- [ ] Superseding updated both records and both rows, in both directions
- [ ] Nothing was invented to fill a section; gaps are named as gaps
What SKILL.md sets; muted values are Claude Code's defaults
Trigger on: writing a new ADR, recording an architecture or technology choice, marking a decision accepted or superseded, reversing an earlier decision, numbering or naming a record, a decision record missing from the index, an index status disagreeing with the record, or asking whether a choice deserves a record or belongs in `CLAUDE.md`.
6 skills in this plugin
/authoring-claude-extensionsDecides which Claude Code extension a need calls for — skill, subagent, hook, or plugin — and then writes it. Use when building or changing any of those four, when a workflow keeps getting pasted into chat, when a side task floods the conversation, or when a setup has to be shared across repositories or published as a plugin. A single hook wired into this repository's settings.json is Claude Code's own configuration, not an extension to author./initOne-shot setup of a project's Claude Code context. Audits what already loads, then creates or repairs root and nested `CLAUDE.md`, path-scoped rules, and the decision-record archive with its index by running the owning tsh-core skills in order, wires maintenance pointers into `CLAUDE.md` so future sessions keep it all current, and, where tsh-product-engineering is installed, has the project's verification and security-invariant skills captured. Run /tsh-core:init inside the repository to set up./managing-claude-contextSets up and maintains the project-context files Claude Code loads — root and nested `CLAUDE.md`, path-scoped rules in `.claude/rules/`, and a decision-record index — so a repository's conventions reach the model without bloating every session. Use when a repository has no `CLAUDE.md`, when Claude keeps ignoring a convention, or when the memory files have drifted from the code.npx claudepluginhub thesoftwarehouse/agentic-collections --plugin tsh-coreOther plugins' skills for the same job