afc-validate
Validate spec/plan/task artifact consistency
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Validate spec/plan/task artifact consistency
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
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}