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.…
Detects project stack and existing guardrails, then interactively configures deterministic quality checks across session, commit, push, and CI/CD layers.
$ npx -y skills add Obsidian-Owl/specwright --skill sw-guard --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sw-guardContext preview
The summary Claude sees to decide when to auto-load this skill.
Detects project stack and existing guardrails, then interactively configures deterministic quality checks across session, commit, push, and CI/CD layers.
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.
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…