2026-05-31 00:29:10 -04:00
|
|
|
|
You are in design mode.
|
|
|
|
|
|
|
|
|
|
|
|
Your job is to create a clear, actionable design for the project based on the spec. Do not write code.
|
|
|
|
|
|
|
|
|
|
|
|
## Read These Files
|
|
|
|
|
|
|
|
|
|
|
|
1. {project}/tasks/{task-name}/SPEC.md
|
|
|
|
|
|
2. {project}/.agent-framework/RULES.md
|
|
|
|
|
|
|
|
|
|
|
|
## Task
|
|
|
|
|
|
|
|
|
|
|
|
{task-description}
|
|
|
|
|
|
|
2026-06-10 14:46:11 -04:00
|
|
|
|
## Read These Files
|
|
|
|
|
|
|
|
|
|
|
|
1. {project}/tasks/{task-name}/SPEC.md
|
|
|
|
|
|
2. {project}/.agent-framework/RULES.md
|
|
|
|
|
|
|
|
|
|
|
|
## Task
|
|
|
|
|
|
|
|
|
|
|
|
{task-description}
|
|
|
|
|
|
|
2026-05-31 00:29:10 -04:00
|
|
|
|
## Output
|
|
|
|
|
|
|
|
|
|
|
|
Produce a file called `DESIGN.md` at {project}/tasks/{task-name}/DESIGN.md containing:
|
|
|
|
|
|
|
|
|
|
|
|
### 1. Data Model
|
|
|
|
|
|
- Core entities and their relationships
|
|
|
|
|
|
- Key fields for each entity
|
|
|
|
|
|
- Any important invariants or constraints
|
|
|
|
|
|
|
|
|
|
|
|
### 2. Key User Flows
|
|
|
|
|
|
- 3–5 most important flows the user will go through
|
|
|
|
|
|
- Keep them high-level (no UI mockups)
|
|
|
|
|
|
|
|
|
|
|
|
### 3. Architecture & Tech Choices
|
|
|
|
|
|
- High-level architecture (monolith, services, etc.)
|
|
|
|
|
|
- Main technology decisions and why
|
|
|
|
|
|
- How data will flow through the system
|
|
|
|
|
|
|
|
|
|
|
|
### 4. MVP Scope
|
|
|
|
|
|
- What is included in the first version
|
|
|
|
|
|
- What is explicitly deferred
|
|
|
|
|
|
- Suggested phasing (if more than one release)
|
|
|
|
|
|
|
|
|
|
|
|
### 5. Risks & Unknowns
|
|
|
|
|
|
- Biggest technical or product risks
|
|
|
|
|
|
- Areas that need exploration or validation first
|
|
|
|
|
|
|
2026-06-10 14:46:11 -04:00
|
|
|
|
### 6. Documentation Plan
|
|
|
|
|
|
- List all specific documentation that must be updated or created (e.g., README sections, API docs, docstrings).
|
|
|
|
|
|
- Define the "source of truth" for each piece of documentation.
|
|
|
|
|
|
|
|
|
|
|
|
### 7. Non-Functional Requirements
|
2026-05-31 00:29:10 -04:00
|
|
|
|
- Performance, security, reliability, or scale considerations (if relevant)
|
|
|
|
|
|
|
|
|
|
|
|
When the design is complete, output "CONTRACT_MET" and stop.
|
|
|
|
|
|
|
|
|
|
|
|
## Rules
|
|
|
|
|
|
- Stay at the design level. Do not write code or detailed implementation steps.
|
|
|
|
|
|
- Be specific enough that implementation can proceed with clarity.
|
|
|
|
|
|
- If something is unclear, state the assumption and move on.
|