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.
- package/.claude/agents/agent-backend.md +113 -0
- package/.claude/agents/agent-builder.md +282 -31
- package/.claude/agents/agent-designer.md +267 -11
- package/.claude/agents/agent-director.md +476 -5
- package/.claude/agents/agent-frontend.md +304 -0
- package/.claude/commands/chat.md +234 -10
- package/.claude/commands/create.md +428 -397
- package/.claude/commands/fast.md +156 -51
- package/.claude/commands/onboard.md +361 -100
- package/.claude/commands/one.md +95 -25
- package/.claude/commands/plan.md +367 -137
- package/.claude/commands/push.md +42 -24
- package/.claude/commands/release.md +10 -6
- package/.claude/commands/start.md +45 -0
- package/.claude/hooks/.last-news-context +1 -0
- package/.claude/hooks/README-news-generation.md +364 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/.claude/hooks/push.sh +64 -12
- package/.claude/hooks/release-cli.sh +7 -5
- package/CLAUDE.md +25 -0
- package/one/knowledge/ontology-cheatsheet.md +78 -70
- package/one/knowledge/ontology-developer-guide.md +94 -87
- package/one/knowledge/ontology-index.md +51 -26
- package/one/knowledge/ontology-quickstart.md +58 -50
- package/one/knowledge/ontology-tutorial.md +27 -24
- package/one/knowledge/ontology-video-script.md +90 -59
- package/one/things/plans/multi-ontology-architecture.md +8 -8
- package/one/things/plans/ontology-compliance-audit.md +36 -9
- package/package.json +1 -1
- package/.mcp.json +0 -95
package/.claude/commands/plan.md
CHANGED
|
@@ -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
|
|
67
|
-
1.
|
|
68
|
-
2.
|
|
69
|
-
3.
|
|
70
|
-
4.
|
|
71
|
-
5.
|
|
72
|
-
6.
|
|
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
|
-
##
|
|
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
|
-
|
|
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,
|
|
85
|
-
Cycle 11+: Finally
|
|
150
|
+
Cycle 1-10: Research, planning, build from scratch
|
|
151
|
+
Cycle 11+: Finally deploy something
|
|
86
152
|
```
|
|
87
153
|
|
|
88
|
-
|
|
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
|
-
|
|
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:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
Cycle
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
Cycle
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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 |
|
|
124
|
-
| **Standard** (SaaS tool
|
|
125
|
-
| **Complex** (multi-tenant platform) | N/A |
|
|
126
|
-
| **Enterprise** (full platform) | N/A | 80
|
|
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.
|
|
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 (
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
- Search
|
|
138
|
-
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
**
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
-
|
|
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
|
-
**
|
|
251
|
+
**7. Defer Documentation**
|
|
151
252
|
- Code is documentation (well-named functions)
|
|
152
|
-
-
|
|
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
|
-
**
|
|
171
|
-
**
|
|
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-
|
|
293
|
+
⚡ QUICK WINS (Cycles 1-5)
|
|
176
294
|
|
|
177
|
-
Cycle 1
|
|
178
|
-
✓
|
|
179
|
-
✓
|
|
180
|
-
✓
|
|
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
|
|
183
|
-
✓
|
|
184
|
-
✓
|
|
185
|
-
✓
|
|
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
|
|
189
|
-
✓
|
|
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
|
|
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 (
|
|
319
|
+
📋 FULL PLAN (12 Cycles Total)
|
|
198
320
|
|
|
199
|
-
Phase 1:
|
|
200
|
-
→ agent-director
|
|
321
|
+
Phase 1: Template Discovery (Cycle 1)
|
|
322
|
+
→ agent-director searches templates & validates
|
|
201
323
|
|
|
202
|
-
Phase 2:
|
|
203
|
-
→ agent-frontend
|
|
324
|
+
Phase 2: Template Customization (Cycles 2-5)
|
|
325
|
+
→ agent-frontend copies & customizes templates
|
|
204
326
|
|
|
205
|
-
Phase 3: Enhancement (Cycles
|
|
327
|
+
Phase 3: Enhancement (Cycles 6-9)
|
|
206
328
|
→ agent-frontend adds features (quiz, certificates)
|
|
207
329
|
|
|
208
|
-
Phase 4:
|
|
209
|
-
→ agent-
|
|
330
|
+
Phase 4: Quality & Deploy (Cycles 10-12)
|
|
331
|
+
→ agent-quality tests + agent-ops deploys
|
|
210
332
|
|
|
211
|
-
|
|
212
|
-
→
|
|
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
|
-
-
|
|
223
|
-
- Frontend (Cycles
|
|
224
|
-
-
|
|
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:**
|
|
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.
|
|
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
|
-
###
|
|
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
|
-
###
|
|
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
|
-
-
|
|
287
|
-
- E-commerce →
|
|
288
|
-
-
|
|
289
|
-
-
|
|
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
|
-
###
|
|
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
|
-
###
|
|
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 (
|
|
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:
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
-
|
|
370
|
-
-
|
|
371
|
-
-
|
|
372
|
-
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
- Cycle
|
|
376
|
-
- Cycle
|
|
377
|
-
- Cycle
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
- Cycle
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
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 (
|
|
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:
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
-
|
|
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. **
|
|
467
|
-
2. **
|
|
468
|
-
3. **
|
|
469
|
-
4. **
|
|
470
|
-
5. **
|
|
471
|
-
6. **
|
|
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
|
|