Skill v1.0.1
currentAutomated scan100/100~2 modified
name: sdd-triage description: This skill should be used when the user asks to "triage the review", "work through the findings", "fix what the reviewers found", "address the review comments", "resolve the open findings", or "harvest the merged suggestions into the backlog" (--backlog). Works a branch's open findings to the end — verify, fix, flip, mirror, and, after the maintainer's review, one re-review when a fix changed code or wrote a MUST. Not for producing a review (sdd-review) or the close-out (sdd-close). argument-hint: "[--pr N] [--backlog [--since <date|#PR>]]" allowed-tools: Agent, Task, Bash, Read, Write, Edit, Grep, Glob metadata: version: "1.0.1"
Triage — work the open findings to the end
The plugin root is the folder that holds this skill'sskills/folder (${CLAUDE_PLUGIN_ROOT}on Claude Code): take it from this file's own path,\turned into/, and never search the disk for it.sdd-prbelow ispython3 <plugin root>/tools/sdd-pr.py.
Read docs/.sdd.yaml first (profile, forge, the build targets, agents:). Run it in the orchestrator session: triage is judgement. Pass --pr N to every sdd-pr call.
Steps
- List what is open. With a pull request,
sdd-pr pullfirst. Thensdd-pr status: the open critical and important lines,outsideones apart, each with the#keythatsdd-pr fliptakes. A suggestion is worked here only when it sits in a file the branch changed and its fix is a few lines, or the maintainer names it; the rest stay listed. The fix list the last pass saved (.sdd/review/<head>/doc-fixes.md) is applied in step 4, even with no line open. - Verify each, with its surroundings. A finding is a claim, and so is its proposed fix. Check both against the code and the sentences it cites, running the code for a claim about behaviour. Then look past the line, as far as the cause reaches: the cause behind it, the callers and paths that share it, other instances, and what the fix would change around it. A defect the finding underrates, or a new one this turns up, goes into the file with
sdd-pr addand its evidence: in the range it is fixed here, outside itsdd-pr add <severity> … --outsidewith its evidence, or a suggestion if a lead (review.md § Scope, § Severity). A sentence and the code that disagree is a defect in whichever side is wrong: the maintainer's instruction decides; else a sentence this branch wrote is corrected here, and a merged sentence is met by the code unless the maintainer, asked once, says the sentence is wrong (methodology §6, §7). A wrong claim is declined in the file —sdd-pr flip <#key> --declined "<reason>"— and never argued in a thread. A decline the maintainer says should hold is written where decisions live (methodology §13), through/sdd-specify. - Decide what this branch fixes. Every open critical and important line in the change is fixed here, and so is any defect in a file the branch changed, whatever severity it was filed at (review.md § Scope); an
outsideone with a small fix is fixed here too, a larger one only when the maintainer says so, asked once for all of them; otherwise it stays open and the close-out carries it. When one should not be, ask the maintainer by name: only the maintainer defers. Record the deferral (implementation: deferredon its requirement, or a Known gaps line), thensdd-pr flip <#key> --deferred "<where>", or--carryto keep it in the backlog, or--deferred "dropped by the maintainer". A fix adds no keyword (review.md § Keywords added during review); a new obligation, when the maintainer wants one, goes through/sdd-specifyand owes a test that fails without its guard. - Fix. A sentence, a map row, a test row, a few lines, and the pass's document fixes: edit in-session and commit, a specification, requirement or ADR sentence in
/sdd-specify's form. Anything larger: brief a newsdd-implementerwithsdd-pr brief, itsFindingfield carrying the line and what step 2 found around it; a second round is another new dispatch, never a resumed worker. A test that pins an earlier fix or a binding sentence is never deleted or weakened; replace it first.agents.task_reviewdoes not apply to triage fixes. Never hand-edit a generated block: change the map or the frontmatter and runsdd-check generate. Commit messages say what changed and cite theREQ/SPEC §or constitution section, never a finding. - Gate, flip, mirror. Run
<build_entrypoint> <ci_target>(output to.sdd/gate-<short head>.log) and<build_entrypoint> <spec_check_target>and read the output; for each MUST a fix added as a new obligation, onesdd-pr guardrun on its guard,untestedmeaning the fix is not done; push when there is a remote;sdd-pr flip <#key> --fixed <sha>for each fixed line; with a pull request,sdd-pr resolve. - Re-review, once — only after the maintainer's review. The maintainer has reviewed once
sdd-pr pullbrought in their threads, which records it, or they say so: thensdd-pr record --agent maintainer --reviewers <name> --reported 1/1. When unsure, ask. When fixes after that review changed code or wrote a MUST, run/sdd-review, over the whole branch. Thensdd-pr status; itsNext:line is the hand-back. - Stop rule (review.md § Passes): once
sdd-pr statusprintspasses: the budget is spent, stop and show the maintainer the open list.
--backlog: after merges
Runs alone, on the default branch, pulled, or a branch fresh from it (review.md § The backlog).
sdd-pr harvest --dry-run. Noharvested_throughyet: ask the maintainer once for the start, a date or a pull request (default: the one just merged), and pass it as--sinceto both runs.sdd-pr harvest; then consolidate as § The backlog says: re-check the lines it names, sort Unsorted into themes, fold duplicates, drop what is settled or below the lead bar, order the themes, and keep the file at about 40 lines, dropping the oldest leads, never a defect, every dropped line listed in the commit message. A line the maintainer wants tracked elsewhere becomes "tracked in <link>": ask, never file it. Ask no carry-or-drop question: the diff is the review. Commitdocs/backlog.mdby path, the message saying what was added, merged and dropped.
Guardrails
- The findings file is the enumeration. Never rebuild the open list from memory or from a pull-request comment.
- Ask the maintainer in plain words: the decision, the options, a recommendation.
- Nothing is flipped before its fix is pushed (committed, when there is no remote) or its decline or deferral is written.
Reference
- review.md — severity, evidence, resolution, the mirror, the tool.
- sdd-methodology.md §13 — verify before fixing, collapse before you add, where decisions live, the pass budget.
- templates/brief.md — the worker brief for a fix that is not a small edit.