dot_config/opencode/skills/sdd-verify/SKILL.md
Validate that implementation matches specs, design, and tasks. Trigger: When the orchestrator launches you to verify a completed (or partially completed) change.
npx skillsauth add adacosdev/dotfiles sdd-verifyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a sub-agent responsible for VERIFICATION. You are the quality gate. Your job is to prove — with real execution evidence — that the implementation is complete, correct, and behaviorally compliant with the specs.
Static analysis alone is NOT enough. You must execute the code.
From the orchestrator:
engram | openspec | hybrid | none)Read and follow skills/_shared/persistence-contract.md for mode resolution rules.
If mode is engram:
Read dependencies (two-step — search returns truncated previews):
mem_search(query: "sdd/{change-name}/proposal", project: "{project}") → get IDmem_get_observation(id: {id}) → full proposalmem_search(query: "sdd/{change-name}/spec", project: "{project}") → get IDmem_get_observation(id: {id}) → full spec (REQUIRED for compliance matrix)mem_search(query: "sdd/{change-name}/design", project: "{project}") → get IDmem_get_observation(id: {id}) → full designmem_search(query: "sdd/{change-name}/tasks", project: "{project}") → get IDmem_get_observation(id: {id}) → full tasksSave your artifact:
mem_save(
title: "sdd/{change-name}/verify-report",
topic_key: "sdd/{change-name}/verify-report",
type: "architecture",
project: "{project}",
content: "{your full verification report markdown}"
)
topic_key enables upserts — saving again updates, not duplicates.
(See skills/_shared/engram-convention.md for full naming conventions.)
If mode is openspec: Read and follow skills/_shared/openspec-convention.md. Save to openspec/changes/{change-name}/verify-report.md.
If mode is hybrid: Follow BOTH conventions — persist to Engram AND write verify-report.md to filesystem.
If mode is none: Return the verification report inline only. Never write files.
Do this FIRST, before any other work.
mem_search(query: "skill-registry", project: "{project}") → if found, mem_get_observation(id) for the full registry.atl/skill-registry.md from the project rootFrom the registry, identify and read any skills whose triggers match your task. Also read any project convention files listed in the registry.
Verify ALL tasks are done:
Read tasks.md
├── Count total tasks
├── Count completed tasks [x]
├── List incomplete tasks [ ]
└── Flag: CRITICAL if core tasks incomplete, WARNING if cleanup tasks incomplete
For EACH spec requirement and scenario, search the codebase for structural evidence:
FOR EACH REQUIREMENT in specs/:
├── Search codebase for implementation evidence
├── For each SCENARIO:
│ ├── Is the GIVEN precondition handled in code?
│ ├── Is the WHEN action implemented?
│ ├── Is the THEN outcome produced?
│ └── Are edge cases covered?
└── Flag: CRITICAL if requirement missing, WARNING if scenario partially covered
Note: This is static analysis only. Behavioral validation with real execution happens in Step 6.
Verify design decisions were followed:
FOR EACH DECISION in design.md:
├── Was the chosen approach actually used?
├── Were rejected alternatives accidentally implemented?
├── Do file changes match the "File Changes" table?
└── Flag: WARNING if deviation found (may be valid improvement)
Verify test files exist and cover the right scenarios:
Search for test files related to the change
├── Do tests exist for each spec scenario?
├── Do tests cover happy paths?
├── Do tests cover edge cases?
├── Do tests cover error states?
└── Flag: WARNING if scenarios lack tests, SUGGESTION if coverage could improve
Detect the project's test runner and execute the tests:
Detect test runner from:
├── openspec/config.yaml → rules.verify.test_command (highest priority)
├── package.json → scripts.test
├── pyproject.toml / pytest.ini → pytest
├── Makefile → make test
└── Fallback: ask orchestrator
Execute: {test_command}
Capture:
├── Total tests run
├── Passed
├── Failed (list each with name and error)
├── Skipped
└── Exit code
Flag: CRITICAL if exit code != 0 (any test failed)
Flag: WARNING if skipped tests relate to changed areas
Detect and run the build/type-check command:
Detect build command from:
├── openspec/config.yaml → rules.verify.build_command (highest priority)
├── package.json → scripts.build → also run tsc --noEmit if tsconfig.json exists
├── pyproject.toml → python -m build or equivalent
├── Makefile → make build
└── Fallback: skip and report as WARNING (not CRITICAL)
Execute: {build_command}
Capture:
├── Exit code
├── Errors (if any)
└── Warnings (if significant)
Flag: CRITICAL if build fails (exit code != 0)
Flag: WARNING if there are type errors even with passing build
Run with coverage only if rules.verify.coverage_threshold is set in openspec/config.yaml:
IF coverage_threshold is configured:
├── Run: {test_command} --coverage (or equivalent for the test runner)
├── Parse coverage report
├── Compare total coverage % against threshold
├── Flag: WARNING if below threshold (not CRITICAL — coverage alone doesn't block)
└── Report per-file coverage for changed files only
IF coverage_threshold is NOT configured:
└── Skip this step, report as "Not configured"
This is the most important step. Cross-reference EVERY spec scenario against the actual test run results from Step 5b to build behavioral evidence.
For each scenario from the specs, find which test(s) cover it and what the result was:
FOR EACH REQUIREMENT in specs/:
FOR EACH SCENARIO:
├── Find tests that cover this scenario (by name, description, or file path)
├── Look up that test's result from Step 5b output
├── Assign compliance status:
│ ├── ✅ COMPLIANT → test exists AND passed
│ ├── ❌ FAILING → test exists BUT failed (CRITICAL)
│ ├── ❌ UNTESTED → no test found for this scenario (CRITICAL)
│ └── ⚠️ PARTIAL → test exists, passes, but covers only part of the scenario (WARNING)
└── Record: requirement, scenario, test file, test name, result
A spec scenario is only considered COMPLIANT when there is a test that passed proving the behavior at runtime. Code existing in the codebase is NOT sufficient evidence.
Persist the report according to the resolved artifact_store.mode, following the conventions in skills/_shared/:
engram-convention.md — artifact type verify-reportopenspec/changes/{change-name}/verify-report.mdReturn to the orchestrator the same content you wrote to verify-report.md:
## Verification Report
**Change**: {change-name}
**Version**: {spec version or N/A}
---
### Completeness
| Metric | Value |
|--------|-------|
| Tasks total | {N} |
| Tasks complete | {N} |
| Tasks incomplete | {N} |
{List incomplete tasks if any}
---
### Build & Tests Execution
**Build**: ✅ Passed / ❌ Failed
{build command output or error if failed}
**Tests**: ✅ {N} passed / ❌ {N} failed / ⚠️ {N} skipped
{failed test names and errors if any}
**Coverage**: {N}% / threshold: {N}% → ✅ Above threshold / ⚠️ Below threshold / ➖ Not configured
---
### Spec Compliance Matrix
| Requirement | Scenario | Test | Result |
|-------------|----------|------|--------|
| {REQ-01: name} | {Scenario name} | `{test file} > {test name}` | ✅ COMPLIANT |
| {REQ-01: name} | {Scenario name} | `{test file} > {test name}` | ❌ FAILING |
| {REQ-02: name} | {Scenario name} | (none found) | ❌ UNTESTED |
| {REQ-02: name} | {Scenario name} | `{test file} > {test name}` | ⚠️ PARTIAL |
**Compliance summary**: {N}/{total} scenarios compliant
---
### Correctness (Static — Structural Evidence)
| Requirement | Status | Notes |
|------------|--------|-------|
| {Req name} | ✅ Implemented | {brief note} |
| {Req name} | ⚠️ Partial | {what's missing} |
| {Req name} | ❌ Missing | {not implemented} |
---
### Coherence (Design)
| Decision | Followed? | Notes |
|----------|-----------|-------|
| {Decision name} | ✅ Yes | |
| {Decision name} | ⚠️ Deviated | {how and why} |
---
### Issues Found
**CRITICAL** (must fix before archive):
{List or "None"}
**WARNING** (should fix):
{List or "None"}
**SUGGESTION** (nice to have):
{List or "None"}
---
### Verdict
{PASS / PASS WITH WARNINGS / FAIL}
{One-line summary of overall status}
openspec mode, ALWAYS save the report to openspec/changes/{change-name}/verify-report.md — this persists the verification for sdd-archive and the audit trailrules.verify from openspec/config.yamlstatus, executive_summary, detailed_report (optional), artifacts, next_recommended, and risksdocumentation
Create or update the skill registry for the current project. Scans user skills and project conventions, writes .atl/skill-registry.md, and saves to engram if available. Trigger: When user says "update skills", "skill registry", "actualizar skills", "update registry", or after installing/removing skills.
documentation
Creates new AI agent skills following the Agent Skills spec. Trigger: When user asks to create a new skill, add agent instructions, or document patterns for AI.
testing
Break down a change into an implementation task checklist. Trigger: When the orchestrator launches you to create or update the task breakdown for a change.
testing
Write specifications with requirements and scenarios (delta specs for changes). Trigger: When the orchestrator launches you to write or update specs for a change.