<< All versions

Skill v1.0.1

currentAutomated scan100/100
cadasto/sdd-plugin/sdd-triage

~2 modified

──Details
PublishedNovember 19, 2026 at 06:07 AM
Content Hashsha256:45b4a6d38ab2ad6c...
Git SHAdfce565c179d
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 7.0 KB)
SKILL.md7.0 KBactive
SKILL.md · 44 lines · 7.0 KB

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's skills/ 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-pr below is python3 <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

  1. List what is open. With a pull request, sdd-pr pull first. Then sdd-pr status: the open critical and important lines, outside ones apart, each with the #key that sdd-pr flip takes. 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.
  2. 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 add and its evidence: in the range it is fixed here, outside it sdd-pr add <severity> … --outside with 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.
  3. 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 outside one 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: deferred on its requirement, or a Known gaps line), then sdd-pr flip <#key> --deferred "<where>", or --carry to 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-specify and owes a test that fails without its guard.
  4. 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 new sdd-implementer with sdd-pr brief, its Finding field 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_review does not apply to triage fixes. Never hand-edit a generated block: change the map or the frontmatter and run sdd-check generate. Commit messages say what changed and cite the REQ / SPEC § or constitution section, never a finding.
  5. 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, one sdd-pr guard run on its guard, untested meaning 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.
  6. Re-review, once — only after the maintainer's review. The maintainer has reviewed once sdd-pr pull brought in their threads, which records it, or they say so: then sdd-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. Then sdd-pr status; its Next: line is the hand-back.
  7. Stop rule (review.md § Passes): once sdd-pr status prints passes: 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).

  1. sdd-pr harvest --dry-run. No harvested_through yet: ask the maintainer once for the start, a date or a pull request (default: the one just merged), and pass it as --since to both runs.
  2. 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. Commit docs/backlog.md by 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.
← v1.0.0All versions