You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spec skill: add Design Review section before implementation planning #413
Repeated pattern across issues (#390, #305, others): implementation passes QA functionally but uses the wrong design — wrong layer, hacky shortcut, over-engineered approach. The fix cycle is expensive: identify gap → fix → user challenges design → redo with correct approach.
The /spec skill currently plans what to build (AC coverage, quality dimensions, test coverage) but never evaluates how well the design is. It doesn't ask "which layer owns this?" or "is this the simplest correct approach?"
Goal
Add a "Design Review" section to /spec between the Implementation Plan and Feature Quality Planning sections. This creates a forcing function that makes design decisions explicit before implementation starts.
Acceptance Criteria
Spec output includes a "Design Review" section with answers to 4 questions:
Where does this logic belong? — which module/layer owns it
What's the simplest correct approach? — actively reject over-engineering
What existing pattern does this follow? — name the specific pattern, confirm it fits
What would a senior reviewer challenge? — anticipate design pushback
Section scales with complexity: simple-fix issues get abbreviated (1-2 questions), standard/complex issues get all 4
No new agents, skills, or external lookups — just prompts within the existing spec flow
Design decisions are visible in the spec comment posted to the issue
Non-Goals
Separate design agent or research phase
Best-practice database or pattern library
Multi-round design iteration
Changes to /exec or /qa (they benefit downstream without changes)
Origin
Identified during /reflect on #390 QA session. See memory/project_spec_design_gap.md.
Verification: Manual Test — Run /spec on a standard issue, confirm output contains "Design Review" section with all 4 questions answered (layer ownership, simplest approach, existing pattern, reviewer challenge).
AC-2: Complexity scaling
Verification: Manual Test — Run /spec on simple-fix label issue → abbreviated (2 questions); on complex label → all 4 questions with detail.
AC-3: No new agents, skills, or external lookups
Verification: Code Review — Diff contains only markdown prompt text additions in SKILL.md files. No new Task() spawns, tool refs, or API calls.
AC-4: Design decisions visible in spec comment
Verification: Manual Test — After /spec posts a comment, the Design Review section is present in the GitHub comment.
Verification: Code Review — Output Verification section in SKILL.md includes Design Review bullet.
AC-6 (Derived): Output Template updated
Verification: Code Review — Output Template section in SKILL.md includes Design Review between Implementation Plan and Feature Quality Planning.
Design Review
Where does this logic belong? Spec skill's SKILL.md prompt files — purely prompt engineering, not TypeScript. Same layer as Feature Quality Planning and AC Checklist sections.
Simplest correct approach? Add markdown prompt text to SKILL.md. Reuse the existing complexity scaling pattern from Feature Quality Planning (label-based: simple→abbreviated, standard→full, complex→detailed). No code, no new files, no abstractions.
Existing pattern? Mirrors Feature Quality Planning exactly: required section, purpose statement, complexity scaling table, question format, example output.
Senior reviewer challenges? (1) "Why after Implementation Plan, not before?" — Design review needs the plan as input to evaluate. (2) "Won't this bloat output?" — Adds ~15 lines for standard, ~5 for simple-fix, comparable to existing sections.
Implementation Plan
Phase 1: Core changes
Insert ### 2.5. Design Review (REQUIRED) in .claude/skills/spec/SKILL.md between Implementation Plan (§2) and Feature Quality Planning (§3)
Update Output Verification checklist to include Design Review
Update Output Template to include Design Review section
Phase 2: Directory sync
4. Replicate to templates/skills/spec/SKILL.md
5. Replicate to skills/spec/SKILL.md (abbreviated to match existing detail level)
Phase 3: Verify
6. Run /spec on a test issue to confirm output
Assumptions
Section numbered "2.5" to avoid renumbering (can adjust if preferred)
Abbreviated mode uses Q1 (layer) + Q3 (pattern) as highest-value questions for simple fixes
Activity
admarble commentedon Mar 24, 2026
Spec Plan — #413: Design Review Section
AC Checklist with Verification Criteria
AC-1: Design Review section with 4 questions
Verification: Manual Test — Run
/specon a standard issue, confirm output contains "Design Review" section with all 4 questions answered (layer ownership, simplest approach, existing pattern, reviewer challenge).AC-2: Complexity scaling
Verification: Manual Test — Run
/speconsimple-fixlabel issue → abbreviated (2 questions); oncomplexlabel → all 4 questions with detail.AC-3: No new agents, skills, or external lookups
Verification: Code Review — Diff contains only markdown prompt text additions in SKILL.md files. No new
Task()spawns, tool refs, or API calls.AC-4: Design decisions visible in spec comment
Verification: Manual Test — After
/specposts a comment, the Design Review section is present in the GitHub comment.AC-5 (Derived): Output Verification checklist updated
Verification: Code Review — Output Verification section in SKILL.md includes Design Review bullet.
AC-6 (Derived): Output Template updated
Verification: Code Review — Output Template section in SKILL.md includes Design Review between Implementation Plan and Feature Quality Planning.
Design Review
Where does this logic belong? Spec skill's SKILL.md prompt files — purely prompt engineering, not TypeScript. Same layer as Feature Quality Planning and AC Checklist sections.
Simplest correct approach? Add markdown prompt text to SKILL.md. Reuse the existing complexity scaling pattern from Feature Quality Planning (label-based: simple→abbreviated, standard→full, complex→detailed). No code, no new files, no abstractions.
Existing pattern? Mirrors Feature Quality Planning exactly: required section, purpose statement, complexity scaling table, question format, example output.
Senior reviewer challenges? (1) "Why after Implementation Plan, not before?" — Design review needs the plan as input to evaluate. (2) "Won't this bloat output?" — Adds ~15 lines for standard, ~5 for simple-fix, comparable to existing sections.
Implementation Plan
Phase 1: Core changes
### 2.5. Design Review (REQUIRED)in.claude/skills/spec/SKILL.mdbetween Implementation Plan (§2) and Feature Quality Planning (§3)Phase 2: Directory sync
4. Replicate to
templates/skills/spec/SKILL.md5. Replicate to
skills/spec/SKILL.md(abbreviated to match existing detail level)Phase 3: Verify
6. Run
/specon a test issue to confirm outputAssumptions
.claude/skills/spec/,templates/skills/spec/,skills/spec/Recommended Workflow
Phases: spec → exec → qa
Quality Loop: disabled
admarble commentedon Mar 24, 2026
QA Review for Issue #413
Implementation Status: NOT FOUND
No implementation detected for this issue:
Verdict: AC_NOT_MET
No code changes found to review. The acceptance criteria cannot be evaluated without an implementation.
Next Steps
/exec 413to implement the feature/qa 413after implementation is completeQA skipped: No implementation to review
admarble commentedon Mar 24, 2026
QA Review for Issue #413
Implementation Status: NOT FOUND
No implementation detected for this issue:
Verdict: AC_NOT_MET
No code changes found to review. The acceptance criteria cannot be evaluated without an implementation.
AC Coverage
Coverage: 0/4 AC items met
Next Steps
/exec 413to implement the feature/qa 413after implementation is completeQA skipped: No implementation to review
admarble commentedon Mar 24, 2026
QA Review for Issue #413
Implementation Status: NOT FOUND
No implementation detected for this issue:
Verdict: AC_NOT_MET
No code changes found to review. The acceptance criteria cannot be evaluated without an implementation.
Next Steps
/exec 413to implement the feature/qa 413after implementation is completeQA skipped: No implementation to review
feat(#413): add Design Review section to spec skill
admarble commentedon Mar 25, 2026
/fullsolve Complete
Issue: #413
Status: READY_FOR_MERGE
Summary
AC Coverage
Iterations
PR: #424
Ready for human review and merge.
admarble commentedon Mar 25, 2026
Documentation Review Complete
This issue contains documentation-only changes (skill prompt additions). No additional documentation generation required — the SKILL.md files themselves document the Design Review section.
Files Modified:
.claude/skills/spec/SKILL.md— Full Design Review section with examplestemplates/skills/spec/SKILL.md— Full Design Review section with examplesskills/spec/SKILL.md— Abbreviated Design Review sectionWhat's Documented In-Place:
Status:
✅ Documentation is embedded in the skill prompts. No separate docs file needed.
docs: generate feature docs for #325, #413, and update MCP server doc…
fix(#529): broaden awk AC-header regex to match #### and **AC-N** styles
feat(#529): enforce manual-test AC gate in QA skill (#547)
fix(#529): broaden awk AC-header regex to match #### and **AC-N** styles