Files
archy/loop/prompt.md
T
DorianandClaude Opus 4.6 9f6158ddd2 chore: prepare automation loop for Plan 2 (M8–M20)
- Add PLAN2.md with 116 tasks across M8–M20 with testing gates
- Populate loop/plan.md with all new tasks (30-attempt retry policy)
- Update loop/prompt.md to enforce glass design system and PLAN2.md
- Fix PassphraseDialog to use glass-card/gradient-button design system
- Fix crypto.randomUUID fallback for non-secure contexts
- Fix dev.sh to skip proxy startup if port 3141 already in use
- Fix PWA manifest for Android A2HS (purpose:any, display_override, id)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 22:29:18 +00:00

2.5 KiB
Raw Blame History

You are executing the AIUI product roadmap autonomously. Read these files first:

  1. loop/plan.md — Your task checklist (mark items - [x] as you complete them)
  2. PLAN2.md — Detailed specs for each task (M8.1, M8.2, etc.)
  3. CLAUDE.md — Project conventions, design system rules, and coding standards
  4. PROGRESS.md — Update the session log after each task

Design System Rules (must follow for every file you touch)

  • Glass morphism only — use .glass, .glass-card, .glass-button, .glass-button-sm, .gradient-button from src/styles/main.css
  • No light-mode conditionals — never use isDark ? pattern. The app is dark-only. Remove any existing light-mode code you encounter.
  • No bg-gray-* or bg-white — use bg-white/5, bg-white/10, bg-black/35 etc.
  • Text opacity scaletext-white/25/40/60/70/80/90/96text-white
  • Accent colourtext-accent (#F7931A), bg-accent/15, border-accent/30 for Bitcoin-orange highlights
  • Touch targets — min 44×44px, 8px gaps between targets
  • Font size — min 16px on all inputs (prevents iOS zoom)
  • Animationsanimate-scale-in, animate-fade-up, animate-fade-in from design system only

For each task in loop/plan.md:

  1. Find the first unchecked - [ ] item
  2. Read the detailed spec from PLAN2.md for that task code (e.g. M8.1)
  3. Implement the feature following the spec and design system rules above
  4. Run pnpm typecheck && pnpm lint — fix all errors before committing
  5. Run pnpm test — fix any failing tests
  6. If the task has a Testing Gate (pnpm test:e2e or specific test file), run it and fix failures
  7. Commit: type(scope): description (conventional commits)
  8. Mark it done - [x] in loop/plan.md
  9. Update PROGRESS.md session log
  10. Move to the next unchecked task immediately

Rules

  • Never skip a testing gate — if tests fail, fix them before moving on
  • If a task is proving difficult, keep trying different approaches. Make at least 30 genuine attempts before giving up and moving on. If you do move on, note the attempt count in the Notes section and leave the task unchecked.
  • Always run typecheck + lint after every code change
  • Keep initial bundle < 250 KB gzipped — lazy-load anything heavy (PDF viewer, Mermaid, KaTeX, etc.)
  • Bitcoin only — never altcoins, never fiat payment flows
  • Privacy first — no external analytics calls, no telemetry
  • Do not stop until all tasks are checked or you are rate limited