/trace:adr [short decision title]from trace
Records architecture decisions as lightweight, immutable ADR files in the project's docs folder. Handles template filling, numbering, and supersession detection. Invoke directly or via /trace:spec at handoff.
Ships in trace. 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.
Use Claude Code’s Read, Glob, Write, and Edit tools for file operations. Use AskUserQuestion for closed choices and normal chat for open questions. Invoke referenced skills with the Skill tool. Resolve script paths from this installed skill; respect the session’s permissions.
You are recording an architecture decision as an ADR — a short, immutable record of a single significant choice. An ADR captures why this, over the alternatives; it is not edited after it lands (a later change of course is a new ADR that supersedes it).
Before doing anything, read adr-criteria.md (the bar, for Phase 2) and docs-folder-resolution.md (folder lookup, for Phase 3). You'll read adr-template.md and authoring-rules.md in Phase 4, only if the decision clears the bar.
Find the decision you are recording.
/trace:adr "use Redis for sessions"): use $ARGUMENTS as the working title.Apply adr-criteria.md, hard gate first. If the decision doesn't clear it, say so and point the developer to /trace:distil — don't write a low-value ADR.
If an existing ADR covers the same ground, this is likely a supersession (Phase 5), not a new standalone record.
Resolve the scope's docs folder using docs-folder-resolution.md. ADRs live in <docs-folder>/adr/.
List <docs-folder>/adr/*.md. The next number is the highest existing four-digit prefix plus one, zero-padded to four digits (0001, 0002, …). If the folder is empty or absent, start at 0001.
Fill the adr-template.md sections — Context, Decision, Consequences — from what you know, then confirm the gaps with the developer. example-adr.md shows the target depth: a few sentences per section, alternatives as prose inside Context. The rationale and the alternatives considered are the point of an ADR; if the conversation didn't make them explicit, ask. Record the decision and its rationale, not the mechanism the code and plan already document. Apply authoring-rules.md: plain prose, only what was actually decided, no padding.
Choose a kebab-case <short-title> slug. The filename is <NNNN>-<short-title>.md.
Show the developer the drafted ADR and its target path. Wait for explicit approval. Apply edits if requested.
Write the approved ADR to <docs-folder>/adr/<NNNN>-<short-title>.md. Create the ADR directory if it does not exist.
If this ADR supersedes an earlier one:
> Superseded by {NNNN}. line under the old ADR's title — the only permitted edit to an existing ADR. Show the developer this edit and confirm before applying it.main or master). The skill writes ADRs at end-of-work, so treat the body as final once written. Change it before the merge only when the developer or a reviewer asks. Course corrections are a new ADR that supersedes the old one.init/distil/agents-md-setup concerns. ADRs are discoverable through the docs-folder entry those skills maintain.When to use: When an architecturally significant decision has been made — one affecting the system's structure, non-functional characteristics, a foundational dependency, a public interface, or a reused construction technique, with a real choice between alternatives. Spec-workflow invokes this at handoff when a planning decision qualifies; a developer can invoke it directly too. Not for a choice localized to one feature or module, a conventional default, or a routine/cheap-to-reverse implementation choice — route those to /trace:distil.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub axakon/trace --plugin trace11 skills in this plugin
/agents-md-setupSet up or review the project's AGENTS.md through an interactive interview with the developer/commit-messageDraft a single commit's message — imperative-mood title plus a short why body, optional decision bullets, plain text (no markdown). Use when the developer explicitly asks for a commit message, asks to fix a message before amending, or asks the agent to perform the commit on their behalf./context-graphMeasure context weight per directory: AGENTS.md chains, @ imports, gotchas, on-demand docs./distilEvaluate recent changes and propose updates to the project's permanent context (AGENTS.md or the scope's docs folder) when something durable was learned/doctorValidate a TRACE-adopted scope against TRACE's own conventions — doc structure, marker pairs, AGENTS.md spec, ADR numbering and immutability, working-note banners, relative links — then guide the fixes. Owns the resolution flow for ADR number collisions left by merged branches. Useful after merges, before releases, or whenever the structure feels off./epicTurn a multi-phase feature into a local epic — an architecture-focused interview producing core user stories, diagrams, and spec-sized tickets under ~/.claude/epics — then manage the board as work lands