oneie 3.6.28 → 3.6.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,51 +63,133 @@
63
63
 
64
64
  **Pre-built plans load instantly** from `web/src/content/plans/` with optimized cycle counts and quick wins already defined.
65
65
 
66
- **Custom plans** take 30 seconds to generate and follow the same optimization:
67
- 1. Validates against 6-dimension ontology
68
- 2. Determines frontend-only vs backend architecture
69
- 3. Identifies quick wins for Cycles 1-10
70
- 4. Optimizes total cycle count (aim for 30-60, not 100)
71
- 5. Assigns specialists automatically
72
- 6. Shows parallel execution opportunities
66
+ **Custom plans** take 30 seconds to generate and follow template-first optimization:
67
+ 1. **Searches for existing templates** in /web/src/pages/ (save 50-80% cycles)
68
+ 2. Validates against 6-dimension ontology
69
+ 3. Determines frontend-only vs backend architecture
70
+ 4. Identifies quick wins for Cycles 1-5 (with templates)
71
+ 5. Optimizes total cycle count (aim for 4-15 with templates, 30-60 from scratch)
72
+ 6. Assigns specialists automatically
73
+ 7. Shows parallel execution opportunities
74
+ 8. Suggests Stripe integration as follow-up (if e-commerce detected)
73
75
 
74
76
  ---
75
77
 
76
- ## Quick Win Optimization (Cycles 1-10)
78
+ ## Template Catalog
79
+
80
+ **Available templates in /web/src/pages/ (60+ templates):**
81
+
82
+ ### Marketing & Sales Templates
83
+ - `landing.astro` - Product landing pages (hero, features, pricing, CTA, contact)
84
+ - `enterprise.astro` - B2B/enterprise landing page variant
85
+ - `features1.astro`, `features2.astro` - Feature comparison pages
86
+ - `contact.astro` - Contact form with validation
87
+ - `thankyou-product.astro` - Thank you pages after purchase
88
+
89
+ ### E-commerce Templates
90
+ - `shop.astro` - Full e-commerce with cart + Stripe integration
91
+ - `products/index.astro` - Product listing page
92
+ - `products/[slug].astro` - Dynamic product detail pages
93
+ - `checkout-stripe.astro` - Complete Stripe payment flow
94
+ - `checkout.astro` - Generic checkout page
95
+ - `cart.astro` - Shopping cart page
96
+ - `download.astro` - Digital download delivery
97
+
98
+ ### Content Templates
99
+ - `blog/index.astro` - Blog listing page
100
+ - `blog/[...slug].astro` - Blog post detail pages
101
+ - `page.astro` - Generic content pages (63KB, full-featured)
102
+ - `news/` - News/article pages
103
+ - `docs/` - Documentation pages
104
+
105
+ ### Application Templates
106
+ - `dashboard/` - Dashboard layout
107
+ - `account/` - User account pages
108
+ - `app/` - Application pages
109
+ - `onboard/` - Onboarding flow
110
+ - `signup-choice.astro` - Registration selection page
111
+
112
+ ### Specialty Templates
113
+ - `components.astro` - Component showcase/library
114
+ - `ontology.astro` - System documentation
115
+ - `design.astro` - Design system pages
116
+ - `deploy.astro` - Deployment pages
117
+ - `videos.astro`, `test-videos.astro` - Video platform pages
118
+
119
+ ### Integration Templates
120
+ - `pay-course.astro`, `pay-playbook.astro` - Payment pages for specific products
121
+ - `thankyou-course.astro`, `thankyou-playbook.astro` - Post-purchase pages
122
+ - `mail.astro` - Email template pages
123
+ - `install.astro` - Installation/setup pages
124
+ - `readme.astro` - README rendering pages
125
+
126
+ **Template Usage Strategy:**
127
+ 1. Search for closest match in catalog (Cycle 1)
128
+ 2. Copy template to new location (Cycle 1)
129
+ 3. Customize content and styling (Cycles 2-3)
130
+ 4. Deploy and test (Cycle 4)
131
+ 5. Enhance as needed (Cycles 5+)
132
+
133
+ **Typical Cycle Savings:**
134
+ - Landing page: 4 cycles (vs 8 from scratch) = 50% savings
135
+ - E-commerce: 12 cycles (vs 28 from scratch) = 57% savings
136
+ - Product pages: 2 cycles (vs 8 from scratch) = 75% savings
137
+ - Stripe checkout: 3 cycles (vs 15 from scratch) = 80% savings
138
+ - Blog: 5 cycles (vs 12 from scratch) = 58% savings
77
139
 
78
- **CRITICAL:** First 10 cycles must deliver visible progress.
140
+ ---
141
+
142
+ ## Quick Win Optimization (Cycles 1-5)
143
+
144
+ **CRITICAL:** First 5 cycles must deliver visible progress with template-first approach.
79
145
 
80
146
  ### Quick Win Strategy
81
147
 
82
- **❌ Old approach (slow start):**
148
+ **❌ Old approach (slow start, no templates):**
83
149
  ```
84
- Cycle 1-10: Research, planning, documentation, meetings
85
- Cycle 11+: Finally start coding
150
+ Cycle 1-10: Research, planning, build from scratch
151
+ Cycle 11+: Finally deploy something
86
152
  ```
87
153
 
88
- **✅ New approach (fast start):**
154
+ **❌ Old approach (fast start, from scratch):**
89
155
  ```
90
156
  Cycle 1-3: Validate idea, map to ontology, decide architecture
91
157
  Cycle 4-7: Build ONE working feature (end-to-end)
92
158
  Cycle 8-10: Deploy to staging, show something real
93
159
  ```
94
160
 
95
- ### Example: Course Platform
161
+ **✅ New approach (template-first, ultra-fast):**
162
+ ```
163
+ Cycle 1: Search templates + validate idea + map to ontology
164
+ Cycle 2: Copy closest template + customize structure
165
+ Cycle 3: Update content + styling
166
+ Cycle 4: Deploy to staging, show something real
167
+ Cycle 5: QA + production deploy
168
+ ```
169
+
170
+ ### Example: Course Platform (Template-First)
96
171
 
97
172
  **Quick Win Path:**
98
173
  ```
99
- Cycle 1: Validate idea → Maps to Things (course), Connections (enrolled_in), Events (completed)
100
- Cycle 2: Frontend-only decision (no backend needed for MVP)
101
- Cycle 3: Create basic course list page (Astro SSR)
102
- Cycle 4: Add course detail page (static content)
103
- Cycle 5: Implement course navigation (prev/next lessons)
104
- Cycle 6: Add progress tracking (localStorage)
105
- Cycle 7: Style with Tailwind (make it beautiful)
106
- Cycle 8: Deploy to Cloudflare Pages
107
- Cycle 9: Test end-to-end (QA pass)
108
- Cycle 10: ✅ WORKING COURSE PLATFORM LIVE
109
-
110
- Result: 10 cycles → MVP shipped
174
+ Cycle 1: Search /web/src/pages/ → Found page.astro (generic content template)
175
+ Validate idea → Maps to Things (course), Connections (enrolled_in), Events (completed)
176
+ Frontend-only decision (no backend needed for MVP)
177
+
178
+ Cycle 2: Copy page.astro → course/[slug].astro
179
+ Add lesson navigation component structure
180
+ Configure routing for dynamic course pages
181
+
182
+ Cycle 3: Add sample course content (3 lessons)
183
+ Implement progress tracking with localStorage
184
+ Style lesson player with Tailwind
185
+
186
+ Cycle 4: Deploy to Cloudflare Pages
187
+ Test course navigation flow
188
+ Verify progress persistence
189
+
190
+ Cycle 5: ✅ WORKING COURSE PLATFORM LIVE
191
+
192
+ Result: 5 cycles → MVP shipped (vs 10 cycles from scratch = 50% faster!)
111
193
  ```
112
194
 
113
195
  ---
@@ -116,40 +198,60 @@ Result: 10 cycles → MVP shipped
116
198
 
117
199
  **Golden Rule:** Use the minimum cycles needed. If MVP can ship in 30 cycles, don't plan 100.
118
200
 
119
- ### Cycle Budget Guidelines
201
+ ### Cycle Budget Guidelines (Updated for Template-First)
120
202
 
121
- | Feature Complexity | Frontend-Only | Backend + Frontend | Notes |
122
- |-------------------|---------------|-------------------|-------|
123
- | **Simple** (landing page, blog) | 5-15 cycles | N/A | Astro static pages only |
124
- | **Standard** (SaaS tool, e-commerce) | 15-30 cycles | 30-50 cycles | Most products fit here |
125
- | **Complex** (multi-tenant platform) | N/A | 50-80 cycles | Groups, events, real-time |
126
- | **Enterprise** (full platform) | N/A | 80-100 cycles | All 6 dimensions, integrations |
203
+ | Feature Complexity | Frontend-Only (Template) | Frontend-Only (Scratch) | Backend + Frontend | Notes |
204
+ |-------------------|-------------------------|------------------------|-------------------|-------|
205
+ | **Simple** (landing page, blog) | 4-8 cycles | 5-15 cycles | N/A | Copy template, customize content |
206
+ | **Standard** (e-commerce, SaaS tool) | 8-15 cycles | 15-30 cycles | 20-35 cycles | Reuse shop/checkout templates |
207
+ | **Complex** (multi-tenant platform) | N/A | N/A | 35-60 cycles | Groups, events, real-time |
208
+ | **Enterprise** (full platform) | N/A | N/A | 60-80 cycles | All 6 dimensions, integrations |
209
+
210
+ **Template Impact:** Using existing templates reduces cycles by 50-80% for frontend work.
127
211
 
128
212
  ### How to Minimize Cycles
129
213
 
130
- **1. Start Frontend-Only (Default)**
214
+ **1. ALWAYS Search for Templates First (Critical!)**
215
+ - Check /web/src/pages/ before building anything (save 50-80% cycles)
216
+ - Landing page? Copy landing.astro (4 cycles vs 8 from scratch)
217
+ - E-commerce? Copy shop.astro (12 cycles vs 28 from scratch)
218
+ - Product pages? Copy products/[slug].astro (2 cycles vs 8 from scratch)
219
+ - Stripe checkout? Copy checkout-stripe.astro (3 cycles vs 15 from scratch)
220
+ - Template discovery = Cycle 1, always
221
+
222
+ **2. Start Frontend-Only (Default)**
131
223
  - No backend = 50% fewer cycles
132
224
  - Add backend later if needed
133
- - Example: E-commerce with Stripe.js (15 cycles vs 40 with backend)
134
-
135
- **2. Use Existing Patterns**
136
- - Replicate proven components (5 cycles vs 20 from scratch)
137
- - Search codebase first: `grep -r "feature-name" /web/src/`
138
- - Extend existing code vs new implementation
139
-
140
- **3. Skip Non-Essential Features**
225
+ - Example: E-commerce with Stripe.js (12 cycles vs 35 with backend)
226
+ - Templates make frontend-only even faster (4-12 cycles)
227
+
228
+ **3. Reuse Existing Components**
229
+ - Search /web/src/components/ for reusable UI (save 5-10 cycles)
230
+ - Don't rebuild hero sections, pricing tables, forms
231
+ - Copy + customize > build from scratch
232
+ - Example: Contact form component exists (1 cycle vs 5 from scratch)
233
+
234
+ **4. Copy Integration Patterns**
235
+ - Stripe integration exists in checkout-stripe.astro (copy it!)
236
+ - Auth patterns exist in account/ pages (copy them!)
237
+ - Form handling exists in contact.astro (copy it!)
238
+ - Don't reinvent the wheel for common integrations
239
+
240
+ **5. Skip Non-Essential Features**
141
241
  - MVP = core value only
142
242
  - Nice-to-have → Future cycles
143
243
  - Example: Ship without admin dashboard (save 15 cycles)
144
244
 
145
- **4. Maximize Parallelization**
146
- - Design + Frontend can run simultaneously
147
- - Backend + Tests can run simultaneously
148
- - Example: 60 sequential cycles → 35 with parallelization
245
+ **6. Maximize Parallelization**
246
+ - Template search + Ontology validation (run simultaneously)
247
+ - Frontend + Content creation (run simultaneously)
248
+ - Backend + Tests (run simultaneously)
249
+ - Example: 12 sequential cycles → 7 days with parallelization
149
250
 
150
- **5. Defer Documentation**
251
+ **7. Defer Documentation**
151
252
  - Code is documentation (well-named functions)
152
- - Write docs in cycle 95-100 (not 1-10)
253
+ - Templates are self-documenting (copy working examples)
254
+ - Write docs in final cycles (not 1-10)
153
255
  - Focus on shipping first
154
256
 
155
257
  ---
@@ -167,63 +269,94 @@ After typing `/plan [idea]`, you'll see:
167
269
 
168
270
  **Idea:** Course platform with AI tutors
169
271
  **Architecture:** Frontend-only → Backend (add later if needed)
170
- **Total Cycles:** 28 (optimized from 100)
171
- **Quick Wins:** Cycle 8 (working MVP deployed)
272
+ **Template Found:** ✅ page.astro + components (reusable)
273
+ **Total Cycles:** 12 (optimized from 28 via templates)
274
+ **Quick Wins:** Cycle 5 (working MVP deployed)
275
+ **Cycle Savings:** 16 cycles saved through template reuse
276
+
277
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
278
+
279
+ 📦 TEMPLATES AVAILABLE
280
+
281
+ ✅ landing.astro - Product landing pages (hero, features, pricing)
282
+ ✅ shop.astro - E-commerce with cart + Stripe
283
+ ✅ checkout-stripe.astro - Payment flow ready
284
+ ✅ products/[slug].astro - Dynamic product pages
285
+ ✅ blog/[...slug].astro - Blog/article pages
286
+ ✅ page.astro - Generic content pages
287
+ ✅ contact.astro - Contact forms
288
+
289
+ Strategy: Copy templates (Cycle 1) → Customize (Cycles 2-3) → Deploy (Cycle 4)
172
290
 
173
291
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
174
292
 
175
- ⚡ QUICK WINS (Cycles 1-10)
293
+ ⚡ QUICK WINS (Cycles 1-5)
176
294
 
177
- Cycle 1-3: Foundation & validation (3 cycles)
178
- ✓ Validate against ontology
179
- ✓ Map entities (course, lesson, progress)
180
- ✓ Choose frontend-only architecture
295
+ Cycle 1: Template discovery & validation
296
+ ✓ Search /web/src/pages/ for reusable templates
297
+ ✓ Found page.astro + lesson components
298
+ ✓ Validate against ontology (Things: course, lesson)
181
299
 
182
- Cycle 4-7: Build core feature (4 cycles)
183
- ✓ Course list page (Astro SSR)
184
- ✓ Course detail page (lesson player)
185
- ✓ Progress tracking (localStorage)
186
- ✓ Navigation (prev/next lessons)
300
+ Cycle 2-3: Copy & customize template (2 cycles)
301
+ ✓ Copy page.astro → course/[slug].astro
302
+ ✓ Add lesson navigation components
303
+ ✓ Add progress tracking (localStorage)
187
304
 
188
- Cycle 8-10: Deploy MVP (3 cycles)
189
- ✓ Style with Tailwind
305
+ Cycle 4: Content & styling
306
+ ✓ Add sample course content
307
+ ✓ Customize Tailwind styles
308
+
309
+ Cycle 5: Deploy MVP
190
310
  ✓ Deploy to Cloudflare Pages
191
311
  ✓ Test end-to-end
192
312
 
193
- 🎯 **Cycle 10 Milestone:** Working course platform live at [your-domain].pages.dev
313
+ 🎯 **Cycle 5 Milestone:** Working course platform live (vs 10 cycles from scratch!)
314
+
315
+ 💡 Template reuse savings: 5 cycles saved on page structure + components
194
316
 
195
317
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
196
318
 
197
- 📋 FULL PLAN (28 Cycles Total)
319
+ 📋 FULL PLAN (12 Cycles Total)
198
320
 
199
- Phase 1: Foundation (Cycles 1-3)
200
- → agent-director validates & plans
321
+ Phase 1: Template Discovery (Cycle 1)
322
+ → agent-director searches templates & validates
201
323
 
202
- Phase 2: Core Feature (Cycles 4-10)
203
- → agent-frontend builds pages & components
324
+ Phase 2: Template Customization (Cycles 2-5)
325
+ → agent-frontend copies & customizes templates
204
326
 
205
- Phase 3: Enhancement (Cycles 11-20)
327
+ Phase 3: Enhancement (Cycles 6-9)
206
328
  → agent-frontend adds features (quiz, certificates)
207
329
 
208
- Phase 4: Backend (Cycles 21-25) [If needed later]
209
- → agent-backend adds groups, events, multi-user
330
+ Phase 4: Quality & Deploy (Cycles 10-12)
331
+ → agent-quality tests + agent-ops deploys
210
332
 
211
- Phase 5: Quality (Cycles 26-27)
212
- → agent-quality runs tests, validates
213
-
214
- Phase 6: Deploy (Cycle 28)
215
- → agent-ops ships to production
333
+ [Future: Backend Phase]
334
+ → Cycle 13-18: Add backend if needed (groups, events, multi-user)
335
+ → Cycle 19-20: Integrate Stripe subscriptions
216
336
 
217
337
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
218
338
 
219
339
  ⚡ PARALLEL OPPORTUNITIES
220
340
 
221
341
  These cycles can run simultaneously:
222
- - Design (Cycles 4-7) + Backend (if added later)
223
- - Frontend (Cycles 8-15) + Tests (Cycles 8-15)
224
- - Documentation (Cycles 20+) + Optimization (Cycles 20+)
342
+ - Template search (Cycle 1) + Ontology validation (Cycle 1)
343
+ - Frontend customization (Cycles 2-4) + Content creation (Cycles 2-4)
344
+ - Enhancement (Cycles 6-9) + Testing (Cycles 6-9)
225
345
 
226
- **Time Savings:** 28 sequential cycles → 18 days with parallelization
346
+ **Time Savings:** 12 sequential cycles → 7 days with parallelization
347
+
348
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
349
+
350
+ 🔌 FOLLOW-UP INTEGRATIONS
351
+
352
+ Stripe Integration (if e-commerce detected):
353
+ ✅ Template exists: checkout-stripe.astro
354
+ → Cycle 13-15: Copy template + configure keys + test payments (3 cycles)
355
+ 💡 Consider adding: Subscription support, usage-based billing
356
+
357
+ Backend Migration (if needed later):
358
+ → Cycles 16-20: Add Convex backend for multi-user/real-time (5 cycles)
359
+ → Preserves frontend work, adds persistence layer
227
360
 
228
361
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
229
362
 
@@ -249,7 +382,38 @@ These cycles can run simultaneously:
249
382
 
250
383
  The plan generator uses these rules:
251
384
 
252
- ### 1. Ontology Validation (Cycle 1)
385
+ ### 1. Template Discovery (Cycle 1)
386
+ ```
387
+ BEFORE planning from scratch, search for existing templates:
388
+
389
+ Search locations:
390
+ - /web/src/pages/*.astro (60+ page templates)
391
+ - /web/src/pages/[category]/ (shop, products, blog, features, etc.)
392
+ - /web/src/components/ (reusable UI components)
393
+
394
+ Common templates available:
395
+ - landing.astro - Product landing pages (hero, features, pricing, CTA)
396
+ - shop.astro - E-commerce with cart + Stripe integration
397
+ - products/[slug].astro - Dynamic product detail pages
398
+ - blog/[...slug].astro - Article/blog post pages
399
+ - page.astro - Generic content pages
400
+ - checkout-stripe.astro - Payment flow with Stripe
401
+ - components.astro - Component showcase page
402
+ - features1.astro, features2.astro - Feature comparison pages
403
+ - enterprise.astro - Enterprise/B2B landing page
404
+ - contact.astro - Contact form page
405
+
406
+ Template matching strategy:
407
+ 1. User wants "product landing" → Copy landing.astro
408
+ 2. User wants "e-commerce" → Copy shop.astro + products/
409
+ 3. User wants "blog" → Copy blog/ directory
410
+ 4. User wants "checkout flow" → Copy checkout-stripe.astro
411
+ 5. NO matching template → Build from scratch (slower)
412
+
413
+ Goal: Reuse 80% of code, customize 20%
414
+ ```
415
+
416
+ ### 2. Ontology Validation (Cycle 2)
253
417
  ```
254
418
  Question: Does this map to 6 dimensions?
255
419
  - Identify Groups (multi-tenant? hierarchical?)
@@ -263,37 +427,59 @@ If unclear → Ask clarifying questions
263
427
  If invalid → Suggest reframing
264
428
  ```
265
429
 
266
- ### 2. Architecture Decision (Cycle 2)
430
+ ### 3. Architecture Decision (Cycle 3)
267
431
  ```
268
432
  Frontend-only if:
269
433
  - Single user OR third-party auth
270
434
  - Static content OR localStorage sufficient
271
435
  - Payments via Stripe.js
272
436
  - No real-time collaboration
437
+ - Template exists (copy and customize)
273
438
 
274
439
  Backend needed if:
275
440
  - Multi-tenant groups
276
441
  - Real-time sync
277
442
  - Immutable event log
278
443
  - Vector embeddings (RAG)
444
+ - User-generated content (UGC)
445
+
446
+ Template-first benefits:
447
+ - Frontend-only + template = 5-15 cycles (vs 20-40 from scratch)
448
+ - Copy existing Stripe integration (save 10 cycles)
449
+ - Reuse existing components (save 15 cycles)
279
450
  ```
280
451
 
281
- ### 3. Quick Win Identification (Cycle 3)
452
+ ### 4. Quick Win Identification (Cycle 4)
282
453
  ```
283
454
  Quick Win = Smallest shippable feature showing core value
284
455
 
456
+ Template-first quick wins:
457
+ - Copy template (Cycle 1) → Customize content (Cycle 2-3) → Deploy (Cycle 4)
458
+ - Result: 4 cycles to working MVP (vs 10+ from scratch)
459
+
285
460
  Examples:
286
- - Course platform → One playable course
287
- - E-commerce → One purchasable product
288
- - SaaS tool → One working workflow
289
- - Blog → Five published posts
461
+ - Product landing → Copy landing.astro → Edit copy → Deploy (4 cycles)
462
+ - E-commerce → Copy shop.astro → Add products → Deploy (6 cycles)
463
+ - Blog → Copy blog/ → Add 3 posts → Deploy (5 cycles)
464
+ - Course platform → Copy existing + localStorage → Deploy (8 cycles)
465
+ - SaaS tool → No template → Build from scratch (15+ cycles)
290
466
 
291
- Goal: Cycle 10 = Something live and usable
467
+ Goal: Cycle 5-10 = Something live and usable
292
468
  ```
293
469
 
294
- ### 4. Cycle Budget Allocation
470
+ ### 5. Cycle Budget Allocation
295
471
  ```
296
- Frontend-only:
472
+ Frontend-only (with template):
473
+ Template Discovery: 1 cycle (8%)
474
+ Template Copy: 1 cycle (8%)
475
+ Customization: 3 cycles (25%)
476
+ Content: 2 cycles (17%)
477
+ Testing: 2 cycles (17%)
478
+ Deploy: 1 cycle (8%)
479
+ Enhancement: 2 cycles (17%)
480
+ Total: 12 cycles
481
+
482
+ Frontend-only (from scratch):
297
483
  Foundation: 3 cycles (10%)
298
484
  Core Feature: 7 cycles (25%)
299
485
  Enhancements: 10 cycles (35%)
@@ -301,7 +487,18 @@ Frontend-only:
301
487
  Deploy: 3 cycles (12%)
302
488
  Total: 28 cycles
303
489
 
304
- Backend + Frontend:
490
+ Backend + Frontend (with template):
491
+ Template Discovery: 1 cycle (3%)
492
+ Template Copy: 1 cycle (3%)
493
+ Backend Schema: 5 cycles (14%)
494
+ Backend Logic: 8 cycles (23%)
495
+ Frontend Custom: 5 cycles (14%)
496
+ Integration: 6 cycles (17%)
497
+ Quality: 5 cycles (14%)
498
+ Deploy: 4 cycles (12%)
499
+ Total: 35 cycles
500
+
501
+ Backend + Frontend (from scratch):
305
502
  Foundation: 3 cycles (6%)
306
503
  Backend Schema: 5 cycles (10%)
307
504
  Backend Logic: 8 cycles (16%)
@@ -311,9 +508,15 @@ Backend + Frontend:
311
508
  Deploy: 5 cycles (10%)
312
509
  Documentation: 3 cycles (6%)
313
510
  Total: 50 cycles
511
+
512
+ Stripe Integration (template exists):
513
+ Copy checkout-stripe.astro: 1 cycle
514
+ Configure Stripe keys: 1 cycle
515
+ Test payment flow: 1 cycle
516
+ Total: 3 cycles (vs 10-15 from scratch)
314
517
  ```
315
518
 
316
- ### 5. Parallelization Mapping
519
+ ### 6. Parallelization Mapping
317
520
  ```
318
521
  Identify independent work streams:
319
522
  - Design + Backend (no dependencies)
@@ -357,32 +560,47 @@ Calculate time savings:
357
560
 
358
561
  ## Example Plans
359
562
 
360
- ### Example 1: E-commerce Store (Frontend-Only)
563
+ ### Example 1: E-commerce Store (Template-First)
361
564
 
362
565
  **Input:** `/plan E-commerce store for digital fonts`
363
566
 
364
567
  **Output:**
365
568
  ```
366
- 🚀 Plan: 22 cycles (frontend-only)
367
-
368
- Quick Wins (Cycles 1-8):
369
- - Cycle 1-2: Validate + architect
370
- - Cycle 3-5: Product list + detail pages
371
- - Cycle 6-7: Stripe Checkout integration
372
- - Cycle 8: Deploy MVP
373
-
374
- Enhancement (Cycles 9-18):
375
- - Cycle 9-12: Cart system (localStorage)
376
- - Cycle 13-15: Download management
377
- - Cycle 16-18: Admin dashboard
378
-
379
- Quality & Deploy (Cycles 19-22):
380
- - Cycle 19-20: Testing
381
- - Cycle 21: Performance optimization
382
- - Cycle 22: Production deploy
383
-
384
- ✅ Cycle 8: Customers can buy fonts
385
- 🎯 Cycle 22: Full-featured store live
569
+ 🚀 Plan: 12 cycles (frontend-only, template-first)
570
+
571
+ Phase 1: Template Discovery (Cycle 1)
572
+ - Search /web/src/pages/ for e-commerce templates
573
+ - ✅ FOUND: shop.astro (cart + Stripe integration)
574
+ - ✅ FOUND: products/[slug].astro (product detail pages)
575
+ - ✅ FOUND: checkout-stripe.astro (payment flow)
576
+
577
+ Quick Wins (Cycles 2-6):
578
+ - Cycle 2: Copy shop.astro → fonts-store.astro
579
+ - Cycle 3: Copy products/ → customize for fonts
580
+ - Cycle 4: Add font preview components
581
+ - Cycle 5: Configure Stripe (copy existing keys pattern)
582
+ - Cycle 6: Deploy MVP
583
+
584
+ Enhancement (Cycles 7-10):
585
+ - Cycle 7: Add font filtering/search
586
+ - Cycle 8: Improve cart UX
587
+ - Cycle 9: Add download management
588
+ - Cycle 10: Style customization
589
+
590
+ Quality & Deploy (Cycles 11-12):
591
+ - Cycle 11: Testing + QA
592
+ - Cycle 12: Production deploy
593
+
594
+ ✅ Cycle 6: Customers can buy fonts (template reuse saves 16 cycles!)
595
+ 🎯 Cycle 12: Full-featured store live
596
+
597
+ 💡 Template savings:
598
+ - Stripe integration: 10 cycles saved
599
+ - Cart system: 4 cycles saved
600
+ - Product pages: 2 cycles saved
601
+ - Total: 16 cycles saved (28 → 12)
602
+
603
+ 💡 Stripe follow-up: If backend needed later, add subscription support (5 cycles)
386
604
  ```
387
605
 
388
606
  ### Example 2: SaaS Platform (Backend + Frontend)
@@ -415,29 +633,38 @@ Polish (Cycles 31-45):
415
633
  🎯 Cycle 45: Full collaboration platform
416
634
  ```
417
635
 
418
- ### Example 3: Landing Page (Minimal)
636
+ ### Example 3: Landing Page (Template-First, Ultra-Fast)
419
637
 
420
638
  **Input:** `/plan Landing page for SaaS product`
421
639
 
422
640
  **Output:**
423
641
  ```
424
- 🚀 Plan: 8 cycles (frontend-only, minimal)
425
-
426
- Cycles 1-2: Validate + content structure
427
- Cycle 3: Hero section + CTA
428
- Cycle 4: Features section
429
- Cycle 5: Pricing section
430
- Cycle 6: Contact form (Formspree)
431
- Cycle 7: Style + responsive design
432
- Cycle 8: Deploy to Cloudflare Pages
433
-
434
- ✅ Cycle 8: Landing page live
435
-
436
- 💡 Tip: This could be done in 8 cycles because:
437
- - No backend needed
438
- - Static content
439
- - Third-party form handling
440
- - Existing patterns (hero, pricing, form)
642
+ 🚀 Plan: 4 cycles (frontend-only, template-first)
643
+
644
+ Phase 1: Template Discovery (Cycle 1)
645
+ - Search /web/src/pages/ for landing page templates
646
+ - ✅ FOUND: landing.astro (hero, features, pricing, CTA, contact)
647
+ - ✅ FOUND: enterprise.astro (B2B landing variant)
648
+ - Template has: Hero + Features + Pricing + Contact form
649
+
650
+ Quick Wins (Cycles 2-4):
651
+ - Cycle 2: Copy landing.astro → saas-product.astro
652
+ - Cycle 3: Customize copy, images, pricing tiers
653
+ - Cycle 4: Deploy to Cloudflare Pages
654
+
655
+ ✅ Cycle 4: Landing page live (4 cycles vs 8 from scratch!)
656
+
657
+ 💡 Template savings:
658
+ - Hero section: 1 cycle saved
659
+ - Features section: 1 cycle saved
660
+ - Pricing section: 1 cycle saved
661
+ - Contact form: 1 cycle saved
662
+ - Total: 4 cycles saved (8 → 4)
663
+
664
+ 💡 Follow-up enhancements (optional):
665
+ - Cycle 5-6: Add Stripe payment integration (if ready to sell)
666
+ - Cycle 7: Add email capture (ConvertKit/Mailchimp)
667
+ - Cycle 8: A/B testing setup
441
668
  ```
442
669
 
443
670
  ---
@@ -463,12 +690,15 @@ Mark current cycle complete, capture lessons
463
690
 
464
691
  ## Key Principles
465
692
 
466
- 1. **Default to minimum cycles** - Start with smallest viable plan
467
- 2. **Quick wins in first 10 cycles** - Show progress early
468
- 3. **Frontend-only by default** - Add backend only when necessary
469
- 4. **Parallelize aggressively** - Run independent work simultaneously
470
- 5. **Ship early, enhance later** - MVP first, features follow
471
- 6. **Learn from previous plans** - Refine cycle estimates over time
693
+ 1. **Template-first always** - Search /web/src/pages/ before building anything
694
+ 2. **Default to minimum cycles** - Start with smallest viable plan (templates reduce by 50-80%)
695
+ 3. **Quick wins in first 5 cycles** - Show progress early (copy → customize → deploy)
696
+ 4. **Frontend-only by default** - Add backend only when necessary (templates make this even faster)
697
+ 5. **Reuse integrations** - Copy Stripe, auth, forms from existing pages
698
+ 6. **Parallelize aggressively** - Run independent work simultaneously
699
+ 7. **Ship early, enhance later** - MVP first, features follow
700
+ 8. **Follow-up Stripe** - If e-commerce detected, suggest Stripe as next cycle
701
+ 9. **Learn from templates** - Each template saves 5-20 cycles vs from scratch
472
702
 
473
703
  ---
474
704