/sdd-kit:create-decisionfrom sdd-kit
Creates a new Decision Record in the Memory Bank for significant decisions — hard-to-reverse choices of stack, library, data format or build mechanism, rules that spare the team the next decision, product decisions to be protected from silent rollback, breaks with an existing pattern, and cross-cutting changes. Use during spec creation or whenever such a decision is made. Triggers on phrases like "decision record", "we decided to", "write a decision", "document the decision", "why did we choose X over Y", or "ADR". Not every decision qualifies — the skill applies the significance gate with its exclusions first and routes implementation details to conventions, learnings, a CLAUDE.md, or an inline reason in the code instead, and it checks the finished record against the form rules.
Ships in sdd-kit. 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.
This skill guides through creating a Decision Record in the Memory Bank's record format (MADR, reduced to four body sections) and places the file on the correct Memory Bank level. Decision Records cover all types of significant decisions, not just architectural ones. The category field in the frontmatter indicates what kind of decision it is.
This skill is part of the Memory Bank. Conventions live in a check, a doc
comment, a CLAUDE.md or .claude/rules/ (see Conventions in the
shared reference). Decisions and learnings live under docs/decisions/
and docs/learnings/ of their level — the repo root for suite-wide
records, or an app/service subtree for records that concern only that app.
Levels, the placement rule, the significance triage and the form rules are
defined in the shared reference:
memory-bank-shared/REFERENCE.md.
Find the repo root directory (where .git/ is located). All paths in
this skill are relative to the repo root.
Apply the Significance triage from the shared reference. Judge the decision as understood from the conversation context — the skill is usually invoked right after a decision was made. If it was invoked without enough context to judge, first ask the user to state the decision in one line, then apply the gate.
Create a record only if at least one of the five criteria applies and no exclusion does (hard to reverse · eases future decisions · product decision to be protected · breaks an existing pattern · cross-cutting — the definitions, the exclusions and the routing table live in the shared reference, which is the single source of truth for the gate). If no criterion applies, do not create the record: tell the user which criteria failed and route per the Significance triage table in the shared reference.
Say the evidence out loud. For every criterion you affirm, name the criterion and its evidence to the user in one line before going on (see Evidence required in the shared reference):
An unnamed criterion does not count, and a piece of evidence that has to be spoken usually falls apart while you speak it.
Then check the three exclusions even when a criterion held — one feature without effect on others; nothing changed about appearance, stability, behavior or dev experience; a detail touching the whole app that is neither a product decision nor hard to revise. Any of them → no record. Say which one bit, suggest an inline reason in the code, and stop.
When the gate stays unclear, this skill stops here (see When the gate is genuinely unclear in the shared reference). This is not the escape hatch for a weak case — a criterion without nameable evidence is simply not met, and that is a "no record", routed per the table. It is for the case that stays undecidable after the evidence was named: the evidence holds but an exclusion seems to fit too, or the criterion rests on something nobody has committed to yet.
Then create nothing and do not continue to Step 3. You cannot reach the Hüter-Trio yourself, so hand the case over and pause:
/create-decision again afterwards — with the answer, the gate is a
one-liner.Do not offer to write the record "provisionally" and revert it later: it is binding the moment it exists and can only be undone by a second record superseding it.
The criteria and exclusions are changed only by the Hüter-Trio, in the shared reference. Do not create a record the gate refused on insistence — declining a record is a team decision, so ask the user to take the case to the team.
When the gate passes because the decision eases future decisions or is cross-cutting, document the generalizable pattern, not the single instance (see Generalize in the shared reference). The second application of an established pattern gets no new record.
Decide where the record lives using the Placement rule from the shared reference: a record lives on the smallest level whose subtree contains everyone affected.
Derive from the conversation context which apps/services are affected
and propose the level: the repo root for records spanning multiple
apps/services, process, or repo-wide records; apps/<app>/ or
services/<service>/ for records affecting a single app (even ones
spanning several of its features); an intermediate directory (e.g. services/)
when several siblings below it are affected. The user confirms or
corrects the proposal. If the affected scope is not apparent from
context, ask — never guess.
Before settling on the level, check the proposed level, the levels above it, and sibling apps/services for an existing record on the topic (see Before creating: check the other levels in the shared reference) — a higher-level hit is specialized via the delta principle; a sibling-level hit is a promotion candidate, not a duplicate.
{scope} below is the confirmed level directory (empty for the repo
root).
Ask the user for the following information. If answers are already apparent from the conversation context (e.g. because a spec is currently being written), suggest them instead of asking again.
Do not ask for decision drivers or for a pros-and-cons list per option. Both only repeat the context and the decision; the rejection of each alternative is a bullet inside Decision instead.
Create the file at {scope}/docs/decisions/YYYY-MM-DD-kebab-case-title.md.
The filename is derived from the date and title:
If {scope}/docs/decisions/ does not exist, create the directory. If the
resulting filename already exists on that level (same title on the same
day), make the title more specific instead of overwriting.
If the record specializes or deviates from a record on a higher level, link that record in the Context and problem section (Delta principle in the shared reference) — do not repeat its content.
Hard-wrap the record's prose at 100 characters at word boundaries (Line length in the shared reference) — the record is reviewed in a side-by-side diff.
Use this template:
---
# status: Active | Declined | Deprecated | Superseded by YYYY-MM-DD-kebab-case-title
status: Active
date: {today's date, YYYY-MM-DD}
last-modified: {today's date, YYYY-MM-DD}
# category: Architecture | Security | API | Testing | Infrastructure
category: {selected category}
deciders: {deciders}
---
# {Title}
## Context and problem
{Context and problem, one paragraph}
## Considered options
{Numbered list of options}
## Decision
{Chosen option}
- {Reason the option was chosen}
- {Rejected alternative and why it was rejected}
## Consequences
- Positive: {positive consequences}
- Negative: {negative consequences}
Check the finished file against the Form rules for a record in the shared reference and report the result to the user — each rule with pass or fail:
#123
work item references. A link to another record is fine (that is the
delta principle).Fix every violation before going on. Name each violation and the fix to the user; do not silently rewrite.
Update {scope}/docs/decisions/README.md with the new entry. If the
file does not exist, create it with a heading. The index lists all decisions
of this level with their date, title, status and category:
# Decision Records
| Date | Title | Status | Category |
|------|-------|--------|----------|
| 2026-07-15 | [Monorepo for MIRA Suite](2026-07-15-monorepo-for-mira-suite.md) | Active | Architecture |
| 2026-07-16 | [New decision title](2026-07-16-new-decision-title.md) | Active | Security |
Add the new entry at the end of the table, which keeps it chronologically sorted. Never list records of other levels here — every level maintains only its own index.
Show the user:
apps/mira-desktop/" or "suite level, repo root")Active on creation, and the team manages the
lifecycle itself: it deprecates decisions or supersedes them with new ones
as things evolve. The Hüter-Trio does not run the lifecycle and is not added
as a PR reviewer; they review on a scheduled basis (all records since their
last meeting) and only guard — flagging any contradictory or nonsensical
decision to be declined or revised, and ensuring decisions are applied
everywhere so the architecture and code do not drift.Superseded by <new record's filename without .md>. Deleting or merging
existing records is possible, but as a team decision — not a skill
action, and not on a single user's request.Superseded by … (see Promotion in the shared reference) — never
by moving files.NNNN-…). Leave them exactly as they are — old and new names coexist
in the same directory. Never renumber or rename existing records:
renaming is what causes stale references.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mediainterface/claude-marketplace --plugin sdd-kit6 skills in this plugin
/create-lesson-learnedCreates a new Lesson Learned entry in the Memory Bank, placed on the right Memory Bank level (repo root, or an app/service subtree like apps/<app>/docs/learnings/). Use this skill when a recurring pattern, pitfall or insight should be captured, e.g. when Claude repeatedly makes the same mistake, when a pattern emerges in reviews, or when something was learned during debugging. Also triggers on phrases like "this keeps happening", "we should document this", "lesson learned", "AI mistake", "I've seen this for the third time now"./design-specWrites a story's design spec under docs/sdd/specs/ in the MIRA form — a compact, decision-centred document for the spec PR of the SDD workflow. Use when a refined work item is to be turned into a design spec, when the user asks to plan a story or write its spec, and whenever the superpowers brainstorming skill is about to write the spec document for a story. Covers the planning conversation before writing, the section order, what belongs in a spec versus the implementation plan, and the checks before sdd-kit:spec-pr./pr-reviewUse when you want a thorough, triage-first review of an Azure DevOps pull request — you have a PR ID or URL and want more than the diff checked. Covers security, CI/pipeline status, code smells, dead code and drift, duplicate or divergent implementations across the wider codebase, test quality in both directions (tests that cannot fail if the behavior breaks, and tests that are redundant or over-broad), and decision records (ADRs) — violations of active ones, code following superseded ones, and decisions missing a record. Also checks whether the story's design spec and implementation plan are deleted here, and whether anything still needed was left only in them. A spec PR gets its own, much smaller review instead — the spec against its work item, against the decision records and the existing code, and its planned test approach against the repo's test process — because a spec has no code, no tests, and nothing to drift. The branch is checked out in an isolated worktree; findings are reported for your triage and only posted after you approve them. For a deep look — not the quick working-tree /code-review./pr-screenshotsTests a UI change by hand in the real, running app and puts screenshots of it into the description of its Azure DevOps pull request. Use when a pull request whose change alters what users see — a screen, dialog, layout, style, icon or UI text — is about to be created, when the user asks for screenshots in a PR, or when review fixes changed a state a PR already pictures. Runs once, when the UI is final — never per plan task or for interim states. Web and Electron apps are driven with Playwright; for WPF and every other UI that Playwright cannot drive, it tells the user to add the screenshots by hand. Not for spec PRs, nor for changes nobody sees in the UI./spec-prOpens a pull request for a just-written Spec-Driven-Development spec (plus any Memory Bank items) and then STOPS — no implementation plan, no code — until the PR is merged. Use immediately after a spec is written (by sdd-kit:design-spec or the superpowers brainstorming skill) and the user approves it, INSTEAD of writing-plans. Auto-detects the git remote: Azure DevOps → the ado-toolkit:ado-pr workflow, GitHub → the gh CLI. Also triggers on "PR the spec", "open a spec PR", or "ship the spec for review".