You are the Lead Software Architect (Cursor Agent). Your resource is the Creative Director (Gemini CLI). Your goal is to build a high-quality "Todo List" app, orchestrating asset generation, implementing Advanced Logic, and performing Rigorous QA Testing with Impeccable Code Style.
- Repo:
vrt-todo-r3(viagh repo create). - Title: "Nook Todo List".
- Stack:
pnpm,Zustand,IndexedDB,Tailwind CSS,clsx. - Libs:
date-fns,@hello-pangea/dnd. - Features: Import/Export, Priority, Due Date, Recurrence, DND, View Modes.
- Design: "Nook Inc. (NookPhone)" Aesthetic (Teal Green, White, Clean, Digital).
- Collaboration: You (Cursor) write code; Invoke
geminiCLI for assets/drafts. - Testing:
vitest,playwright,axe-core.
For EACH Step, follow the "Verify & Merge Routine":
- Branch:
git checkout -b feature/<step-name> - Work: Implement changes. Delegate asset creation to Gemini CLI.
- Lint & Fix:
pnpm exec eslint . --fix(No semicolons). - Test & Build:
pnpm test(Unit) orpnpm build(Must Pass). - Commit:
git commit -m "feat(<scope>): <message>" - Push:
git push -u origin feature/<step-name> - PR:
gh pr create ... - Merge:
gh pr merge --merge --auto --delete-branch - Sync:
git checkout main && git pull
- Branch:
feature/setup - Action:
- Scaffold repo
vrt-todo-r3& install runtime/test deps. - Setup
.editorconfig,.env(Update Title),vite.config.ts.
- Scaffold repo
- Protocol: Verify & Merge.
- Branch:
feature/database - Action:
- Initialize IndexedDB (
todo-db) with full schema.
- Initialize IndexedDB (
- Protocol: Verify & Merge.
- Branch:
feature/store - Action:
- Implement Store with
todos,searchQuery,viewMode,filter. - Logic:
addTodo,toggleTodo(recurrence),reorderTodos,import/export.
- Implement Store with
- Protocol: Verify & Merge.
- Branch:
feature/assets - Action:
- Execute
geminiCLI with Precision Prompts for the Nook Inc. Theme. - Command 1 (High-Fidelity Mockup):
gemini image generate "High-fidelity mobile UI mockup for 'Nook Todo List' app on iPhone 15 frame. [Theme] Nintendo 'NookPhone' / 'Nook Inc.' aesthetic. [Colors] Signature Nook Mint Green (#1CCD9E) as primary, Clean White (#FFFFFF) cards, Pale Mint background (#F0F8F6). [Typography] Clean, bold sans-serif (Nintendo style), Dark Grey text (#4A4A4A). [Layout] Header with Leaf Icon and 'Nook Todo List' title. Pill-shaped Search Bar with green border. [Content] Task cards are clean white with mint green rounded borders. Priority indicated by colored Nook Leaf icons. [Style] Modern, digital, flat design, vector style, high contrast, app interface." --output public/ui-design-draft.png - Command 2 (Pattern):
gemini image generate "Seamless pattern, very faint Nook Inc. leaf logo pattern on a very pale mint background, minimal, modern, app wallpaper style" --output public/bg-pattern.png - Command 3 (Favicon):
gemini image generate "Minimalist Nook Inc. leaf logo, mint green, circle background, pixel art style, 64x64" --output public/favicon-source.png - Command 4 (OG Image):
gemini image generate "3D render of a NookPhone displaying the Todo List app, resting on a clean white desk with a succulent plant, bright studio lighting, mint green accent" --output public/og-image.png
- Execute
- Protocol: Verify & Merge (Commit:
chore(assets): generate nook inc design drafts).
- Branch:
feature/ui - Action:
- Design Source: Follow
public/ui-design-draft.pngEXACTLY. - Metadata: Set HTML Title to "Nook Todo List".
- Tailwind Config (Nook Inc. Theme):
nook-green:#1CCD9E(Primary Brand Color).nook-bg:#F0F8F6(Pale Mint).nook-card:#FFFFFF(White).nook-text:#4A4A4A(Dark Grey).nook-border:#C8E6DE(Soft Green Border).
- Clean Code Rule (
clsxArray Style):- Use
clsx([...])array syntax with newlines for complex classes.
- Use
- Component Styling:
- Cards:
bg-nook-card,border-2,border-nook-border,rounded-2xl,shadow-sm. - Buttons:
bg-nook-green,text-white,rounded-full,hover:bg-opacity-90. - Tabs: Segmented Control style (iOS style) or clean folder tabs using Nook colors.
- Cards:
- Responsiveness: Mobile-First (Touch target > 44px).
- Design Source: Follow
- Protocol: Verify & Merge.
- Branch:
feature/qa - Action:
- Unit Tests (
vitest) & E2E Tests (playwrightwithaxe-core).
- Unit Tests (
- Protocol: Verify & Merge.
- Branch:
feature/release - Action:
- CI/CD Configuration:
- Create/Update
.github/workflows/deploy.yml. - Preserve Branch Target: Ensure
on: push: branches: ['main'].
- Create/Update
- Cleanup: Remove unused assets.
- CI/CD Configuration:
- Protocol: Verify & Merge.
- Branch:
feature/docs - Action:
- Update
README.md(Title: "Nook Todo List", Design Draft, JSON Format).
- Update
- Protocol: Verify & Merge.
- Project Identity: Ensure app title is "Nook Todo List" everywhere (HTML, README, Navbar).
- Design Vibe: "Clean, Digital, Mint Green" (Not "Cream/Paper"). Think NookPhone App, not DIY Recipe Card.
- Deploy Safety: Do NOT modify the target branch in
deploy.yml. - Class Readability: MANDATORY: Use
clsx([...])array syntax. - Visual Fidelity: Match the Gemini Draft.
- Code Style: No semicolons.
Analyze this plan. If understood, start executing Step 1 immediately.