Validate spec completeness and implementation compliance. Use before approval (--pre) or before completion (--post).
Validate spec quality (pre-implementation) or implementation compliance (post-implementation).
/validate-spec SPEC-001 # Auto-detect mode based on status
/validate-spec SPEC-001 --pre # Pre-implementation validation
/validate-spec SPEC-001 --post # Post-implementation compliance
| Spec Status | Default Mode | Purpose | |-------------|--------------|---------| | draft, review | --pre | Validate before approval | | approved | --pre | Final check before implementation | | in_progress, complete | --post | Verify implementation matches |
Required sections:
✓ Summary (present)
✓ Problem Statement (present)
✓ Acceptance Scenarios (3 found)
✓ Agent Context (present)
✓ Out of Scope (present)
✗ Dependencies (MISSING)
Scenario 1: "User signs up"
✓ Has Given/When/Then clauses
✓ Specific, not vague
Scenario 2: "Invalid credentials"
⚠ Then clause is vague: "shows error"
Suggest: "shows 'Invalid email or password' message"
Scenarios must be:
Files referenced:
✓ src/lib/auth.ts exists
✗ src/middleware/session.ts NOT FOUND
Metric 1: "Page load < 2s"
✓ Measurable, has threshold
Metric 2: "Good user experience"
✗ NOT MEASURABLE
Suggest: "User satisfaction > 4/5"
Word count: 847 words
Guideline: < 500 words
⚠ Consider splitting into multiple specs
2 open questions found:
1. "Which OAuth providers?"
2. "Session timeout?"
⚠ Resolve before 'approved' status
Ready for approval: NO
Fix:
- Add missing Dependencies section
- Refine vague scenario
- Make metrics measurable
- Resolve open questions
Scenario: "User signs up"
✓ Found: auth/signup.test.ts:15
Scenario: "Session expires"
✗ NO TEST FOUND
Coverage: 2/3 scenarios (67%)
Metric: "Page load < 2s"
Result: 1.4s average
✓ PASS
Metric: "95% coverage"
Result: 97.2%
✓ PASS
Out of scope: "Social login", "2FA"
Scanning...
✓ No oauth/social code found
⚠ Found "password strength" - potential violation
Constraint: "No new dependencies"
✓ package.json unchanged
Constraint: "Files outside scope"
⚠ src/utils/helpers.ts modified
- [x] Acceptance scenarios tested
- [ ] No console errors ← incomplete
Implementation compliance: PARTIAL
Issues to resolve:
1. Add test for "Session expires"
2. Review password complexity code
3. Fix console warnings
When issues found:
AI: Let's refine Scenario 2...
What should the error message say?
User: "Invalid email or password"
AI: Updated. Now the metrics...
Remove "Good UX" or replace with measurable?
User: Remove it
AI: Done. Re-validating...
## Validation: PASS
Ready to move to 'review' status?
/spec → /validate-spec --pre → [approval] → /plan → /implement → /validate-spec --post → /complete
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer