Skip to content

Spec skill: add Design Review section before implementation planning #413

Closed

Description

@admarble

Context

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:
    1. Where does this logic belong? — which module/layer owns it
    2. What's the simplest correct approach? — actively reject over-engineering
    3. What existing pattern does this follow? — name the specific pattern, confirm it fits
    4. 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.

Activity

  1. added
    enhancement
    on Mar 24, 2026
  2. admarble commented on Mar 24, 2026

    @admarble
    ContributorAuthor

    Spec Plan — #413: Design Review Section

    AC Checklist with Verification Criteria

    AC-1: Design Review section with 4 questions

    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.

    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

    1. Insert ### 2.5. Design Review (REQUIRED) in .claude/skills/spec/SKILL.md between Implementation Plan (§2) and Feature Quality Planning (§3)
    2. Update Output Verification checklist to include Design Review
    3. 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
    • Three-directory sync: .claude/skills/spec/, templates/skills/spec/, skills/spec/

    Recommended Workflow

    Phases: spec → exec → qa
    Quality Loop: disabled

  3. added
    planned
    on Mar 24, 2026
  4. admarble commented on Mar 24, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #413

    Implementation Status: NOT FOUND

    No implementation detected for this issue:

    • Commits on feature branch: None
    • Uncommitted changes: None
    • Open PR: None

    Verdict: AC_NOT_MET

    No code changes found to review. The acceptance criteria cannot be evaluated without an implementation.

    Next Steps

    1. Run /exec 413 to implement the feature
    2. Re-run /qa 413 after implementation is complete

    QA skipped: No implementation to review

  5. added
    needs-work
    on Mar 24, 2026
  6. admarble commented on Mar 24, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #413

    Implementation Status: NOT FOUND

    No implementation detected for this issue:

    • Commits on feature branch: None
    • Uncommitted changes: None
    • Open PR: None

    Verdict: AC_NOT_MET

    No code changes found to review. The acceptance criteria cannot be evaluated without an implementation.

    AC Coverage

    AC Description Status
    AC-1 Design Review section with 4 questions NOT_MET
    AC-2 Section scales with complexity NOT_MET
    AC-3 No new agents/skills/external lookups NOT_MET
    AC-4 Design decisions visible in spec comment NOT_MET

    Coverage: 0/4 AC items met

    Next Steps

    1. Run /exec 413 to implement the feature
    2. Re-run /qa 413 after implementation is complete

    QA skipped: No implementation to review

  7. admarble commented on Mar 24, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #413

    Implementation Status: NOT FOUND

    No implementation detected for this issue:

    • Commits on feature branch: None
    • Uncommitted changes: None
    • Open PR: None

    Verdict: AC_NOT_MET

    No code changes found to review. The acceptance criteria cannot be evaluated without an implementation.

    Next Steps

    1. Run /exec 413 to implement the feature
    2. Re-run /qa 413 after implementation is complete

    QA skipped: No implementation to review

  8. added a commit that references this issue on Mar 25, 2026
  9. admarble commented on Mar 25, 2026

    @admarble
    ContributorAuthor

    /fullsolve Complete

    Issue: #413
    Status: READY_FOR_MERGE

    Summary

    • AC: 6/6 met
    • Files changed: 3 (all SKILL.md prompt files)
    • No TypeScript, no new agents/skills/external lookups

    AC Coverage

    AC Description Status
    AC-1 Design Review section with 4 questions MET
    AC-2 Section scales with complexity MET
    AC-3 No new agents/skills/external lookups MET
    AC-4 Design decisions visible in spec comment MET
    AC-5 Output Verification checklist updated MET
    AC-6 Output Template updated MET

    Iterations

    • Spec: 1 (from prior run)
    • Exec: 1
    • QA: 1

    PR: #424


    Ready for human review and merge.

  10. admarble commented on Mar 25, 2026

    @admarble
    ContributorAuthor

    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 examples
    • templates/skills/spec/SKILL.md — Full Design Review section with examples
    • skills/spec/SKILL.md — Abbreviated Design Review section

    What's Documented In-Place:

    • 4 design questions (layer ownership, simplest approach, existing pattern, reviewer challenge)
    • Complexity scaling rules (simple-fix → Q1+Q3, standard/complex → all 4)
    • Standard and abbreviated examples
    • Output Verification checklist entry
    • Output Template section

    Status:

    ✅ Documentation is embedded in the skill prompts. No separate docs file needed.

  11. added a commit that references this issue on Mar 25, 2026
  12. added 2 commits that reference this issue on Apr 23, 2026
  13. added a commit that references this issue on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds-workplanned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions