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.…
Autonomous solution architecture. Researches the codebase, designs a solution, challenges it adversarially, and produces design artifacts.
$ npx -y skills add Obsidian-Owl/specwright --skill sw-design --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sw-designContext preview
The summary Claude sees to decide when to auto-load this skill.
Autonomous solution architecture. Researches the codebase, designs a solution, challenges it adversarially, and produces design artifacts.
name: sw-design description: >- Autonomous solution architecture. Researches the codebase, designs a solution, challenges it adversarially, and produces design artifacts. argument-hint: "[what you want to build or change]" allowed-tools: - Read - Write - Edit - Bash - Glob - Grep - Task
Research the codebase, design a solution, challenge it adversarially, and produce design artifacts. Output is a design — not specs, not code. Operates autonomously between research and gate handoff, applying `protocols/decision.md` for all decisions.
When complete, runtime and auditable artifacts exist in both locations:
When warranted: `data-model.md`, `contracts.md`, `testing-strategy.md`, `infra.md`, `migrations.md`.
**Stage boundary (LOW freedom):** Follow `protocols/stage-boundary.md`. Produce design artifacts and research context. NEVER write specs, decompose, implement, branch, or test. After gate handoff, STOP.
**Ownership guard (LOW freedom):**
resolve live ownership from `session.json`, not from branch names alone.
operator to the explicit `/sw-adopt` flow rather than mutating design artifacts here.
never rewrite another worktree's `session.json`.
**Research (HIGH freedom):**
infer intent from the argument, codebase context, and charter vision. Record the interpretation in decisions.md. If genuinely undetermined, surface at the gate.
mitigation, blast radius is bounded, no major gaps remain.
**Design (HIGH freedom):**
hierarchy. Record the choice and which rule resolved it in decisions.md.
**Critic (HIGH freedom):**
Convergence at ≥4/5 on all dimensions with no BLOCKs auto-approves per `protocols/decision.md#approval`.
alternative. Record in decisions.md.
**Assumption resolution (MEDIUM freedom):**
and autonomous resolution.
Clarify+technical → auto-ACCEPT. Reference/external → auto-DEFER to backlog per `protocols/backlog.md`.
Type 1 deficiencies halt and surface at the gate (do not auto-proceed).
**Change requests (MEDIUM freedom):**
implies a change, treat as change request. Otherwise, present status at the gate.
**Approval target (LOW freedom):** Per `protocols/approvals.md`, identify the design artifact set awaiting approval for `/sw-plan`: `design.md`, `context.md`, `decisions.md`, the design assumptions artifact, and any optional design supplements written in this run. `sw-design` does not write `APPROVED` entries itself.
**Gate handoff (LOW freedom):** On completion, emit the three-line handoff per the `protocols/decision.md` Gate Handoff section. Write `{repoStateRoot}/work/{id}/stage-report.md` before the handoff. The Artifacts line points at `Artifacts: {repoStateRoot}/work/{id}/stage-report.md`. Detail lives in the auditable artifact files under `{workArtifactsRoot}/{id}/` (`design.md`, `decisions.md`, design assumptions artifact, `context.md`). The Next line remains machine-parseable: `Next: /sw-plan`.
**State mutations (LOW freedom):** Follow `protocols/state.md` for read-modify-write mechanics. Postconditions:
the current worktree only.
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…