afc-validate
Validate spec/plan/task artifact consistency
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Validate spec/plan/task artifact consistency
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Code and component analysis — analyze code, trace flows, audit consistency, inspect components
Architecture analysis and design review
Full auto pipeline — run spec-to-clean cycle automatically for new features
Save session state for later resumption
Resolve spec ambiguities with clarifying questions
Pipeline artifact cleanup and codebase hygiene
| name | afc:validate |
| description | Validate spec/plan/task artifact consistency |
| argument-hint | [validation scope: spec-plan, tasks-only] |
| user-invocable | false |
| context | fork |
| allowed-tools | ["Read","Grep","Glob"] |
| model | sonnet |
Validates consistency across spec.md, plan.md, and tasks.md. Read-only — does not modify files.
!cat .claude/afc.config.md 2>/dev/null || echo "[CONFIG NOT FOUND — run /afc:init first]"
$ARGUMENTS — (optional) limit validation scope (spec-plan, tasks-only)From .claude/afc/specs/{feature}/:
Warn about missing files but proceed with what is available.
If config is missing: use CLAUDE.md for architecture info; assume "Layered Architecture" as fallback.
No artifacts early-exit: If both spec.md and plan.md are missing (no feature directory exists or directory is empty), output:
Validation skipped — no pipeline artifacts found
├─ spec.md: not found
├─ plan.md: not found
└─ Run /afc:spec followed by /afc:plan to generate artifacts for validation
Exit without running validation categories. Do not produce a degenerate report with empty coverage data.
Run all 6 categories defined in validation-categories.md.
If $ARGUMENTS specifies a scope (e.g., spec-plan), run only the relevant categories.
## Consistency Analysis Results: {feature name}
### Findings
| ID | Category | Severity | Location | Summary | Recommended Action |
|----|----------|----------|----------|---------|-------------------|
| A-001 | COVERAGE | HIGH | spec FR-003 | No mapping in tasks | Add task |
### Coverage Summary
| Mapping | Coverage |
|---------|----------|
| spec → plan | {N}% |
| plan → tasks | {N}% |
| spec → tasks | {N}% |
### Metrics
- Total requirements: {N} / Total tasks: {N}
- Issues: CRITICAL {N} / HIGH {N} / MEDIUM {N} / LOW {N}
### Next Steps
{Concrete action proposals for CRITICAL/HIGH issues}
If CRITICAL or HIGH issues are found:
/afc:validate with the same scopeIf only MEDIUM/LOW issues: proceed is safe; issues are advisory.
Analysis complete
├─ Found: CRITICAL {N} / HIGH {N} / MEDIUM {N} / LOW {N}
├─ Coverage: spec→plan {N}%, plan→tasks {N}%, spec→tasks {N}%
└─ Recommended: {next action}