sdd-verify
Verifies that the implementation complies with the specs, design, and task plan. Produces verify-report.md. Trigger: /sdd-verify <change-name>, verify implementation, quality gate, validate change.
What this skill does
# sdd-verify
> Verifies that the implementation complies with the specs, design, and task
> plan. The quality gate before archiving.
**Triggers**: `/sdd-verify <change-name>`, verify implementation, quality gate, validate change, sdd verify
---
## Purpose
Verification objectively validates that what was implemented meets what was
specified. It fixes nothing — it only reports.
## Sibling reference file
- `REPORT_TEMPLATE.md` — persisted compact format + conversational detail blocks.
## Skill resolution
Project-local → global, in order:
```
1. .claude/skills/sdd-verify/SKILL.md (project-local — highest priority)
2. ~/.claude/skills/sdd-verify/SKILL.md (global catalog — fallback)
```
See `docs/SKILL-RESOLUTION.md` for the full algorithm.
---
## Process
### Step 0 — Preload
Follow `skills/_shared/sdd-phase-common.md` **Section F** (Project Context Load)
and **Section G** (Spec Context Preload). Both non-blocking.
### Step 1 — Load all artifacts
Read in this order:
- Tasks — `mem_search(query: "sdd/{change-name}/tasks")` → `mem_get_observation(id)`. Engram unreachable → orchestrator passes inline.
- Spec — same pattern with `sdd/{change-name}/spec`.
- Design — same pattern with `sdd/{change-name}/design`.
- Code files created/modified.
### Step 2 — Completeness check
Count total tasks vs completed. Emit Completeness block from
`REPORT_TEMPLATE.md`.
**Severity:**
- Incomplete core logic tasks → CRITICAL.
- Incomplete cleanup/docs tasks → WARNING.
### Step 3 — Correctness check (specs)
For each requirement in the spec:
1. Look for evidence in the code that it is implemented.
2. For each Given/When/Then scenario:
- GIVEN handled (precondition/guard)?
- WHEN implemented (action/endpoint)?
- THEN verifiable (correct result)?
Emit Correctness + Scenario Coverage blocks from `REPORT_TEMPLATE.md`.
### Step 4 — Coherence check (design)
Verify design decisions were followed. Emit Coherence block from
`REPORT_TEMPLATE.md`.
### Step 5 — Testing check
Verify test presence and scenario coverage. Emit Testing block from
`REPORT_TEMPLATE.md`.
### Step 6 — Run tests
Three-level priority model. Check `config.yaml` at project root in order:
**Level 1 — `verify_commands`** (highest priority, checked first):
- Present → use the listed commands in order; do NOT check levels 2–3; for each command run via Bash, capture exit code + stdout/stderr; record in `## Tool Execution` with source label `"verify_commands (config level 1)"`.
- Absent → proceed to Level 2.
`verify_commands` is NOT additive — it overrides all lower levels. Commands
are assumed non-destructive; the user is responsible for this.
**Level 2 — `verify.test_commands`** (when Level 1 is absent):
| `verify.test_commands` shape | Behavior |
|------------------------------------|----------|
| Not a list | WARNING: `"verify.test_commands is not a list — treating as absent"`. Fall through to Level 3. |
| Empty list `[]` | Treat as absent. Fall through to Level 3 (prevents silent zero-command success). |
| Non-empty list | Use commands in order; record source label `"verify.test_commands (config level 2)"`. Skip Level 3. |
**Level 3 — auto-detection** (only when 1 and 2 are absent or invalid).
First match wins:
| Priority | File | Condition | Command |
|----------|-----------------------------------------------|---------------------------|----------------------------------------------------------------------------------------|
| 1 | `package.json` | `scripts.test` exists | `npm test` (or `yarn test` if `yarn.lock`, `pnpm test` if `pnpm-lock.yaml`) |
| 2 | `pyproject.toml` / `pytest.ini` / `setup.cfg` | pytest indicators present | `pytest` |
| 3 | `Makefile` | `test` target exists | `make test` |
| 4 | `build.gradle` / `gradlew` | file exists | `./gradlew test` |
| 5 | `mix.exs` | file exists | `mix test` |
| — | none of the above | — | **Skip** with WARNING |
**Execution**: run via Bash, capture exit code (0 = pass) + stdout/stderr,
record runner name + command + exit + failure summary.
**Error handling:**
| Condition | Report | Status |
|--------------------------------------------|-------------------------------------------------------------------|---------|
| Command not executable (deps missing, etc.) | `"Test Execution: ERROR — [error message]"` | WARNING |
| Tests run but some fail | Report failure count + failing test names if parseable | (varies) |
| No test runner detected | `"Test Execution: SKIPPED — no test runner detected"` | WARNING |
Save the full test output for Steps 8 and 9.
### Step 7 — Build & type check
Detect and execute build/type-check command.
**Config overrides** (checked before auto-detection):
| Key | Behavior |
|----------------------------------|----------|
| `verify.build_command` (string) | Use as build/type-check command. Skip auto-detection for build. |
| `verify.build_command` (non-string) | WARNING `"verify.build_command is not a string — treating as absent"`. Fall back to auto-detection. |
| `verify.type_check_command` (string) | Use as type-check command. Skip auto-detection for type check. |
| `verify.type_check_command` (non-string) | WARNING. Fall back to auto-detection. |
Both overrides are independent — one can be set without the other.
**Build command auto-detection** (when override absent or invalid). First
match wins:
| Priority | File | Condition | Command |
|----------|----------------------------|---------------------------------------------|--------------------------------------|
| 1 | `package.json` | `scripts.typecheck` exists | `npm run typecheck` |
| 2 | `package.json` | `scripts.build` exists | `npm run build` |
| 3 | `tsconfig.json` | file exists + TypeScript in devDependencies | `npx tsc --noEmit` |
| 4 | `Makefile` | `build` target exists | `make build` |
| 5 | `build.gradle` / `gradlew` | file exists | `./gradlew build` |
| 6 | `mix.exs` | file exists | `mix compile --warnings-as-errors` |
| — | none of the above | — | **Skip** with INFO |
**Execution**: run via Bash, capture exit code, capture error output.
**Error handling:**
| Condition | Report | Status |
|----------------------------|-------------------------------------------------------------|----------|
| Command not executable | `"Build/Type Check: ERROR — [error message]"` | WARNING |
| Build fails | `"Build/Type Check: FAILING"Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.