core/skills/gate-spec/SKILL.md
Maps every acceptance criterion from the spec to implementation evidence and test evidence. Criteria without evidence fail. The ultimate quality gate. Internal — invoked by verify.
npx skillsauth add obsidian-owl/specwright gate-specInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Prove that the implementation actually does what was asked for. Every acceptance criterion in the spec must map to implementation evidence (file:line) and test evidence (test name at file:line). This is the gate that closes the loop.
{workDir}/spec.md -- acceptance criteria{repoStateRoot}/work/{selectedWork.id}/workflow.json -- selected work unit{workDir}/evidence/spec-compliance.mdworkflow.jsonreview-packet.md synthesis summarizes or referencesCriteria extraction (LOW freedom):
- [ ] AC-*).integration-criteria.md in the design-level
directory. IC-B entries are added to the compliance matrix alongside ACs. When
not on the final work unit, when integration-criteria.md does not exist, or
when integration-criteria.md has no IC-B entries, gate-spec operates exactly
as before — no behavioral IC mapping.Evidence mapping (HIGH freedom):
specwright-reviewer for thorough analysis if needed.Verdict (LOW freedom):
protocols/evidence.md#verdict-rendering.protocols/build-quality.md. Does not alter PASS/WARN/FAIL verdict.Compliance matrix format:
| # | Criterion | Implementation | Test | Status |
|---|-----------|---------------|------|--------|
| AC-1 | Description | file:line | test_name at file:line | PASS |
Matrix stability (LOW freedom):
Preserve the five-column compliance matrix shape above. sw-verify may digest
or quote it in review-packet.md, but gate-spec remains the canonical proof
surface for AC / IC conformance.
protocols/evidence.md#verdict-rendering -- verdict rendering and self-critiqueprotocols/evidence.md -- evidence storageprotocols/state.md -- gate status updatesprotocols/delegation.md -- reviewer agent delegation| Condition | Action | |-----------|--------| | No spec.md found | Gate ERROR: "No spec found for this work unit" | | No acceptance criteria in spec | Gate ERROR: "Spec has no acceptance criteria" | | Implementation exists but tests don't | WARN per criterion, gate WARN overall | | Can't determine mapping with confidence | FAIL the criterion. Don't guess. |
testing
Explicitly adopt an existing work into the current worktree after validating live ownership, stale sessions, and branch consistency.
testing
Orchestrates quality gates for the current work unit. Runs enabled gates in dependency order, produces an aggregate evidence report with gate handoff.
tools
Syncs the local repository by fetching all remotes, updating the base branch, and removing stale local branches that are not protected by live sessions or helper worktrees.
data-ai
Shows current Specwright state for this worktree, the attached work, repo-wide active works, gate results, and lock status. Supports --reset, --cleanup, and --repair {unitId}.