gate-build
Runs configured build and test commands in tiered order. Captures output as evidence per tier. Returns PASS, FAIL, WARN, or SKIP…
Detects project stack and existing guardrails, then interactively configures deterministic quality checks across session, commit, push, and CI/CD layers.
Claude Code
$ npx -y skills add Obsidian-Owl/specwright --skill sw-guard --agent claude-code
Codex
$ npx skills add Obsidian-Owl/specwright --skill sw-guard -a codex -y
Cursor
$ npx skills add Obsidian-Owl/specwright --skill sw-guard -a cursor -y
Gemini CLI
$ npx skills add Obsidian-Owl/specwright --skill sw-guard -a gemini-cli -y
GitHub Copilot
$ npx skills add Obsidian-Owl/specwright --skill sw-guard -a github-copilot -y
OpenCode
$ npx skills add Obsidian-Owl/specwright --skill sw-guard -a opencode -y
Windsurf
$ npx skills add Obsidian-Owl/specwright --skill sw-guard -a windsurf -y
name: sw-guard description: >- Detects project stack and existing guardrails, then interactively configures deterministic quality checks across session, commit, push, and CI/CD layers. argument-hint: "" allowed-tools: - Read - Write - Edit - Bash - Glob - Grep - WebSearch - AskUserQuestion - Task
Detect the project's stack and interactively configure deterministic guardrails across four enforcement layers (session, commit, push, CI/CD). Each layer is independently approvable. Existing guardrails are preserved during re-runs.
When complete, user-approved guardrails are configured. Artifacts may include:
<!-- platform:claude-code -->
User chooses destination (shareable vs gitignored). <!-- /platform -->
<!-- platform:opencode -->
<!-- /platform -->
Note: CONSTITUTION.md is NOT modified. Constitutional updates are the responsibility of sw-learn.
**Detection (MEDIUM freedom):**
(manifest scan, config file scan, existing guardrail scan).
semantic analysis tools: ast-grep (`sg`), OpenGrep (`opengrep`), and platform LSP (Claude Code `.lsp.json`, Opencode built-in, `cli-lsp-client` standalone).
supplement with detection for unconfigured dimensions.
Validate detected tools by running them (e.g., `--version` check). Present standalone recommendations with explicit "detected via heuristics" labeling.
adapters and status surfaces: `project-visible` roots under `.specwright-local/` for interactive installs, `git-admin` roots under `.git/specwright/` for compatibility, `/sw-status` for the current runtime view, and `/sw-adopt` for explicit same-work adoption.
policy surface across developers and agent sessions, not as clone-local runtime state.
**Gap analysis (MEDIUM freedom):**
a dimension → covered. No tool → gap. Gaps become recommendations.
**Recommendation (HIGH freedom):**
`protocols/guardrails-patterns.md`.
User always chooses — never auto-select.
present trade-offs.
**Configuration (LOW freedom):**
project-artifact root exists.
Follow `protocols/context.md` for config updates.
while Git-admin session state remains local-only under the runtime roots.
**Headless (LOW freedom):**
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.