.claude/skills/specsafe-verify/SKILL.md
Run tests and validate implementation. Loops back to dev if tests fail. Moves spec from CODE to QA stage.
npx skillsauth add agentic-engineering-agency/specsafe specsafe-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.
Run tests and validate implementation (CODE → QA stage). Loops back to dev if tests fail.
When to use:
Input: The spec ID (e.g., SPEC-20260211-001)
Steps
Validate CODE stage
Check specs/active/<spec-id>.md:
Run full test suite
Execute all tests with coverage:
pnpm test --coverage # or equivalent
Analyze results
Check for:
If tests FAIL → Loop to dev
This is the critical feedback loop:
┌─────────────┐ FAIL ┌─────────────┐
│ VERIFY │──────────────│ DEV │
└─────────────┘ └─────────────┘
│ │
│ PASS │ Code fix
▼ ▼
┌─────────────┐ ┌─────────────┐
│ QA │ │ Re-test │
└─────────────┘ └─────────────┘
Actions:
/specsafe:dev <id> to fixDo NOT proceed to QA with failing tests
If tests PASS → Validate against spec
Cross-reference implementation with requirements:
Generate QA report
Document validation results:
## QA Report: SPEC-YYYYMMDD-NNN
### Test Results
- Total: 12
- Passed: 12
- Failed: 0
- Coverage: 94%
### Requirements Validation
- P0: 3/3 satisfied
- P1: 3/3 satisfied
- P2: 2/2 satisfied
### Recommendation: GO / NO-GO
Move to QA stage
If validation passes:
specsafe qa "<spec-id>"
This:
Show verification summary
Display:
/specsafe:done <id> or back to /specsafe:dev <id>Output
If tests FAIL:
/specsafe:dev <id> again"If tests PASS:
/specsafe:done <id>"Guardrails
Example - FAIL
User: /specsafe:verify SPEC-20260211-004
→ Running tests...
→ ❌ 2 tests FAILED
→ Coverage: 87%
→
→ Failures:
→ - should reject invalid token
→ - should handle rate limiting
→
→ 📋 Run `/specsafe:dev SPEC-20260211-004` to fix
Example - PASS
User: /specsafe:verify SPEC-20260211-004
→ Running tests...
→ ✅ All 12 tests PASSED
→ ✅ Coverage: 94%
→ ✅ All P0 requirements satisfied
→ ✅ QA Report generated
→ Status: QA
→ Next: /specsafe:done SPEC-20260211-004
development
Generate tests from a SpecSafe specification (SPEC → TEST stage).
development
Show SpecSafe project status and metrics.
development
Run QA validation (CODE → QA stage).
development
Create a new SpecSafe specification using the TDD workflow.