validate
Validate Specification
Validate a specification against the canonical schema and quality rules.
Workflow
-
Load Specification
- Read the specification file
- Parse YAML frontmatter and content
-
Schema Validation
- Spawn
spec-reviewer validateagent - Check required fields present
- Validate field formats
- Check requirement ID patterns
- Spawn
-
EARS Pattern Validation
- Verify all requirements use EARS format
- Check pattern syntax correctness
- Identify malformed requirements
-
Acceptance Criteria Validation
- Verify all requirements have acceptance criteria
- Check Given/When/Then format
- Identify missing or incomplete criteria
-
Quality Assessment
- Calculate INVEST scores per requirement
- Check for ambiguous language
- Identify missing sections
-
Report Results
- Show validation status (PASS/FAIL)
- List issues by severity
- Provide remediation guidance
Arguments
$ARGUMENTS- Path to specification file
Examples
# Validate specific specification
/spec-driven-development:validate .specs/user-auth/spec.md
# Validate all specifications
/spec-driven-development:validate --all
Validation Report
# Validation Report: user-auth
**Status:** ⚠️ PASS WITH WARNINGS
**Timestamp:** 2024-01-15T10:30:00Z
## Schema Compliance
✓ All required fields present
✓ Valid frontmatter format
✓ Requirement IDs follow pattern
## EARS Format
✓ FR-1: Valid Event-Driven pattern
✓ FR-2: Valid State-Driven pattern
⚠️ FR-3: Missing SHALL keyword
## Acceptance Criteria
✓ All requirements have criteria
✓ Given/When/Then format correct
⚠️ FR-2.AC-3: Vague "then" clause
## INVEST Scores
| Req | I | N | V | E | S | T | Total |
| --- | - | - | - | - | - | - | ----- |
| FR-1 | 2 | 2 | 2 | 2 | 2 | 2 | 12/12 |
| FR-2 | 2 | 2 | 2 | 1 | 2 | 1 | 10/12 |
| FR-3 | 2 | 2 | 2 | 2 | 1 | 2 | 11/12 |
## Recommendations
1. FR-3: Add SHALL keyword for EARS compliance
2. FR-2.AC-3: Make outcome more specific
Related Commands
/spec-driven-development:audit- Full quality audit with scoring/spec-driven-development:refine- AI-assisted refinement/spec-driven-development:specify- Generate new specification
More from melodic-software/claude-code-plugins
plantuml-syntax
Authoritative reference for PlantUML diagram syntax. Provides UML and non-UML diagram types, syntax patterns, examples, and setup guidance for generating accurate PlantUML diagrams.
161system-prompt-engineering
Design effective system prompts for custom agents. Use when creating agent system prompts, defining agent identity and rules, or designing high-impact prompts that shape agent behavior.
141architecture-documentation
Generate architecture documents using templates with diagram integration. Use for creating C4 diagrams, viewpoint documents, and technical overviews.
126data-modeling
Data modeling with Entity-Relationship Diagrams (ERDs), data dictionaries, and conceptual/logical/physical models. Documents data structures, relationships, and attributes.
101resume-optimization
Resume structure, achievement bullet formulas, ATS optimization, and job-targeted tailoring for software engineers. Use when reviewing resumes, crafting achievement bullets, extracting keywords from job descriptions, or tailoring content for specific roles.
93state-machine-design
Statechart and state machine modeling for lifecycle and behavior specification
90