From sdd-quality-loop
Independently verify an Implementation Complete task with a Default-FAIL verification contract, deterministic checks, and an isolated critical reviewer, then decide whether it is Done.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sdd-quality-loop:quality-gateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use after `implement-task` has set a task to `Implementation Complete`.
Use after implement-task has set a task to Implementation Complete.
If AGENTS.md is absent at the repository root, stop immediately and direct
the user to run /sdd-bootstrap:sdd-adopt; do not proceed without it.
Missing reports/quality-gate/ or docs/review-tickets/ directories may be
created on the fly before continuing.
Read the task, implementation report, requirements, design, acceptance tests,
traceability, contracts, ADRs, Git diff, and all bundled references, including
deterministic-check-policy.md, evaluation-rubric.md, risk-gate-matrix.md,
and risk-classification-policy.md.
Implementation Complete.templates/verification-contract.template.json following
deterministic-check-policy.md. Treat the implementation report as a
claim, not as evidence.verification-policy.md.
Save real command output as evidence and update the contract.test-policy.md.scripts/*.sh or scripts/*.ps1, in this order:
check-risk on the task: confirms a valid Risk: tier, a non-empty
Risk Rationale:, and — for high/critical — Required Workflow: tdd.
The tier selects the required-check set per risk-gate-matrix.md.check-placeholders on the changed production files only.check-task-state on tasks.md.check-contract on the task contract: enforces the tier-minimum required
set (superset rule) and, when required_workflow is tdd, non-empty
red_evidence + green_evidence for every test-type check.check-traceability on specs/<feature>/traceability.json: every
REQ → AC → TEST → evidence chain is intact (required for high/critical).
For Done tasks, validate
specs/<feature>/verification/<task-id>.evidence.json with
check-evidence-bundle.(sh|ps1) so the report, contract, and passing
evidence artifacts are all bound together. For high/critical the bundle
must carry spec_revision, build_env, and review_verdict.verdict == PASS;
for critical it must additionally carry a verifiable HMAC signature and a
clean tree (git_generated_dirty == true is a hard fail). Always produce the
bundle with generate-evidence-bundle.(sh|ps1) — never hand-author sha256
fields or the git_commit field. The runner binds the bundle to the current
git commit and computes digests automatically.refactor and bugfix tasks with a baseline-behavior.md, apply
differential-test-policy.md and classify every BL diff.evaluation-rubric.md.
On Claude Code use the sdd-evaluator subagent. On Codex use the shipped
sdd-evaluator TOML agent; do not create new agent role files under
~/.codex/agents/. Elsewhere, perform the review in a fresh session or a
clearly separated critical-review pass. For high/critical tasks, record
the evaluator's verdict as review_verdict in the evidence bundle;
check-evidence-bundle requires review_verdict.verdict == PASS.Accepted, Rejected, or Deferred.auto-fix-policy.md.deterministic-check-policy.md.integrity-policy.md.reports/quality-gate/<timestamp>.md naming the task id.If a valid SDD_SUDO flag file exists at the project root (see
plugins/sdd-quality-loop/references/sudo-mode-policy.md), routine approval
checkpoints auto-pass: record Approval: Approved (sudo <ISO8601 UTC>) in
tasks.md and continue. A refactor/bugfix BL diff classified accepted also
auto-passes (mark (sudo <ISO8601 UTC>) and update baseline-behavior.md).
Sudo never auto-passes genuine judgment: requires_human_decision: true
findings, architecture/auth/authz/breaking-API/security decisions, and a
fix-required baseline diff still stop the gate and require a human. All
deterministic gates apply; every check runs as normal.
Set the task to Done only when:
check-risk passes: valid tier + rationale, and high/critical declares
Required Workflow: tddcheck-contract passes: every required contract check (the tier-minimum
superset) is true with existing evidence files; for tdd, test checks carry
red_evidence + green_evidencecheck-traceability passes for high/critical (REQ → AC → TEST → evidence)check-evidence-bundle passes: the bundle names the report, contract, and
contract-passing artifacts, with matching hashes and task id; for
high/critical it carries spec_revision, build_env, and
review_verdict.verdict == PASS; for critical it carries a verified HMAC
signature over a clean treecritical, a second distinct named approver recorded
Second Approval: Approved (enforced by check-task-state; never sudo-bypassed)Otherwise set the task to Blocked or retain Implementation Complete, and
create review tickets. Do not commit, push, or create a PR/MR unless explicitly
requested.
npx claudepluginhub aharada54914/sdd-forge --plugin sdd-quality-loopGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.