gate-build
Runs configured build and test commands in tiered order. Captures output as evidence per tier. Returns PASS, FAIL, WARN, or SKIP…
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.
Claude Code
$ npx -y skills add Obsidian-Owl/specwright --skill sw-sync --agent claude-code
Codex
$ npx skills add Obsidian-Owl/specwright --skill sw-sync -a codex -y
Cursor
$ npx skills add Obsidian-Owl/specwright --skill sw-sync -a cursor -y
Gemini CLI
$ npx skills add Obsidian-Owl/specwright --skill sw-sync -a gemini-cli -y
GitHub Copilot
$ npx skills add Obsidian-Owl/specwright --skill sw-sync -a github-copilot -y
OpenCode
$ npx skills add Obsidian-Owl/specwright --skill sw-sync -a opencode -y
Windsurf
$ npx skills add Obsidian-Owl/specwright --skill sw-sync -a windsurf -y
name: sw-sync description: >- 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. argument-hint: "" allowed-tools: - Read - Bash - Glob - AskUserQuestion
Keep the local repository current without deleting branches that are still claimed by a live Specwright session or a subordinate helper worktree.
active works detected
their recorded targets and latest known freshness state.
reconcile-or-ship decisions away from the lifecycle skills.
behalf of `sw-build`, `sw-verify`, or `sw-ship`.
**Fetch (HIGH freedom):**
**State-aware protection set (LOW freedom):**
as protected branch owners even when they are not user-facing sessions.
**Stale branch detection (HIGH freedom):**
session still references it.
not invalid, and not claimed by a live session or subordinate helper worktree
**Safety checks (LOW freedom):**
passing it to shell commands.
whitespace, or fail ref-format validation.
**Confirmation (LOW freedom):**
`protocols/headless.md`.
running `git branch -D`.
live-session-owned branches.
**Base branch sync (MEDIUM freedom):**
commit.
**No state mutation (LOW freedom):**
| Condition | Action | |---|---| | no remotes configured | stop with a remote-setup error | | `git fetch` fails | surface the error and skip deletion | | no stale branch candidates | report that nothing is deletable | | worktree/session inspection fails | skip deletion and warn | | current session's attached work is building or verifying | abort and tell the user to finish or reset that work first | | base branch cannot fast-forward | warn and continue without merging or resetting |
Craft quality software with AI discipline. Spec-driven development plugin for Claude Code and Opencode — quality gates, adversarial testing, and evidence capture.
Runs configured build and test commands in tiered order. Captures output as evidence per tier. Returns PASS, FAIL, WARN, or SKIP…
Detects leaked secrets, injection patterns, and sensitive data exposure across changed files. Uses real tooling when configured,…
Tiered semantic analysis of changed code (rg → ast-grep → OpenGrep). Detects error-path bugs structural gates miss. Findings…
Maps every acceptance criterion from the spec to implementation evidence and test evidence. Criteria without evidence fail. The…
Audits test quality — assertion strength, boundary coverage, mock discipline, error path testing. Delegates to the tester agent…
Detects unused exports, orphaned files, architecture layer violations, and circular dependencies across changed files. Delegates…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.