Validate specifications against implementation
Validates specifications against actual codebase implementation and reports inconsistencies.
/plugin marketplace add jschulte/stackshift/plugin install jschulte-stackshift@jschulte/stackshiftCompare specifications in specs/ against the actual codebase implementation.
Read all files in specs/:
For each spec marked ✅ COMPLETE:
Verify implementation exists:
If implementation missing:
⚠️ Inconsistency: spec-name.md marked COMPLETE
Reality: Implementation not found
Files checked: [list]
Recommendation: Update status to PARTIAL or MISSING
For each spec marked ⚠️ PARTIAL:
For each spec marked ❌ MISSING:
⚠️ Orphaned Implementation: user-notifications feature
Spec: Marked MISSING
Reality: Implementation found in src/notifications/
Recommendation: Create specification or remove code
Output format:
# Specification Analysis Results
**Date:** [current date]
**Specifications analyzed:** X total
## Summary
- ✅ COMPLETE features: X (fully aligned)
- ⚠️ PARTIAL features: X (some gaps)
- ❌ MISSING features: X (not started)
- 🔴 Inconsistencies found: X
## Issues Detected
### High Priority (Blocking)
1. **user-authentication.md** (COMPLETE → should be PARTIAL)
- Spec says: Frontend login UI required
- Reality: No login components found
- Impact: Users cannot authenticate
- Recommendation: Implement login UI or update spec status
2. **photo-upload.md → fish-management.md**
- Dependency broken
- fish-management requires photo-upload
- photo-upload marked PARTIAL (API incomplete)
- Impact: Fish photos cannot be uploaded
- Recommendation: Complete photo-upload API first
### Medium Priority
[...]
### Low Priority (Minor)
[...]
## Orphaned Implementations
Code exists without specifications:
1. **src/api/notifications.ts** (156 lines)
- No specification found
- Recommendation: Create specification or remove code
## Alignment Score
- Specifications ↔ Code: X% aligned
- No issues found: ✅ / Issues require attention: ⚠️
## Recommendations
1. Update status markers for inconsistent specs
2. Create specifications for orphaned code
3. Complete high-priority implementations
4. Re-run `/speckit.analyze` after fixes
## Next Steps
- Fix high-priority issues first
- Update specification status markers
- Re-run analysis to validate fixes