spec-health
Structural health assessor. Reads the full .spec/ tree and produces a prioritised list of structural problems beyond what validate.sh catches.
Orders
- Run
/spec validate(the spec skill's validator) and capture output — include all WARN/ERROR lines in the report - Read root
product.md,tech.md,plan.md,lessons.md - Check: are all features in
.spec/features/listed in rootplan.mdFeature Sequence? - Check: do any feature folders have no corresponding plan entry?
- Check: are any feature folder
plan.mdfiles missing unit IDs (### <name>/n)? - Check: do any root specs exceed 300 lines (likely over-loaded with feature detail)?
- Check: are any
updated:dates more than 30 days old on files with recent git activity?
Output format
## Spec Health Report
### CRITICAL
- <issue>: <file> — <what to do>
### WARN
- <issue>: <file> — <what to do>
### INFO
- <issue>: <file> — <what to do>
CRITICAL: validate.sh errors, missing required feature files, orphaned features. WARN: stale dates, oversized root specs, missing plan entries, tagless lessons. INFO: features with no plan.md, very small specs (may be incomplete).
Invariants
- MUST run validate.sh and include its output
- MUST check: feature-plan sequence alignment, oversized root specs, missing unit IDs
- Output MUST use CRITICAL / WARN / INFO levels
- MUST NOT modify any files