gate-build
Runs configured build and test commands in tiered order. Captures output as evidence per tier. Returns PASS, FAIL, WARN, or SKIP based on per-tier verdicts.…
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}.
$ npx -y skills add Obsidian-Owl/specwright --skill sw-status --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sw-statusContext preview
The summary Claude sees to decide when to auto-load this skill.
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}.
name: sw-status
description: >-
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}.
argument-hint: "[--reset | --cleanup | --repair {unitId}]"
allowed-tools:
- Read
- Write
- Bash
- Glob
- AskUserQuestionTell the user what this worktree is attached to, what that work is doing, what other works are active in the repository, which runtime layout is active, and what the next action should be.
**Display (HIGH freedom):**
`worktreeStateRoot`, and `workArtifactsRoot` before the session summary so tracked project artifacts and the active runtime layout are inspectable.
`.specwright-local/` are the recommended interactive default, while `git-admin` roots under `.git/specwright/` are compatibility mode.
`attachedWorkId`.
selected work's target branch and latest freshness state, configured work-artifact publication mode when present, approval freshness reason, latest closeout or review-packet availability, review-packet presence, gates, and per-work lock freshness.
attached work, branch validity, approval or closeout posture, live ownership, and next action.
surface that conflict explicitly and point the operator to `/sw-adopt` instead of implying that status can mutate ownership.
with their recorded owner worktrees and whether the owner still has a live top-level session.
**Non-interactive context (LOW freedom):**
them.
print what interactive repair would do, and never mutate workflow state in headless mode.
**Reset mode (LOW freedom):**
work's lock, clear its gates, and detach this session if it points at that work.
**Cleanup mode (MEDIUM freedom):**
`realpath` before removing anything.
`{repoStateRoot}/work/` directory.
scope, skip it with a warning.
**Repair mode (MEDIUM freedom):**
repo-wide workflows for a unique matching `unitId`.
conflict.
`revert-to-building`, `mark-abandoned`, `force-shipped-with-note`.
`decisions.md`.
| Condition | Action | |---|---| | no shared/session state can be resolved | tell the user to run `/sw-init` | | selected workflow parse error | show the raw error and stop | | stale per-work lock detected | offer to clear it with a warning | | `--repair` target ambiguous across works | stop and list matching work IDs |
Craft quality software with AI discipline. Spec-driven development plugin for Claude Code and Opencode — quality gates, adversarial testing, and evidence capture.
Repo: Obsidian-Owl/specwright
Runs configured build and test commands in tiered order. Captures output as evidence per tier. Returns PASS, FAIL, WARN, or SKIP based on per-tier verdicts.…
Detects leaked secrets, injection patterns, and sensitive data exposure across changed files. Uses real tooling when configured, LLM judgment for analysis.…
Tiered semantic analysis of changed code (rg → ast-grep → OpenGrep). Detects error-path bugs structural gates miss. Findings default to WARN. Internal —…
Maps every acceptance criterion from the spec to implementation evidence and test evidence. Criteria without evidence fail. The ultimate quality gate. Internal…
Audits test quality — assertion strength, boundary coverage, mock discipline, error path testing. Delegates to the tester agent for adversarial analysis.…
Detects unused exports, orphaned files, architecture layer violations, and circular dependencies across changed files. Delegates to architect agent for…