Validate artifacts, code, and acceptance criteria
Validates feature artifacts, code changes, and acceptance criteria against specifications.
/plugin marketplace add adeonir/claude-code-extras/plugin install spec-driven@claude-code-extrasIDValidate feature artifacts, code changes, and acceptance criteria. Marks as done if all checks pass.
[ID] - Feature ID (optional if branch is associated)Arguments received: $ARGUMENTS
If ID provided:
If no ID:
.specs/*/spec.md for matching branch: in frontmatterRead from .specs/{ID}-{feature}/:
spec.md - Requirements and Acceptance Criteriaplan.md - Architectural decisions and Critical Filestasks.md - Task list and completion statusInvoke the spec-validator agent with:
The agent will perform three types of validation:
1. Artifact Validation
2. Consistency Validation
3. Code Validation
Show validation results:
## Validation: {ID}-{feature}
### Artifact Structure
| File | Status |
|------|--------|
| spec.md | Valid |
| plan.md | Valid |
| tasks.md | Valid |
### Consistency
| Check | Status |
|-------|--------|
| Requirements coverage | Passed |
| AC coverage | Passed |
| Task dependencies | Passed |
| Critical files | Passed |
### Acceptance Criteria
| AC | Status | Notes |
|----|--------|-------|
| AC-001 | Satisfied | ... |
| AC-002 | Satisfied | ... |
### Code Issues
(none with confidence >= 80)
### Summary
- Artifacts: 3 valid
- Consistency: 4 passed
- AC: 2/2 satisfied
- Status: **Ready**
If all checks pass:
status: done/spec-driven:archive to generate documentationIf any checks fail:
to-review/spec-driven:implement to fix issuesSummary with next steps:
/spec-driven:archive or creating PR/spec-driven:init