Skip to content

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 โ€” Define MyEntity interface (โ‰ค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 โ€‹

FileChange TypeEstimated Lines
src/types/example.tsCREATE~12 lines
src/lib/example.tsCREATE~18 lines
src/components/Example.tsxMODIFY~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.

Released under the MIT License.