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.…
Explicitly adopt an existing work into the current worktree after validating live ownership, stale sessions, and branch consistency.
$ npx -y skills add Obsidian-Owl/specwright --skill sw-adopt --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sw-adoptContext preview
The summary Claude sees to decide when to auto-load this skill.
Explicitly adopt an existing work into the current worktree after validating live ownership, stale sessions, and branch consistency.
name: sw-adopt description: >- Explicitly adopt an existing work into the current worktree after validating live ownership, stale sessions, and branch consistency. argument-hint: "<work-id>" allowed-tools: - Read - Write - Bash - Glob
Attach an existing work to the current worktree without creating split-brain ownership. This skill attaches only the current worktree session.
`attachedWorkId` when re-adopting the already-selected work
worktree when adoption succeeds
owner, or blocked by branch mismatch
**Scope (LOW freedom):**
during `/sw-design`, `/sw-plan`, `/sw-build`, `/sw-verify`, or `/sw-ship`.
**Target resolution (LOW freedom):**
`session.json.attachedWorkId` as a fallback.
run `/sw-design`.
**Ownership validation (LOW freedom):**
state for the target work.
`workId`.
operator to continue there or make that owner stale first. `/sw-adopt` does not perform remote session surgery.
**Branch consistency (LOW freedom):**
validate branch consistency against `workflow.json.branch`.
never sufficient to seize ownership on its own.
STOP and tell the operator to check out the recorded branch first.
**Mutation boundary (LOW freedom):**
work's `workflow.json`.
refresh `workflow.json.branch` from the current worktree branch, and refresh liveness timestamps.
| Condition | Action | |-----------|--------| | No target work resolves | STOP: "Pass a work ID or run /sw-design first." | | Target work does not exist | STOP with a missing-work error | | Current session is subordinate | STOP: "Subordinate helper sessions cannot adopt work." | | Another live top-level worktree owns the target work | STOP with live-owner guidance | | Recorded branch mismatch for in-flight work | STOP with branch-consistency guidance |
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…