見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。
Invoke with: thoughts/qrspi/<id>/
Design — Where Are We Going?
Create a ~200-line design document that captures the current state, desired end state, design decisions, and patterns to follow. This is the lowest-cost point for direction changes — get alignment here before investing in detailed planning.
Input
Read <path>/task.md, <path>/questions.md, and <path>/research.md.
Process
- Read all three artifacts fully.
task.mdtells you what we're building.research.mdtells you what exists. Understand both before proceeding.
- Targeted exploration: If the research revealed areas that need deeper investigation for design decisions, spawn codebase-pattern-finder or codebase-analyzer agents to examine specific patterns or approaches.
- Present open questions and wait for answers. Before writing anything, you MUST:
- List 3-5 design questions that require human judgment
- Present options with trade-offs for each, grounded in what the research found
- Wait for the user to respond
Example:
Before I write the design document, I need your input:
**Q1: Data model approach**
The research shows two patterns in the codebase:
- Option A: [pattern from research.md] — used in [file:line], simpler but less flexible
- Option B: [pattern from research.md] — used in [file:line], more complex but extensible
Which fits this use case?
**Q2: ...**Do NOT skip this step. Do NOT write the design document without user input.
- Write `design.md` (~200 lines) to the artifact directory:
# Design Discussion
## Current State
[What exists today, grounded in research findings with file:line refs]
## Desired End State
[What we're building and how to verify it's correct]
## Patterns to Follow
[Existing codebase patterns the implementation should match, with file:line refs.
Flag any patterns the research found that should NOT be followed.]
## Design Decisions
1. **[Decision name]**: [chosen option] — [why]
2. **[Decision name]**: [chosen option] — [why]
...
## What We're NOT Doing
[Explicit scope boundaries to prevent creep]
## Open Risks
[Anything uncertain that might surface during implementation]- Present the design to the user for review. Iterate until they approve.
Output
- File written:
<path>/design.md - Tell the user: "Next: invoke the
qrspi-structureskill with<path>"
Rules
- ~200 lines max. This is a steering document, not a specification.
- Every pattern reference must cite
file:linefrom the research. - You MUST ask questions and wait before writing. No exceptions.
- "Patterns to Follow" is critical — call out both good and bad patterns found in the codebase.
- "What We're NOT Doing" prevents scope creep downstream.
When to Go Back
If the research is missing critical information needed for design decisions — the questions missed an important area of the codebase — tell the user and suggest re-running the qrspi-question and qrspi-research skills to fill the gap before proceeding with an incomplete design.

