Repository navigation
Closed
Description
Summary
Spec currently plans the "minimum to satisfy AC" rather than "complete professional implementation." This causes gaps that slip through exec and QA because they were never in the plan.
Problem
Current Spec Focus
- What feature should do (happy path)
- Basic acceptance criteria
- Implementation steps
What's Missing
Spec doesn't systematically consider:
- Completeness: All integration points, no partial implementations
- Error Handling: Edge cases, failure modes, graceful degradation
- Code Quality: Types, patterns, error boundaries, code organization
- Test Coverage: What needs testing, edge cases, integration tests
- Best Practices: Logging, accessibility, performance, security
- Polish: Loading states, error messages, UX considerations
The Cascade Effect
Spec plans minimum → Exec implements minimum → QA passes minimum
↓
Gaps found in manual review / production
Evidence
User reports consistently finding gaps when manually asking "any gaps?" after automated QA passes:
- Coverage issues
- Code quality problems
- Missing best practices
- Incomplete integrations
These aren't failures - they're omissions from incomplete planning.
Proposed Solution
Add a Feature Completeness Checklist to /spec output that systematically considers professional implementation requirements.
New Section: Feature Quality Planning
## Feature Quality Planning
### Completeness Check
- [ ] All AC items have corresponding implementation steps
- [ ] Integration points with existing features identified
- [ ] No partial implementations or TODOs planned
- [ ] State management considered (if applicable)
- [ ] Data flow is complete end-to-end
### Error Handling
- [ ] Invalid input scenarios identified
- [ ] API/external service failures handled
- [ ] Edge cases documented (empty, null, max values)
- [ ] Error messages are user-friendly
### Code Quality
- [ ] Types fully defined (no `any` planned)
- [ ] Follows existing patterns in codebase
- [ ] Error boundaries where needed
- [ ] No magic strings/numbers
### Test Coverage Plan
- [ ] Unit tests for business logic
- [ ] Integration tests for data flow
- [ ] Edge case tests identified
- [ ] Mocking strategy appropriate
### Best Practices
- [ ] Logging for debugging/observability
- [ ] Accessibility considerations (if UI)
- [ ] Performance implications considered
- [ ] Security reviewed (auth, validation, sanitization)
### Polish (UI features)
- [ ] Loading states planned
- [ ] Error states have UI
- [ ] Empty states handled
- [ ] Responsive design considered
### Derived ACs
Based on quality planning, additional ACs:
- AC-N: [Error handling AC]
- AC-N+1: [Test coverage AC]
- AC-N+2: [Best practice AC]Implementation
- Update
/specSKILL.md to include Feature Quality Planning section - Make it mandatory in output verification checklist
- Generate derived ACs from the checklist items
- Update
/execto reference quality plan during implementation - Update
/qato verify quality plan items (not just original ACs)
Acceptance Criteria
- AC-1:
/specincludes Feature Quality Planning section with completeness, error handling, code quality, test coverage, best practices, and polish checklists - AC-2: Spec generates derived ACs from quality planning (error handling ACs, test coverage ACs, etc.)
- AC-3: Output verification requires Feature Quality Planning section
- AC-4:
/execreferences quality plan items during implementation - AC-5:
/qaverifies quality plan items are addressed (not just original ACs)
Why This Matters
| Approach | When Gaps Found | Cost |
|---|---|---|
| Spec quality planning | Before coding | Minimal |
| Exec implementation | During coding | Low |
| QA review | After coding | Medium |
| Manual review | Post-automation | High |
| Production | After deploy | Very High |
Comprehensive planning at spec phase prevents gaps from ever existing.
Trade-offs
Benefits
- Gaps caught before they're created
- Exec has complete implementation guidance
- QA has complete checklist to verify
- Professional-quality output by default
Costs
- Longer spec phase (more planning)
- More ACs to implement
- Potential over-engineering for simple features
Mitigation
- Scale checklist by feature complexity (simple features skip some sections)
- Use label-based detection:
simple-fixskips comprehensive planning - Keep checklist items high-level, not prescriptive
Related Issues
- feat: Shift-left gap detection in workflow phases #196 - Shift-left gap detection (focused on verifying ACs, not expanding them)
- bug: Quality loop never triggers - QA verdict not parsed #218 - Quality loop never triggers (this is symptom; better planning is cure)
- Add AC linting to /spec to catch vague acceptance criteria #201 - AC linting (catches vague ACs, not missing ACs)
Labels
enhancement, spec, quality, workflow
Metadata
Metadata
Assignees
Labels
No labels
Activity
admarble commentedon Jan 31, 2026
📋 Implementation Plan for #219
Acceptance Criteria
/specincludes Feature Quality Planning section/execreferences quality plan items during implementation/qaverifies quality plan items are addressedImplementation Plan
Phase 1: Update
/specSKILL.md (Core Change)Add Feature Quality Planning section after Implementation Plan with 6 subsections:
Add conditional logic for
simple-fixlabeled issues to use abbreviated checklistUpdate Output Template with new section
Update Output Verification checklist to require Feature Quality Planning
Phase 2: Update
/execSKILL.md (Reference Integration)Add Quality Plan Reference to Context Gathering section
Add Quality Plan Checkpoint to Implementation Loop
Add Quality Plan Alignment table to Progress Summary template
Phase 3: Update
/qaSKILL.md (Verification Integration)Add Quality Plan Verification section between Phase 0 and Phase 1
Update Output Template with Quality Plan Verification section
Update Output Verification checklist
Update Verdict Algorithm to include quality plan verification gate
Files to Modify
.claude/skills/spec/SKILL.md.claude/skills/exec/SKILL.md.claude/skills/qa/SKILL.mdOpen Questions
simple-fix,typo,docs-only🤖 Generated with
/spec— Ready for/execfeat(#219): Add comprehensive feature quality planning to skills
admarble commentedon Jan 31, 2026
✅ /fullsolve Complete
Issue: #219
PR: #220
Status: READY_FOR_MERGE
AC Coverage
/specincludes Feature Quality Planning section/execreferences quality plan items/qaverifies quality plan itemsQuality Metrics
Changes Summary
/spec: Added Feature Quality Planning section with 6 subsections (Completeness, Error Handling, Code Quality, Test Coverage, Best Practices, Polish) + Derived ACs/exec: Added Quality Plan Reference section and Quality Plan Alignment table/qa: Added Phase 0b: Quality Plan Verification and updated verdict algorithmSelf-Evaluation
🤖 Generated with
/fullsolvefix(#219): Address gaps identified in implementation review
docs: Add #219 feature quality planning to changelog and what-weve-built
feat(#219): Add comprehensive feature quality planning to skills (#220)