Implementation Plan โ [Task Title] โ
Phase: 1 โ Planning | Status: Draft / Locked
Date: [YYYY-MM-DD] | Based on Research: [research_summary.md]
๐ Contracts (Locked before implementation) โ
These types/interfaces MUST NOT change once locked. Any change requires returning to
/r.
typescript
// [Filename: src/types/example.ts]
export interface MyEntity {
id: string;
// ...
}
export interface MyServiceResult {
success: boolean;
data?: MyEntity;
error?: string;
}๐บ๏ธ Architecture Decision โ
Chosen approach: [Option B from research โ brief description]
Layer mapping:
src/
โโโ types/ โ [files being created/modified] (Data Layer)
โโโ lib/ or hooks/ โ [files being created/modified] (Logic Layer)
โโโ components/ โ [files being created/modified] (UI Layer)โ๏ธ Atomic Task List โ
Module 1: [Module Name] โ
- [ ] 1.1
[Data Layer]src/types/example.tsโ DefineMyEntityinterface (โค12 lines) - [ ] 1.2
[Logic Layer]src/lib/example.tsโ Implement core logic (โค18 lines) - [ ] 1.3
[UI Layer]src/components/Example.tsxโ Connect logic to UI (โค15 lines change)
Module 2: [Module Name] โ
- [ ] 2.1
[Logic Layer]src/lib/...โ [What changes] (โค20 lines) - [ ] 2.2
[UI Layer]src/components/...โ [What changes] (โค80 lines UI)
๐ Affected Files โ
| File | Change Type | Estimated Lines |
|---|---|---|
src/types/example.ts | CREATE | ~12 lines |
src/lib/example.ts | CREATE | ~18 lines |
src/components/Example.tsx | MODIFY | ~15 lines |
๐ฉ Risk Flags โ
- [ ] Risk of breaking existing [feature] โ mitigated by [approach]
- [ ] Requires new environment variable:
EXAMPLE_VAR
โธ๏ธ STOP โ Awaiting human plan review. Reply 1 to begin execution phase.
Upon receiving 1, AI must first re-read this file via view_file before starting Step 1.1.
