/sdd-kit:pr-review <PR_ID_OR_URL>from sdd-kit
Use 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.
Trending skills
7-day visitors to each skill page
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.
Review an Azure DevOps pull request thoroughly, then let the user decide what gets posted. Given a PR ID or URL, this checks out the branch in an isolated worktree, runs a multi-dimension review (each dimension explores the code around the change, not only the diff), reports the findings for triage, and posts only the findings the user approves.
The Azure DevOps plumbing lives in the ado-toolkit plugin, which sdd-kit depends on — this
skill orchestrates its skills; it does not re-implement az. REQUIRED SUB-SKILLS:
ado-toolkit:ado-pr — PR metadata, local diff, comment threads (its PR Comments
workflow is the only way this skill posts anything).ado-toolkit:ado-pipeline — root-cause analysis for a failed PR build.ado-toolkit:ado-workitem — the linked work item's content (title, description,
acceptance criteria, state) via its show workflow. The spec-PR review compares the spec
against it.az
command), Repository Mismatch Check, Quirks, and German text rules in
ado-toolkit's shared reference (ado-shared/REFERENCE.md, linked from ado-toolkit:ado-pr
— invoke that skill first so the reference is at hand) apply — run Step 0 once before the
first az command.ado-toolkit's Step 0 (connection detection). If an az command fails — not signed
in, CLI or extension missing — its Setup Check gives the fix; stop there.ado-toolkit:ado-pr review step): sourceRefName, targetRefName, title,
description, status, linked work items, repository.name, lastMergeSourceCommit, and
reviewers (with isRequired and vote — Phase C0 combines these with the thread history to
tell whether a human review has already happened; the current vote alone does not say).
Run the Repository Mismatch Check — if the PR is in a different repo than the current one,
stop unless the user confirms (the worktree and diff would otherwise use the wrong codebase).commentType: "system", carrying a CodeReviewThreadType property): they hold the PR's history, the
reviewers' earlier votes among it, which is how Phase C0 tells whether a human review has
already happened. They are excluded from the dedupe, not from the fetch.A spec PR and an implementation PR get different dimension sets in Phase C, so settle the kind here — before the worktree, before any subagent. This is also where most of the run's cost is decided: a spec has no tests, no production code, and nothing to drift, so putting the code dimensions on a Markdown diff finds nothing and burns a full explorer fleet.
Strip refs/heads/ from both branch names, then get the changed-file list — no worktree needed
yet:
git fetch origin {sourceBranch} {targetBranch}
git diff --name-only origin/{targetBranch}...origin/{sourceBranch}
lastMergeSourceCommit.commitId from Phase A
— git fetch origin {commitId}, then diff against {commitId}. Whichever ref you end up
using is {sourceRef} for Phase B — do not fetch a second time there.Classify with the shared definition — Spec PR vs. implementation PR in ../sdd-pr-shared/REFERENCE.md. Four things decide it in practice:
ado-toolkit's
Quirks, the CLI may hand back a title with the emoji stripped, so a missing 📝 is not
evidence of anything. A documentation-only diff is a spec PR with or without the marker.A in
--name-status) — you do not ask for a file the PR exists to introduce.Phase A.5 has already fetched, so from the repo root:
git worktree add --detach .claude/worktrees/pr-review-{id} {sourceRef}
{sourceRef} is origin/{sourceBranch}, or the lastMergeSourceCommit.commitId when the
source branch was gone.
origin/{targetBranch}...HEAD inside the worktree.git worktree add fails, report the exact error and stop. Do not fall back to an in-place
checkout of the user's working directory.Two dimension sets, and Phase A.5 already picked the one that runs: C-I for an implementation PR, C-S for a spec PR. They are separate sets, not one set with exclusions — a spec is judged on its own questions, not on the code questions minus the impossible ones.
From inside the worktree, compute the diff (--name-status, --stat, full diff, commit log
against the target) and read the CLAUDE.md files near the changed directories so the subagents
inherit the project's own conventions. Then the two inputs both sets need:
docs/decisions/ directory, not just the repo root's (docs/decisions/,
apps/*/docs/decisions/, services/*/docs/decisions/, …), and keep the ones whose level
covers the changed paths — a record in apps/<app>/docs/decisions/ binds changes inside that
app, a root record binds everything. On a spec PR the relevant paths are the ones the spec
proposes to touch, not the path the spec file itself sits at.Implementation PR only — three more inputs:
docs/sdd/specs/,
docs/sdd/plans/ — for a story begun before the move docs/superpowers/specs/ and
docs/superpowers/plans/): hand their paths and content to dimension 5. This asks about files
present in the worktree, not files in the diff — a merged spec PR put them there, so they
will not show up in this PR's changed-file list.Mixed PR only (documentation and code) — the doc half gets reviewed too. Phase A.5 classified it as an implementation PR, so C-I runs; a second full C-S pass would be out of proportion to the small change this shape usually is. Hand the changed doc and spec files to the two dimensions that already ask the right questions instead:
Spec PR only — two more inputs:
*-design.md (or whatever this repo names it) the PR
adds, plus anything riding along in the same PR — Memory Bank records, a convention in
.claude/rules/ or a CLAUDE.md (/spec-pr bundles those deliberately, so they are part of
what is under review).ado-toolkit:ado-workitem's show workflow: title, description, acceptance criteria,
and state. The server is German-localized — read the field names from the server instead of
assuming them (shared reference, German text). A PR without a linked work item, or one
whose work item has no acceptance criteria, is itself a result: it goes into the status header
and S3 reports what it could not compare against.Dispatch one subagent per dimension, using a read-only agent type (Explore, or any
agent whose tool set excludes Edit/Write). This is what actually enforces "review only":
a skill's allowed-tools is not inherited by its subagents, so the read-only guarantee has
to live in each subagent's own tool set — a general-purpose subagent could edit files.
Dispatch every dimension with an explicit model: sonnet. An implementation review spawns
~7 explorers at roughly 100k tokens each; inheriting the session's model makes that
disproportionately expensive, and Sonnet handles the dimension analysis. Escalate to the session
model only when the user explicitly asks for a deeper pass. They run
in parallel; each is told the worktree path, the diff range, and the changed-file list, and
returns findings in the schema below. Subagents post nothing.
Runs when Phase A.5 classified this as an implementation PR. Skip this whole set on a spec PR.
Security — injection, XSS, secrets/tokens in logs or config, authn/authz gaps, unsafe deserialization, SSRF, OWASP-style issues. Check the trust boundaries the change touches, not just the changed lines.
CI / pipelines — produces the status line, not findings. Is every required check on this
PR green? Get the PR's build-validation status (try
az repos pr policy list --id {prId} --org {org} -o json; else list recent builds for the
source branch and read result). For any failed required build, hand its buildId to
ado-toolkit:ado-pipeline for a one-line root cause.
The result is status information for the report header — never a numbered, postable
finding. A red check, a failing test, a build error: the PR page already shows all of it,
so a comment saying so adds nothing and forces the user to exclude it instead of saying
"post all". Report it as status and move on.
One exception, and it is not a CI finding: if the root cause turns out to be a real defect
in the changed code, that becomes a normal smell/security finding anchored at the offending
line, worded as the defect itself („x ist hier null, wenn …") — never as „der Test schlägt
fehl". The value is the diagnosis the pipeline doesn't give, not the red status it does.
Consistency & drift (the expensive, high-value one) — for each new function, hook, component, endpoint, or helper the PR introduces, search the wider codebase for an existing equivalent. Flag: a second, divergent implementation of something that already exists (duplicate/parallel feature); a pattern that departs from its siblings without reason; dead code the PR adds or leaves behind (unreferenced exports, unreachable branches, orphaned files); and copy-paste that should reuse an existing utility. This is why the whole branch is checked out, not just the diff. Two checks that always run here — plus one when Phase C0 handed over changed doc or spec files (a mixed PR): does that documentation describe what the code in this PR actually does? A doc or spec updated next to the code it describes, drifting from it in the same commit range, is drift of the plainest kind, and no other dimension looks for it. Anchor it at the documentation line that no longer holds.
apps/mira-desktop), new UI must actually use the library's components.
Flag hand-rolled markup/CSS that replicates an existing or available library component; a
genuinely new component belongs in the library's own path (for shadcn:
npx shadcn@latest add <component> into components/ui/), not hand-written next to it —
hand-rolled replicas are how the UI drifts away from the design system..sln changes). When a PR adds a project to a
solution, the new entry's platform set must match the solution's existing one. Flag
re-introduced Any CPU / x86 configuration lines in solutions that only build x64
(all backend service solutions here) — the tooling adds them by default, they build
nothing that ships, and they are pure noise in every future diff.Code smells & correctness — real correctness bugs (off-by-one, null/None, unhandled errors, race conditions), over-complexity, naming that misleads. Skip style a linter already enforces. Tests are not this dimension's job — they are dimension 6, so the two don't report the same gap twice.
ADR compliance & durable context — runs on every review, not only when the change "looks
architectural".
If the repo keeps decision records, read every record whose topic touches the changed code —
from every Memory Bank level above those paths (the app's or service's own
docs/decisions/ and the repo root's), and in all statuses, because the status decides
what the finding is.
Check each record against the code in the worktree, at the level of the enclosing unit —
the whole method, class, component, or config block the diff touches — never against diff
hunks alone: a hunk can look compliant while the surrounding unit violates the record, and
whether a change complies often only shows in code the diff doesn't contain (the callers,
the rest of the class, the sibling branches).
Violates an active ADR (status: Active): at least 🟡, usually 🔴 — the way out is to
follow the ADR or supersede it first, never to drift past it silently.
Follows a non-active ADR: a PR that implements the pattern of a Superseded,
Deprecated, or Declined record is building on an outdated decision. Flag it and point
to what applies now (for Superseded by NNNN, the superseding record; otherwise the
current convention in the surrounding code).
Makes a new lasting decision without an ADR: a new technology or dependency, a new
cross-cutting pattern, or a deliberate deviation from an existing convention that future
readers will ask "why?" about. Run it through the significance triage before proposing
anything (hard to reverse / eases future decisions / protected product decision / breaks a
pattern / cross-cutting — see
../memory-bank-shared/REFERENCE.md): a one-off local
choice is no finding, a recurring coding rule is a convention (placed per
Conventions there), an observed pitfall goes to sdd-kit:create-lesson-learned. A
criterion counts only with evidence you can name from this codebase:
The three exclusions apply even when a criterion held — one feature without effect on
others, nothing changed about appearance/stability/behavior/dev experience, a whole-app
detail that is neither a product decision nor hard to revise → no ADR finding, at most
a 🟢 asking for an inline reason in the code. Undecidable even after the evidence is
named — evidence and exclusion both fitting — is a 🟢 that names both sides and suggests
putting the case to the Hüter-Trio, never a demanded record: the author would write one
that a second record has to supersede.
Only when a criterion is met, propose the ADR:
suggest a title, the one-sentence decision it should capture, and the level it belongs
on (the smallest level whose subtree covers everyone affected — the app's docs/decisions/
for a single-app decision, the root's only for one spanning apps or services).
sdd-kit:create-decision can then draft it. Usually 🟢, 🟡 if the decision contradicts how
siblings do it.
Spec and plan are transient — and this review is where they go. A design spec and an implementation plan belong to one story, not to the repository: they are deleted at the human code review of the story's implementation, at the latest after the first round. Runs only when Phase C0 handed over spec or plan files. On a spec PR this dimension set never runs at all; in a mixed PR the spec or doc files this PR adds are content to check, never deletion candidates — you do not ask for a file the same PR introduces. Then two checks, in this order:
git rm in this PR — 🟡 when Phase C0 reports the
PR as past its first review round, because that was the deadline. This covers files the
branch carries in from an earlier merged spec PR, never ones this PR adds itself.No decision records in the repo → report the ADR part of the dimension as not applicable, don't silently skip it. The spec/plan check runs regardless.
Test protection — does the suite actually secure the new behavior? Runs on every review whose PR touches code. Where tests are generated alongside the code, they are green from the first run — and green proves nothing. A test written from the implementation confirms what the code currently does instead of checking what it should do; it cannot fail by construction. That is worse than a missing test, because every later reader reads it as coverage. So judge the tests, don't count them — a PR that adds 40 tests can still add zero protection.
This dimension looks only for weak or missing protection. The opposite direction — which tests could be deleted without losing anything — is dimension 7 and must stay out of this dispatch: a reviewer holding both jobs at once always prioritises the gap, because a gap reads as the more alarming defect, and the surplus never gets reported.
Two inputs, in this order.
The question of this dimension, per new or changed test: would this test fail if the behavior were wrong? Answer it concretely — name the change to the production code that turns this test red. If the honest answer is „a rename" or „nothing", the test checks the wrong thing. You cannot run the proof (this review never edits code), so ask the question on the code you read and put the proposed sabotage into the finding: „brich testweise X — der Test bleibt grün."
Note what this question does not catch, and don't try to stretch it: a test that fails properly but checks the same case as a test three files away passes it cleanly. That is dimension 7's question.
What makes a test unable to do its job, concretely:
toHaveBeenCalledWith)
instead of what came out; walks the same branches in the same order as the code it tests.toBeDefined(), not.toThrow(), a bare render, or a
snapshot as the only check: this proves "did not crash", not "behaves correctly"..skip / .only, commented-out cases, a weakened
assertion, a raised timeout or a retry wrapped around a flaky test instead of a fix.Beyond the individual test — still only gaps:
Severity guidance: a test that cannot fail is at least 🟡, never 🟢 — it is read as protection for as long as it exists. 🔴 for new behavior with no meaningful test at all, and for coverage removed with nothing underneath.
Test surplus — what could be deleted without losing a check? Its own dimension with its own subagent, on every review that adds or changes tests. Surplus tests cost real money — maintenance, runtime, and noise in every future diff — and dimension 6 is blind to them: a test that fails properly but checks the same case as a test three files away passes its question cleanly. Nobody finds this unless somebody is looking for exactly it.
The question of this dimension, per new or changed test: if I delete this test, what is no longer checked? If the answer is „nothing that another test doesn't already check", it can go.
The dispatch rule — this prompt carries no gap work. It gets this question, the checks below, the diff and the test suite, and nothing about missing coverage: no acceptance criteria, no „is the new behavior covered", no „find missing tests". Loading it with gap work turns the reviewer around — a gap always looks more urgent than a surplus — and the point of the separate dimension is precisely that the surplus gets an undivided pass.
Name the competitor or drop the finding. A redundancy claim must name the test that already covers the case: file plus test name. „Wirkt redundant" without that is a guess, and a wrong deletion suggestion costs the team its trust in the whole dimension. Search the existing suite, not just the PR's new files — the duplicate usually sits in a test that has been there for months.
What to look for:
Severity guidance: a redundant test is 🟡, merely excessive breadth is 🟢 — and „das kann weg" is worth reporting exactly as much as „das fehlt". Never park a surplus finding at 🟢 just because nothing is broken. A whole test file that checks nothing the suite doesn't already check is one 🟡 finding, not twenty 🟢 ones.
Runs when Phase A.5 classified this as a spec PR. The seven code dimensions above do not run here. There is no production code, no test, and nothing to drift, so they would spend a full explorer fleet reporting the absence of things that cannot exist yet. What is worth reviewing about a spec is whether it matches the story it serves, the decisions already taken, the code it will land in, and the process that will judge it — while changing it still costs nothing.
Only S2 really searches the codebase, which is what makes this set cheap. Dispatch S1–S5, and S6 only when it applies.
S1 — Memory Bank: conflicts and missing records. The counterpart of dimension 5, applied to what the spec proposes instead of to code that exists.
Active record is at
least 🟡, usually 🔴 — the way out is to follow it or supersede it first, and here that is still
cheap.Superseded,
Deprecated, or Declined decision plans against an outdated one. Point to what applies now./spec-pr bundles
them deliberately, so they are under review here too)./spec-pr Step 3). Something needed that lives only in
the spec is 🟡, with the durable home named. In the implementation review the same check only
confirms; here it still changes something.S2 — Consistency with the code that already exists. The drift dimension turned around: instead of "does this code duplicate something", ask "does this plan duplicate, contradict, or misdescribe what is already there". The one dimension in this set that genuinely searches the codebase — give it the room dimension 3 would have had.
S3 — Spec against the story (the linked work item). Compare in both directions, using the work item from Phase C0. Its own dispatch, separate from S5 on purpose: a reviewer holding both jobs weighs the spec-internal gap higher and the comparison against the external source quietly drops out — the same reason dimensions 6 and 7 are split.
S4 — Planned test approach against the repo's test process. The legitimate remainder of dimensions 6 and 7 at spec time. „Would this test fail if the behavior were wrong" cannot be asked — no test exists — but whether what is planned will satisfy the process that later judges it can, and that is far cheaper to settle here than in the implementation review.
S5 — Is the spec implementable? Its self-consistency, independent of the story.
S6 — Security by design (dispatch only if it applies). Only when the spec touches a trust boundary: authentication, authorization, external input, secrets or tokens, personal data, a new network path or dependency. The question is whether the design has a hole — a check on the wrong side of the boundary, a token somewhere that gets logged, a missing authorization step — never whether the Markdown has one. Touches no trust boundary → skip the dispatch and say so in one line rather than dispatching an explorer to find nothing.
Finding schema (each subagent returns a list of these): A finding is something that needs a comment on a line — of code on an implementation PR, of the spec on a spec PR. Anything the PR page already displays by itself (check results, test failures, build logs) is status, not a finding, and never enters this list.
severity : 🔴 Blocker | 🟡 Sollte | 🟢 Optional
file : path from repo root
line : line number (or range)
dimension: security | consistency | smell | adr | test | test-surplus
| spec-story | spec-tests | spec-quality
summary : one line — the concrete issue
why : one sentence — why it matters, ONLY if not obvious from the line
suggestion: the concrete fix or a genuine question
The spec dimensions reuse the existing values where the topic is the same — S1 reports adr,
S2 consistency, S6 security — and the three new ones belong to S3 (spec-story), S4
(spec-tests), and S5 (spec-quality). A spec finding anchors at the line of the spec that
carries the claim, so it can be posted like any other; only a finding about something entirely
missing from the spec anchors at the heading it should have followed.
summary, why, and suggestion are written in the simple language of the recipe below
("How findings and comments are written") from the start — put that requirement into every
subagent's dispatch prompt. The triage report and the posted comments reuse these fields nearly
verbatim; nothing gets simplified only at posting time.
Merge the subagents' findings. Drop any that duplicate a point already in an existing PR thread
(note it as already-raised instead). Rank by severity, number them, and present a structured
inline list grouped as 🔴 / 🟡 / 🟢, each with file:line, the summary, and the suggestion.
Where dimension 6 and dimension 7 land on the same test, merge them into one finding at the higher severity and say both things in it („prüft nichts, was … nicht schon prüft — und würde auch bei falschem Verhalten grün bleiben"). Never drop the surplus half while merging: it is the half only one dimension was looking for. On a spec PR the same applies where S3 and S5 land on the same passage — an open decision that is also an unaddressed acceptance criterion is one finding at the higher severity, and it keeps the story reference.
The report has two clearly separated parts:
The report is rendered as Markdown in a terminal. A line that starts with 1. or 1) is an
ordered-list item, so the renderer prints its own counter in front of yours („1. 1.") and
restarts that counter after every interruption — a bullet list inside a finding, a new heading.
The result looks like duplicated numbers, a severity appearing twice, and one number showing up
under two different severities. Never let the renderer number anything:
#### heading per severity group, each group exactly once, in the order 🔴 / 🟡 / 🟢.
Omit a group with no findings; never open a second group for a severity already used.**[3]** …. A line never starts
with N. or N) — those are ordered-list markers the renderer re-numbers, **[N]** is not.#### 🔴 Blocker
**[1]** `src/session/reconnect.ts:88`
Wenn während des Neuverbindens die Lizenz wegfällt, wird hier abgebrochen, aber kein neuer
Status gemeldet — die Toolbar zeigt dann dauerhaft „Verbinde neu…".
Vorschlag: beim Abbruch `idle` melden — oder ist das gewollt?
#### 🟢 Optional
**[2]** `src/api/users.ts:14`
`useTenantUsers` macht fast dasselbe wie das vorhandene `useUsers` — zusammenführen?
Then stop and ask the user which findings to post — offer: name the numbers ("1, 3"), "post all", or "I'll post them myself". Post nothing until they answer.
For each finding the user approved, use ado-toolkit:ado-pr's PR Comments workflow to add a
comment thread anchored to the file and line (threadContext). Each comment reuses the
finding's wording — it was already written per the recipe below, so posting is anchoring, not
rewriting. Report the created thread IDs. If the user chose to post themselves, post nothing.
When the review and any posting are done, remove the worktree:
git worktree remove .claude/worktrees/pr-review-{id} (add --force only if you have confirmed
it holds no changes worth keeping). Never remove the user's other worktrees.
This style applies to every finding's summary, why, and suggestion from the moment a
review subagent writes it — the triage report and the posted comments reuse that wording nearly
verbatim, nothing is "simplified later". A finding reads like a note from a teammate — German,
informal "du" — and must be understandable for a colleague who doesn't live in this code.
The recipe, in order:
The language contract:
Good (simple story, short, asks instead of asserting):
Wenn während des Neuverbindens die Lizenz wegfällt, wird hier zwar abgebrochen, aber kein neuer Status gemeldet — die Toolbar zeigt dann dauerhaft „Verbinde neu…". Kannst du beim Abbruch z. B.
idlemelden, oder ist das gewollt?
Good (drift, framed as a question because it might be intentional):
useTenantUsersmacht fast dasselbe wie das schon vorhandeneuseUsersinapi/users.ts— war das Absicht, oder können wir das zusammenführen, damit wir die Filterlogik nicht doppelt pflegen?
Good (enumeration as bullets — grasped at a glance instead of packed into prose):
Der neue Badge existiert jetzt dreimal fast identisch:
RecordingBadgeintoolbar/SessionBadgeinsession-list/- hier noch mal inline
Können wir das auf eine Komponente mit
variant-Prop zusammenziehen?
Bad (technically correct, but shorthand the reader must decode):
Der teardown-Zweig von
abortReconnectCycleemittiert keinen terminalen Status, i.V.m.onLicenseInfoChanged→cleanup()persistiert der reconnecting-State im Store.
Bad (verbose, robotic, restates the code, no substance):
I noticed that in this section of the code there appears to be a potential concern. The logging statement may inadvertently expose sensitive information. It is generally considered best practice to avoid logging sensitive data. Please consider refactoring this accordingly.
git checkout/git switch in
the main checkout → use the worktree from Phase B.docs/decisions/ above the changed paths (the app's/service's own
and the repo root's) and check the changed code and its enclosing units against them
(active ones bind, superseded ones mislead, missing ones get proposed).docs/decisions/ was read in a repo with app or service levels → a record in
apps/<app>/docs/decisions/ binds every change inside that app. Glob all levels.create-lesson-learned.ado-toolkit:ado-workitem, or report that none is linked.1., 2., 1) — or a severity heading appears a second time →
the renderer adds its own counter and restarts it, so numbers double up and one number lands
under two severities. Use **[N]**, one heading per severity, continuous 1..N.**[N]**.| Mistake | Fix |
|---|---|
| Posting the whole report as one giant comment | One anchored thread per finding, at its file:line. |
| Repeating a point a human reviewer already made | Phase A fetched the threads — dedupe in Phase D. |
| Treating a green-but-not-required check as a Blocker | Only required failing checks block; note the rest. |
| Failing tests / red pipeline listed as postable findings | The PR page already shows them — status header only. A comment is warranted solely for the code defect behind the failure, anchored at its line. |
| Leaving the review worktree behind | Remove it in Phase F. |
| English comments | The team language here is German — write comments in German. |
| Findings written technical, simplified only at posting | Every subagent dispatch prompt requires the simple-language recipe; report fields are post-ready. |
| A finding that enumerates several spots posted as one prose block | Write enumerations as Markdown bullets — one line per item, short lead-in sentence. |
| Hand-rolled UI that replicates a component-library component waved through | The consistency dimension checks library usage (shadcn/ui etc.); new components go in via the library's own path. |
| Review reported without checking the decision records | The ADR dimension is mandatory on every review — no decision records found is a reported result, not a skip. |
Only the root docs/decisions/ read, nested levels ignored | Records live on Memory Bank levels — glob every docs/decisions/ above the changed paths (apps/*/, services/*/, root). |
| A missing ADR claimed for a one-off local choice | Apply the significance triage first; below the bar it is a convention, a lesson learned, or nothing. |
| A criterion affirmed on a formality („legt IPC-Kanäle an" = bricht ein Pattern, „künftige Fälle" = erleichtert Entscheidungen) | Each criterion needs evidence from this codebase: the pattern it breaks, the next case the rule decides, what the user notices, the concrete features/apps/teams, the revert cost. No evidence, no criterion. |
| ADR demanded although the behavior sits at one spot and reverts in a line | The exclusions override a ticked criterion — one feature without effect on others, nothing changed about appearance/stability/behavior/dev experience → an inline reason in the code, no record. |
| Green tests taken as proof, tests only counted | Ask per test: would it fail if the behavior were wrong? Name the production-code change that turns it red. |
A test that mirrors the code (mock-call assertions, tautologies, toBeDefined()) waved through | It cannot fail by construction and reads as coverage forever — at least 🟡, with the sabotage that stays green in the suggestion. |
| Bugfix merged without a test reproducing the bug | Ask for the regression test at the lowest level where the bug is reproducible. |
| Test coverage deleted or thinned, pipeline still green | Equivalent coverage must exist at a lower level first — otherwise it is a silent gap. |
| The repo's own test process ignored, or one from another repo assumed | Read what this repo documents about testing and layer it on top; if it documents nothing, report that instead of inventing a standard. |
| Gaps and surplus reviewed in one pass — only gaps come back | Two dimensions, two subagents: 6 asks „würde der Test bei falschem Verhalten rot?", 7 asks „was wäre ungeprüft, wenn ich ihn lösche?". |
| Redundant test parked at 🟢 or left out of the report | „Das kann weg" is worth as much as „das fehlt": redundant 🟡, mere excess breadth 🟢, a whole pointless test file one 🟡. |
| Over-testing waved through because every test is green and meaningful on its own | Ask what the suite loses without it, and check the ratio of test to production lines plus exhaustive enumerations on one code path. |
| A test whose subject is never used that way at runtime | Grep the production callers: schema only feeding type inference, export called by nothing but the test, default the code always overwrites. |
Only status: Active records read | Non-active records matter too: a PR following a superseded/deprecated ADR builds on an outdated decision — flag it and point to what applies now. |
| ADR check ran against diff hunks only | Read the whole enclosing method/class/component in the worktree — a hunk can look compliant while the surrounding unit violates the record. |
| New lasting decision in the PR, no ADR, nothing said | Propose the missing ADR — suggested title plus the one-sentence decision it should capture. |
| Dimension subagents dispatched without an explicit model | They inherit the session's model — pass model: sonnet on every dispatch; escalate only on explicit user request. |
| Doubled numbers („1. 1."), a severity group listed twice, the same number under two severities | Findings numbered with N. at line start — the terminal Markdown renderer re-numbers them and restarts after every bullet list. Use **[N]**, one #### heading per severity, numbering continuous 1..N. |
| Severity emoji repeated in front of every finding | The #### group heading carries it; on the entries it is redundant noise. Findings start with **[N]**. |
| A spec PR reviewed with the seven code dimensions | Phase A.5 classifies first — a documentation-only diff routes to the C-S set. The code dimensions can only report that code and tests do not exist yet, at the price of a full explorer fleet. |
| PR kind decided on the 📝 marker alone | The changed-file set decides; per Quirks the CLI may strip the emoji from the title it returns, so a missing marker is not evidence. |
| A mixed docs + code diff reported as a rule violation | It is not one — a small change legitimately carries its doc update along, and splitting it costs more than the separate spec review is worth. Classify as an implementation PR; 🟢 only when the spec describes substantially more than the PR delivers. |
| A mixed PR's doc half left unreviewed because the PR counted as "implementation" | Phase C0 hands the changed doc/spec files to dimension 3 (does the documentation match what the code does?) and dimension 5 (records, durable context) — never as deletion candidates. |
| Spec reviewed without the linked work item | S3 then has nothing to compare against. Fetch it via ado-toolkit:ado-workitem; if none is linked or it carries no acceptance criteria, report that instead of inventing criteria. |
| Spec compared against the story in one direction only | Both directions: acceptance criteria the spec does not address (🔴/🟡) and spec content the story never asked for (scope creep, 🟡). |
| Spec's test plan waved through, or judged by another repo's policy | S4 measures planned level, forbidden test classes, and required artefacts against this repo's process — and reports when the repo documents none. |
| An S6 explorer dispatched for a spec that touches no trust boundary | Skip the dispatch and say so in one line — the conditional dispatch is the point. |
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-decisionCreates 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./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-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".