oneie 3.6.30 → 3.6.33

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.
@@ -1,538 +1,544 @@
1
- # /create - Create New Features & Projects
1
+ # /create - Template-First Feature Creation
2
2
 
3
- 🚀 **Create features using AI specialists. Cycle-based planning, 100-cycle execution.**
3
+ **Build features in minutes, not hours. Copy existing templates, customize, ship.**
4
4
 
5
- ## Quick Start
5
+ ---
6
+
7
+ ## Quick Start: Tell Me What You Want
8
+
9
+ When you type `/create`, just tell me what you want to build:
6
10
 
7
- **First time?** Start with onboarding to extract your brand:
8
- ```bash
9
- /onboard # Analyze website & extract brand identity
11
+ ```
12
+ "I want to create a page that sells a product"
13
+ "I need a landing page for my course"
14
+ "Build me a checkout page with Stripe"
15
+ "I want a portfolio gallery"
10
16
  ```
11
17
 
12
- **Ready to build?** Choose your approach:
13
- ```bash
14
- /create # Start feature wizard (guided mode)
15
- /create [feature-name] # Create specific feature
16
- /create backend [feature-name] # Create with backend (explicit)
17
- /create help # Show help
18
- ```
19
-
20
- ## Feature Types & Cycle Counts
21
-
22
- ### 1. Frontend Feature
23
- **Build UI components & pages using existing /web infrastructure**
24
- - Reuse proven components from shadcn/ui + Astro
25
- - Customize styling, layout, content
26
- - No backend changes needed
27
- - **Cycles:** 20-40 cycles
28
-
29
- **Examples:**
30
- - Page redesigns (landing, shop, portfolio)
31
- - Component enhancements (cards, galleries, forms)
32
- - Content collections (blog, courses)
33
-
34
- ### 2. Custom Backend Service
35
- **Build new backend logic with database schema changes**
36
- - Design database schema (groups, things, connections)
37
- - Implement Convex mutations/queries
38
- - Create Effect.ts services
39
- - Build frontend for new functionality
40
- - **Cycles:** 60-90 cycles
41
-
42
- **Examples:**
43
- - AI tutors, token economy, analytics
44
- - Enrollment systems, billing, member tiers
45
- - Custom workflows, integrations
46
-
47
- ### 3. Integration
48
- **Connect external services or protocols**
49
- - API integrations, webhooks
50
- - Third-party services (payment, email, etc.)
51
- - Protocol implementations
52
- - **Cycles:** 30-60 cycles
53
-
54
- ### 4. Custom Feature
55
- **Something else - describe what you need**
56
- - Special requirements, specific tech
57
- - Hybrid approaches, novel combinations
58
- - **Cycles:** Variable
18
+ **I'll handle the rest:**
19
+ 1. 🔍 Search for existing templates
20
+ 2. 📋 Copy the best match
21
+ 3. ✨ Customize for your needs
22
+ 4. 🚀 Ask what you want to add next
23
+
24
+ **No planning. No complexity. Just fast, conversational feature building.**
59
25
 
60
26
  ---
61
27
 
62
- ## What's Already Built
28
+ ## The Template-First Approach
63
29
 
64
- Based on your cycle.json state (Cycle 100/100 complete):
30
+ **CRITICAL RULE:** Before building ANYTHING new, search for existing templates.
65
31
 
66
- **Current Feature:** New Feature
67
- **Organization:** Default Org
68
- **Role:** platform_owner
69
- **Status:** ✅ Complete (100 cycles executed)
32
+ ### Step 1: Understanding Your Request
70
33
 
71
- **Lessons Learned:** 100+ successful cycle cycles documented
34
+ When you say "I want to create a page that sells a [product]", I automatically:
72
35
 
73
- To start a NEW feature, run:
74
- ```bash
75
- /create [new-feature-name] # Begin new 100-cycle plan
76
- /reset # Start fresh (clears current state)
77
- ```
36
+ 1. **Search for templates:**
37
+ - Product landing pages: `/web/src/pages/shop/*.astro`
38
+ - Similar pages: `/web/src/pages/**/*.astro`
39
+ - Reusable components: `/web/src/components/**/*.tsx`
78
40
 
79
- ---
41
+ 2. **Pick the best template:**
42
+ - **Product landing?** → `/web/src/pages/shop/product-landing.astro`
43
+ - **Course landing?** → Search for course pages
44
+ - **Service landing?** → Search for service pages
45
+ - **Custom?** → Find closest match
80
46
 
81
- ## Ready-to-Build Projects (Optimized Plans Available)
47
+ 3. **Copy and customize:**
48
+ - Create your new page from template
49
+ - Swap product data
50
+ - Update branding
51
+ - Keep proven structure
82
52
 
83
- **Use `/plan [project]` to see full optimized plan, or `/create [project]` to start building:**
53
+ ### Step 2: Interactive Refinement
54
+
55
+ After creating your page, I'll ask:
84
56
 
85
- ### 1. Blog (30 cycles · Frontend-only)
86
- ```bash
87
- /plan blog # See full plan with quick wins
88
- /create blog # Start building article publishing system
89
- /fast blog-post # Quick: Create single blog post page
90
57
  ```
91
- **Features:** Article publishing, categories, tags, search, RSS, SEO
92
- **Quick Win:** Working blog by Cycle 3, MVP by Cycle 10
93
- **Architecture:** Frontend-only (Astro content collections)
58
+ ✅ Your product landing page is ready at /shop/your-product!
94
59
 
95
- ### 2. Pages (20 cycles · Frontend-only)
96
- ```bash
97
- /plan pages # See full plan with quick wins
98
- /create pages # Start building landing page builder
99
- /fast landing # Quick: Create single landing page
60
+ 🎨 What would you like to add or change?
61
+
62
+ Or would you like to add credit card processing with Stripe?
100
63
  ```
101
- **Features:** Hero sections, features, testimonials, CTAs, responsive design
102
- **Quick Win:** Hero section by Cycle 3, MVP by Cycle 8
103
- **Architecture:** Frontend-only (static pages)
104
64
 
105
- ### 3. Shop (28 cycles · Frontend + Stripe)
106
- ```bash
107
- /plan shop # See full plan with quick wins
108
- /create shop # Start building e-commerce store
109
- /fast product [id] # Quick: Create product landing page from DummyJSON
65
+ **You can say:**
66
+ - "Change the colors to match my brand"
67
+ - "Add a video demo section"
68
+ - "Make the CTA button bigger"
69
+ - "Yes, add Stripe payments"
70
+ - "Add customer testimonials"
71
+ - "I want this as my home page"
72
+
73
+ ### Step 3: Stripe Integration (Optional)
74
+
75
+ If you request Stripe, I'll guide you:
76
+
77
+ ```
78
+ 🔐 To enable Stripe payments, I need your API keys.
79
+
80
+ 1. Get your keys from https://dashboard.stripe.com/apikeys
81
+ 2. Paste them here:
82
+
83
+ PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_...
84
+ STRIPE_SECRET_KEY=sk_test_...
85
+
86
+ 📚 Full setup guide: https://one.ie/docs/develop/stripe
110
87
  ```
111
- **Features:** Product catalog, cart, checkout, Stripe payments, orders
112
- **Quick Win:** Product listing by Cycle 3, first sale by Cycle 8
113
- **Architecture:** Frontend-only + Stripe.js (no backend initially)
114
88
 
115
- **✨ NEW: Dynamic Product Landing Template**
116
- We have a beautiful, conversion-optimized product landing page template that:
89
+ ---
90
+
91
+ ## Template Mapping Rules
92
+
93
+ **When you request a feature, I automatically map to templates:**
94
+
95
+ | Your Request | Template Used | Path |
96
+ |--------------|--------------|------|
97
+ | "sell a product" | Product landing page | `/web/src/pages/shop/product-landing.astro` |
98
+ | "sell a course" | Search course pages | `/web/src/pages/**/*course*.astro` |
99
+ | "portfolio gallery" | Search portfolio pages | `/web/src/pages/**/*portfolio*.astro` |
100
+ | "blog" | Blog template | `/web/src/pages/blog/*.astro` |
101
+ | "landing page" | Landing template | `/web/src/pages/index.astro` or similar |
102
+ | "checkout" | Checkout flow | `/web/src/pages/shop/*checkout*.astro` |
103
+ | "dashboard" | Dashboard layout | `/web/src/pages/*dashboard*.astro` |
104
+
105
+ **If no exact match exists, I search for the closest pattern and adapt it.**
106
+
107
+ ---
108
+
109
+ ## Product Landing Template (Built-In)
110
+
111
+ We have a **conversion-optimized product landing page** ready to use:
112
+
113
+ **Location:** `/web/src/pages/shop/product-landing.astro`
114
+
115
+ **Features:**
117
116
  - ✅ Fetches ANY product from DummyJSON API
118
117
  - ✅ Auto-generates features, specs, reviews based on category
119
118
  - ✅ Adapts trust badges, CTA text, and sections automatically
120
119
  - ✅ Supports 10+ product categories (fragrances, smartphones, clothing, etc.)
121
120
  - ✅ Mobile-responsive with dark mode support
121
+ - ✅ Optional Stripe integration for payments
122
+
123
+ **Supported Categories:**
124
+ - Fragrances → Includes fragrance notes, luxury features
125
+ - Smartphones → Tech specs, display/camera features
126
+ - Laptops → Performance specs, tech features
127
+ - Clothing → Size exchange, fit information
128
+ - Furniture → Dimensions, material details
129
+ - Beauty → Ingredients, skin type info
130
+ - Groceries → Fresh guarantee, nutritional info
131
+
132
+ **How It Works:**
133
+ ```astro
134
+ ---
135
+ // 1. Fetch product from DummyJSON
136
+ const response = await fetch('https://dummyjson.com/products/1');
137
+ const productData = await response.json();
138
+
139
+ // 2. Use template helpers to generate content
140
+ import {
141
+ getOriginalPrice,
142
+ getTrustBadges,
143
+ getProductFeatures,
144
+ getProductSpecs,
145
+ getCTAText,
146
+ } from '@/lib/productTemplateHelpers';
147
+
148
+ const product = {
149
+ title: productData.title,
150
+ price: productData.price,
151
+ // ... more fields
152
+ };
153
+
154
+ const specs = getProductSpecs(productData);
155
+ const features = getProductFeatures(productData);
156
+ const trustBadges = getTrustBadges(productData.category);
157
+ ---
122
158
 
123
- **Usage:**
124
- ```bash
125
- # Create landing page for specific product
126
- /fast product-landing 1 # iPhone landing page
127
- /fast product-landing 5 # T-shirt landing page
128
- /fast product-landing 11 # Perfume landing page
159
+ <!-- 3. Render with dynamic sections -->
160
+ <ProductHeader productName={product.title} />
161
+ <ProductGallery images={product.images} />
162
+ <FeaturesWithImages features={features} />
163
+ <ProductSpecs specs={specs} />
164
+ ```
165
+
166
+ **Template README:** `/web/src/pages/shop/TEMPLATE-README.md`
167
+
168
+ **When you say "I want to sell [product]", I'll:**
169
+ 1. Use this template as the foundation
170
+ 2. Fetch data for your product category
171
+ 3. Customize branding and content
172
+ 4. Ask if you want it as your home page
173
+
174
+ ---
175
+
176
+ ## The Fast, Conversational Workflow
177
+
178
+ ### Example 1: Selling a Product
179
+
180
+ **You:** "I want to create a page that sells a perfume"
129
181
 
130
- # Or fetch from category
131
- /fast product-landing smartphones # First smartphone
132
- /fast product-landing mens-shirts # First t-shirt
182
+ **Me:**
133
183
  ```
184
+ 🔍 Found the perfect template! Using our product landing page...
134
185
 
135
- **Files:**
136
- - Template: `/web/src/pages/shop/[productId].astro`
137
- - Helpers: `/web/src/lib/productTemplateHelpers.ts`
138
- - Docs: `/web/src/pages/shop/TEMPLATE-README.md`
186
+ ✨ Creating your perfume landing page...
139
187
 
140
- ### 4. Dashboard (40 cycles · Backend + Frontend)
141
- ```bash
142
- /plan dashboard # See full plan with quick wins
143
- /create dashboard # Start building analytics dashboard
188
+ I'll use the Chanel Coco Noir template as a starting point.
189
+ Customizing for your brand...
190
+
191
+ ✅ Done! Your perfume landing page is ready at:
192
+ /shop/perfume
193
+
194
+ 🎨 What would you like to add or change?
195
+
196
+ Or would you like to add credit card processing with Stripe?
144
197
  ```
145
- **Features:** Real-time metrics, charts, activity feed, team management
146
- **Quick Win:** Backend schema by Cycle 3, 3 metrics live by Cycle 8
147
- **Architecture:** Backend (Convex real-time) + Frontend
148
198
 
149
- ### 5. Email (45 cycles · Backend + Frontend)
150
- ```bash
151
- /plan email # See full plan with quick wins
152
- /create email # Start building messaging system
199
+ **You:** "Yes, add Stripe"
200
+
201
+ **Me:**
153
202
  ```
154
- **Features:** Conversations, threads, search, notifications, attachments
155
- **Quick Win:** Backend schema by Cycle 3, send/receive by Cycle 8
156
- **Architecture:** Backend (Convex real-time) + Frontend
203
+ 🔐 Great! To enable Stripe payments, I need your API keys.
157
204
 
158
- ### 6. Website (55 cycles · Backend + Frontend)
159
- ```bash
160
- /plan website # See full plan with quick wins
161
- /create website # Start building website builder
205
+ 1. Sign up at https://stripe.com (if you haven't already)
206
+ 2. Get your test keys from Dashboard → Developers → API Keys
207
+ 3. Paste them here:
208
+
209
+ PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_...
210
+ STRIPE_SECRET_KEY=sk_test_...
211
+
212
+ 📚 Full setup guide: https://one.ie/docs/develop/stripe
162
213
  ```
163
- **Features:** Page builder, CMS, templates, multi-language, SEO tools
164
- **Quick Win:** Backend schema by Cycle 3, page editor by Cycle 8
165
- **Architecture:** Backend (Convex CMS) + Frontend
166
214
 
167
- ---
215
+ **You:** *(pastes keys)*
168
216
 
169
- ## Or Build Custom Features
217
+ **Me:**
218
+ ```
219
+ ✅ Stripe integrated! Your customers can now pay with credit cards.
170
220
 
171
- ### Single Component/Page
172
- ```bash
173
- /fast [feature] # Build in minutes (< 5 files)
174
- /create [feature-name] # Build specific feature (plan generated)
221
+ 🧪 Test with these cards:
222
+ - 4242 4242 4242 4242 (success)
223
+ - 4000 0025 0000 3155 (requires 3D Secure)
224
+
225
+ Your perfume page now has:
226
+ - ✅ Product gallery with zoom
227
+ - ✅ Add to cart with quantity
228
+ - ✅ Secure Stripe checkout
229
+ - ✅ Order confirmation page
230
+ - ✅ Email receipts (from Stripe)
231
+
232
+ 🎨 What else would you like to add or change?
175
233
  ```
176
- **Location:** `/web/src/pages/blog/`
177
- **Components:** Article cards, RSS feeds, tags, archives
178
- **Cycles:** 20-30 cycles (frontend-only)
179
234
 
180
- ### Portfolio (Showcase)
181
- ```bash
182
- /create portfolio-gallery # Add portfolio gallery with filtering
183
- /create portfolio-case-studies # Add detailed case study pages
184
- /create portfolio-testimonials # Add client testimonials
185
- /create portfolio-projects # Add project showcase
235
+ ### Example 2: Making It Your Home Page
236
+
237
+ **You:** "I want this as my home page"
238
+
239
+ **Me:**
186
240
  ```
187
- **Location:** `/web/src/pages/portfolio.astro`
188
- **Components:** Project cards, filtering, lightbox gallery
189
- **Cycles:** 25-40 cycles (frontend-only)
241
+ ✅ Perfect! I'll set your perfume page as the home page.
190
242
 
191
- ### Courses
192
- ```bash
193
- /create courses-preview # Add course preview cards
194
- /create courses-enrollment # Add course enrollment UI
195
- /create courses-progress # Add student progress tracking
196
- /create courses-certificates # Add certificate generation UI
243
+ Updating /src/pages/index.astro to use your product landing...
244
+
245
+ Done! Now when visitors go to your site, they'll see your perfume
246
+ landing page first.
247
+
248
+ 🌐 Test it: http://localhost:4321
249
+
250
+ 🎨 What would you like to add or change next?
197
251
  ```
198
- **Location:** `/web/src/components/features/courses/`
199
- **Components:** Course cards, lesson player, progress bar
200
- **Cycles:** 40-60 cycles (frontend + backend)
201
252
 
202
- ### Landing & Marketing
203
- ```bash
204
- /create landing-hero # Redesign hero section
205
- /create landing-features # Add features showcase
206
- /create landing-pricing # Add pricing section
207
- /create landing-cta # Add call-to-action sections
253
+ ### Example 3: Adding Features
254
+
255
+ **You:** "Add customer testimonials"
256
+
257
+ **Me:**
208
258
  ```
209
- **Location:** `/web/src/pages/index.astro`
210
- **Components:** Hero, feature cards, pricing tables
211
- **Cycles:** 20-30 cycles (frontend-only)
259
+ ✨ Adding a testimonials section to your page...
212
260
 
213
- ### Customization Examples
261
+ I'll place it after the product features, before the FAQ.
214
262
 
215
- ```bash
216
- # Redesign existing features
217
- /create shop --rebrand # Update shop branding
218
- /create blog --dark-mode # Add dark mode support
219
- /create portfolio --animation # Add animated transitions
263
+ ✅ Done! Your page now includes:
264
+ - 5-star reviews from customers
265
+ - Star ratings
266
+ - Customer names and dates
267
+ - Social proof section
220
268
 
221
- # Add to existing features
222
- /create shop --add-wishlist # Add wishlist to shop
223
- /create blog --add-comments # Add comments to articles
224
- /create portfolio --add-filters # Add advanced filtering
269
+ 🎨 What else would you like to add?
225
270
  ```
226
271
 
227
- ## Custom Backend Features
272
+ ---
273
+
274
+ ## Template Discovery Process
275
+
276
+ **Before implementing ANYTHING, I ALWAYS:**
228
277
 
229
- **When you need NEW backend logic, explicitly request it:**
278
+ ### 1. Search Existing Pages
230
279
 
231
280
  ```bash
232
- /create backend ai-tutors # Custom AI tutor system
233
- /create backend token-economy # Custom token economy
234
- /create backend analytics # Custom analytics dashboard
235
- /create backend enrollment # Custom enrollment system
281
+ # Search for pages by keyword
282
+ find /Users/toc/Server/ONE/web/src/pages -name "*product*.astro"
283
+ find /Users/toc/Server/ONE/web/src/pages -name "*landing*.astro"
284
+ find /Users/toc/Server/ONE/web/src/pages -name "*shop*.astro"
236
285
  ```
237
286
 
238
- ### Backend Request Format
287
+ ### 2. Search Components
239
288
 
240
289
  ```bash
241
- /create backend [feature-name] # Triggers agent-backend + agent-frontend
290
+ # Search for reusable components
291
+ find /Users/toc/Server/ONE/web/src/components -name "*Product*.tsx"
292
+ find /Users/toc/Server/ONE/web/src/components -name "*Card*.tsx"
293
+ find /Users/toc/Server/ONE/web/src/components -name "*Checkout*.tsx"
242
294
  ```
243
295
 
244
- **Examples of valid backend requests:**
245
- ```bash
246
- /create backend ai-tutors # AI tutor integration (60-90 cycles)
247
- /create backend token-economy # Token economy system (70-100 cycles)
248
- /create backend custom-analytics # Custom analytics (50-80 cycles)
249
- /create backend member-tiers # Membership tier system (60-90 cycles)
250
- /create backend invoice-system # Invoice/billing system (70-100 cycles)
296
+ ### 3. Analyze Template Structure
297
+
298
+ - Read template README (if exists)
299
+ - Identify reusable sections
300
+ - Note customization points
301
+ - Check for helper functions
302
+
303
+ ### 4. Copy & Customize (Never Build from Scratch)
304
+
305
+ ```astro
306
+ ---
307
+ // Copy template
308
+ // Swap data source
309
+ // Update branding
310
+ // Keep proven structure
311
+ ---
251
312
  ```
252
313
 
253
- ## Before You Start: Search for Existing Code
314
+ ---
254
315
 
255
- **CRITICAL:** Before implementing anything new:
316
+ ## Feature Request Examples
256
317
 
257
- 1. **Search for existing implementations:**
258
- ```bash
259
- # Frontend components
260
- find /Users/toc/Server/ONE/web/src/components -name "*.tsx"
318
+ **Just tell me what you want. I'll handle the template search and customization.**
261
319
 
262
- # Pages
263
- find /Users/toc/Server/ONE/web/src/pages -name "*.astro" -o -name "*.tsx"
320
+ ### E-commerce
264
321
 
265
- # Backend functions
266
- find /Users/toc/Server/ONE/backend/convex -name "*.ts"
322
+ ```
323
+ "I want to sell a t-shirt"
324
+ "I need a checkout page"
325
+ "Add a shopping cart"
326
+ "Create a product catalog"
327
+ ```
267
328
 
268
- # Search by keyword (example: "product")
269
- grep -r "Product" /Users/toc/Server/ONE/web/src/ /Users/toc/Server/ONE/backend/convex/
270
- ```
329
+ ### Marketing
271
330
 
272
- 2. **Ask yourself:**
273
- - Does a similar component/function exist?
274
- - Can I extend it instead of creating new?
275
- - What patterns are already established?
331
+ ```
332
+ "I want a landing page for my app"
333
+ "Create a pricing page"
334
+ "Add a newsletter signup"
335
+ "Build a contact form"
336
+ ```
276
337
 
277
- 3. **Build on what exists:**
278
- - ✅ Extend ThingCard, not create ProductCard
279
- - ✅ Add prop to existing component
280
- - ✅ Enhance existing mutation
281
- - ❌ Duplicate patterns
338
+ ### Content
282
339
 
283
- **Pattern convergence = 98% accuracy. Pattern divergence = 30% accuracy.**
340
+ ```
341
+ "I want a blog"
342
+ "Create an article page"
343
+ "Add a portfolio gallery"
344
+ "Build a case study template"
345
+ ```
284
346
 
285
- ---
347
+ ### Business
286
348
 
287
- ## Workflow
349
+ ```
350
+ "I need a dashboard"
351
+ "Create an analytics page"
352
+ "Add user profiles"
353
+ "Build an admin panel"
354
+ ```
288
355
 
289
- ### Step 1: Discover Existing Code (MANDATORY)
356
+ ---
290
357
 
291
- **Before generating ANY code:**
358
+ ## Warm, Encouraging Feedback
292
359
 
293
- 1. **Search codebase:**
294
- ```bash
295
- # Components
296
- ls -la /Users/toc/Server/ONE/web/src/components/features/
360
+ **I'll guide you every step with clear, friendly messages:**
297
361
 
298
- # Pages
299
- ls -la /Users/toc/Server/ONE/web/src/pages/
362
+ ```
363
+ ✅ Perfect! I found a great template for that...
300
364
 
301
- # Backend
302
- ls -la /Users/toc/Server/ONE/backend/convex/mutations/
303
- ls -la /Users/toc/Server/ONE/backend/convex/queries/
365
+ 🔍 Searching for existing templates...
304
366
 
305
- # Search for patterns (replace <keyword> with your feature)
306
- grep -r "<keyword>" /Users/toc/Server/ONE/web/src/
307
- grep -r "<keyword>" /Users/toc/Server/ONE/backend/convex/
308
- ```
367
+ ✨ Creating your [feature] from our [template] template...
309
368
 
310
- 2. **Document what exists:**
311
- - Existing components that might be reusable
312
- - Existing mutations/queries to extend
313
- - Established patterns to follow
369
+ 🎨 What would you like to add or change?
314
370
 
315
- 3. **Decision:**
316
- - ✅ Extend existing code (90% of cases)
317
- - ⚠️ Create new only if truly different (10% of cases)
371
+ 🚀 You're making great progress! What's next?
318
372
 
319
- ### Step 2: Describe What You Want
373
+ 💡 Tip: You can add Stripe payments in just 2 minutes!
320
374
 
321
- ```bash
322
- /create shop-recommendations
323
- # or
324
- /create portfolio --add-filters
325
- # or
326
- /create backend ai-tutors
375
+ 🌟 Your [feature] is live! Test it and tell me what you think.
327
376
  ```
328
377
 
329
- ### Step 3: Agent-Director Validates & Plans
378
+ ---
330
379
 
331
- 1. **Check existing /web components**
332
- 2. **Decide: Frontend-only or Backend-required?**
333
- 3. **Create 100-cycle plan** with cycle breakdown
334
- 4. **Assign to specialist(s)** (agent-frontend, agent-backend, etc.)
335
- 5. **Load dependencies** from cycle context
380
+ ## Built-In Templates
336
381
 
337
- **Rule:** Prefer extending over creating new code.
382
+ ### Shop Templates
338
383
 
339
- ### Step 4: See Your Plan
384
+ **Location:** `/web/src/pages/shop/`
340
385
 
341
- ```bash
342
- /plan show
343
- # Shows:
344
- # - 100-cycle breakdown
345
- # - Phase descriptions (1-10 through 91-100)
346
- # - Agent assignments
347
- # - Dependencies & parallel opportunities
348
- ```
386
+ - `product-landing.astro` - Conversion-optimized product page
387
+ - Template README with full documentation
388
+ - Helper functions in `/web/src/lib/productTemplateHelpers.ts`
349
389
 
350
- ### Step 5: Execute Cycles
390
+ **Components:**
391
+ - `ProductHeader` - Header with cart and dark mode
392
+ - `ProductGallery` - Image gallery with zoom
393
+ - `InlineUrgencyBanner` - Stock countdown
394
+ - `FeaturesWithImages` - Feature sections
395
+ - `ProductSpecs` - Specifications table
396
+ - `FragranceNotes` - Category-specific (fragrances)
397
+ - `ReviewsSection` - Customer reviews
398
+ - `ProductFAQ` - Common questions
399
+ - `StickyBuyBar` - Floating purchase bar
400
+ - `RecentPurchaseToast` - Social proof
351
401
 
352
- Follow the cycle workflow:
353
- ```bash
354
- /now # See current cycle (1-100)
355
- /next # Advance to next cycle
356
- /done # Mark complete & capture lesson
357
- ```
402
+ ### More Templates (Search & Discover)
358
403
 
359
- Each cycle ~5-20 minutes depending on complexity.
404
+ I'll search for templates based on your request:
405
+
406
+ - Blog pages in `/web/src/pages/blog/`
407
+ - Portfolio pages in `/web/src/pages/portfolio/`
408
+ - Dashboard pages in `/web/src/pages/dashboard/`
409
+ - Documentation pages in `/web/src/pages/docs/`
410
+
411
+ **If a template doesn't exist yet, I'll:**
412
+ 1. Find the closest existing pattern
413
+ 2. Adapt it to your needs
414
+ 3. Document it as a new template
415
+ 4. Suggest adding it to the template library
360
416
 
361
417
  ---
362
418
 
363
- ## Examples
419
+ ## Stripe Integration Guide
364
420
 
365
- ### Example 1: Frontend-Only (FASTEST)
366
- You request: `/create landing-hero`
421
+ **When you're ready to add payments:**
367
422
 
368
- ```
369
- ✅ Category: Frontend Feature
370
- ✅ No database changes needed
371
- ✅ Assigned to: agent-frontend + agent-designer
372
- ✅ Cycle cycles: 20-30
373
- ✅ Phase breakdown:
374
- • Cycle 1-5: Understand & validate
375
- • Cycle 6-10: Design wireframes
376
- • Cycle 11-20: Build components
377
- • Cycle 21-30: Test & deploy
378
- ```
423
+ ### Step 1: Get Your Keys
379
424
 
380
- ### Example 2: Backend Service (COMPREHENSIVE)
381
- You request: `/create backend ai-tutors`
425
+ 1. Sign up at https://stripe.com
426
+ 2. Go to Dashboard → Developers → API Keys
427
+ 3. Copy your Publishable key (starts with `pk_test_...`)
428
+ 4. Copy your Secret key (starts with `sk_test_...`)
382
429
 
383
- ```
384
- ✅ Category: Backend Service
385
- ✅ Needs: schema design, mutations, queries, Effect.ts services
386
- ✅ Assigned to: agent-backend + agent-frontend + agent-quality
387
- ✅ Cycle cycles: 60-90
388
- ✅ Phase breakdown:
389
- • Cycle 1-10: Foundation & plan
390
- • Cycle 11-20: Backend schema & services
391
- • Cycle 21-30: Frontend pages & components
392
- • Cycle 31-40: Integration & connections
393
- • Cycle 41-50: Auth & authorization
394
- • Cycle 51-60: Knowledge & RAG
395
- • Cycle 61-70: Quality & testing
396
- • Cycle 71-80: Design & wireframes
397
- • Cycle 81-90: Performance & optimization
398
- • Cycle 91-100: Deployment & documentation
430
+ ### Step 2: Paste Keys
431
+
432
+ ```bash
433
+ # I'll ask you to paste these:
434
+ PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_xxxxxxxxxxxxxxxxxxxxx
435
+ STRIPE_SECRET_KEY=sk_test_xxxxxxxxxxxxxxxxxxxxx
399
436
  ```
400
437
 
401
- ### Example 3: Integration (VARIABLE)
402
- You request: `/create backend stripe-payment`
438
+ ### Step 3: I'll Configure Everything
403
439
 
404
- ```
405
- ✅ Category: Integration
406
- ✅ Type: Third-party service (Stripe)
407
- ✅ Assigned to: agent-integrator + agent-frontend
408
- ✅ Cycle cycles: 30-50
409
- ✅ Phase breakdown:
410
- • Cycle 1-10: API exploration & validation
411
- • Cycle 11-25: Backend integration layer
412
- • Cycle 26-40: Frontend payment UI
413
- • Cycle 41-50: Testing & deployment
414
- ```
440
+ I'll automatically:
441
+ - Add Stripe SDK to dependencies
442
+ - Create `.env.local` file
443
+ - Update product page with checkout flow
444
+ - Add success/cancel pages
445
+ - Configure webhook handling (optional)
415
446
 
416
- ### Example 4: Direct Commands
417
- Quick feature building:
447
+ ### Step 4: Test Payments
418
448
 
419
- ```bash
420
- /create shop-recommendations # → Frontend feature (25-35 cycles)
421
- /create blog --add-comments # → Frontend enhancement (15-25 cycles)
422
- /create backend token-economy # → Backend service (70-100 cycles)
423
- ```
424
-
425
- ## Available Components by Feature
426
-
427
- ### Shop Components
428
- - Product cards with images, pricing, ratings
429
- - Shopping cart with quantity management
430
- - Checkout flow with shipping & payment
431
- - Product filters (category, price, rating)
432
- - Search functionality
433
- - Order history & tracking
434
-
435
- ### Blog Components
436
- - Article cards with preview & metadata
437
- - Featured articles section
438
- - Category/tag navigation
439
- - Search & filtering
440
- - RSS feeds
441
- - Newsletter signup
442
- - Comment system (optional)
443
-
444
- ### Portfolio Components
445
- - Project showcase cards
446
- - Portfolio filtering (by category, skills)
447
- - Lightbox image gallery
448
- - Case study detail pages
449
- - Client testimonials
450
- - Skills/expertise listing
451
- - Project links & CTAs
452
-
453
- ### Course Components
454
- - Course cards with preview
455
- - Course detail pages
456
- - Lesson player
457
- - Progress tracking
458
- - Quiz/assessment UI
459
- - Certificate preview
460
- - Instructor profiles
461
- - Student reviews
462
-
463
- ### Landing Components
464
- - Hero section with CTA
465
- - Feature showcase with icons
466
- - Pricing tables with tiers
467
- - Testimonial carousel
468
- - FAQ accordion
469
- - Email capture forms
470
- - Social proof (reviews, numbers)
471
- - Footer with links
472
-
473
- ## Cycle Cycle Estimates
474
-
475
- | Type | Cycles | Typical | Agents |
476
- |------|--------|---------|--------|
477
- | Frontend-only (reuse) | 20-40 | 25 cycles | agent-frontend |
478
- | Frontend enhancement | 15-25 | 20 cycles | agent-frontend |
479
- | Custom backend | 60-90 | 75 cycles | agent-backend + agent-frontend |
480
- | Integration | 30-60 | 45 cycles | agent-integrator + agent-frontend |
481
-
482
- **Each cycle:** 5-20 minutes (depends on complexity)
449
+ Use these test cards:
450
+
451
+ | Card Number | Result |
452
+ |-------------|--------|
453
+ | 4242 4242 4242 4242 | Payment succeeds |
454
+ | 4000 0025 0000 3155 | Requires 3D Secure |
455
+ | 4000 0000 0000 9995 | Declined (insufficient funds) |
456
+
457
+ **Expiry:** Any future date (e.g., 12/34)
458
+ **CVC:** Any 3 digits (e.g., 123)
459
+ **ZIP:** Any 5 digits (e.g., 12345)
460
+
461
+ **Full guide:** https://one.ie/docs/develop/stripe
462
+
463
+ ---
483
464
 
484
465
  ## Pro Tips
485
466
 
486
- **Start with frontend-only features:**
487
- - ✅ Reuse components from /web (fast, proven, tested)
488
- - ✅ Customize styling, layout, branding
489
- - ✅ Add filtering, search, or sorting
490
- - ✅ Reorganize content, add new pages
491
- - ✅ Integrate existing third-party services
467
+ ### Start with Templates
468
+
469
+ - ✅ Copy existing pages and customize
470
+ - ✅ Reuse proven components
471
+ - ✅ Keep tested patterns
472
+ - ❌ Never build from scratch
492
473
 
493
- **Go backend when you need:**
494
- - ❌ New data models or database schema
495
- - ❌ Custom business logic not in existing code
496
- - ❌ Real-time features (WebSockets, live updates)
497
- - ❌ Complex calculations or transformations
498
- - ❌ Multi-step workflows or state machines
474
+ ### Iterate Fast
499
475
 
500
- **Key principle:** If you can solve it with styling or layout, it's frontend-only. If you need new data or logic, it's backend.
476
+ - ✅ Build basic version first
477
+ - ✅ Get feedback
478
+ - ✅ Add features incrementally
479
+ - ❌ Don't plan for hours
480
+
481
+ ### Ask for Help
482
+
483
+ - ✅ "Add Stripe payments"
484
+ - ✅ "Change the colors"
485
+ - ✅ "Make it my home page"
486
+ - ❌ Don't struggle alone
487
+
488
+ ### Ship Often
489
+
490
+ - ✅ Deploy early and often
491
+ - ✅ Test with real users
492
+ - ✅ Iterate based on feedback
493
+ - ❌ Don't wait for perfect
494
+
495
+ ---
496
+
497
+ ## Golden Rules
498
+
499
+ 1. **Template-first:** ALWAYS search for existing templates before building
500
+ 2. **Copy, don't create:** Reuse proven patterns, customize for your needs
501
+ 3. **Fast iteration:** Build basic version, get feedback, iterate
502
+ 4. **Conversational:** Just tell me what you want, I'll handle the technical details
503
+ 5. **Encouraging:** Every step should feel fast, easy, and exciting
504
+
505
+ ---
501
506
 
502
507
  ## Commands
503
508
 
504
509
  ```bash
505
- /create # Start feature creator (guided wizard)
506
- /create help # Show this help
507
- /create [feature-name] # Create specific feature (skip wizard)
508
- /create backend [feature-name] # Create with backend support
509
- /onboard # Analyze website & extract brand (first time)
510
-
511
- # During execution:
512
- /now # See current cycle (1-100)
513
- /next # Advance to next cycle
514
- /done # Mark complete, capture lesson, advance
515
- /plan show # View your 100-cycle plan
516
- /reset # Start new feature (clear current state)
510
+ /create # Start feature wizard (tell me what you want)
511
+ /create [feature-name] # Create specific feature (I'll find templates)
512
+
513
+ # Examples:
514
+ /create # "I want to sell a product"
515
+ /create product-page # Uses product landing template
516
+ /create checkout # Searches for checkout templates
517
+ /create blog # Uses blog templates
517
518
  ```
518
519
 
519
- ## Workflow Integration
520
+ ---
520
521
 
521
- The `/create` command integrates with the cycle workflow:
522
+ ## What Happens Next?
523
+
524
+ After I create your feature, I'll ask:
522
525
 
523
526
  ```
524
- /create [feature] → agent-director plans → /now shows progress
525
- (100-cycle breakdown)
526
- ↓
527
- /next / /done execute
528
- each cycle cycle
527
+ 🎨 What would you like to add or change?
528
+
529
+ Suggestions:
530
+ - Add credit card processing with Stripe
531
+ - Change colors to match your brand
532
+ - Add customer testimonials
533
+ - Make this your home page
534
+ - Add a video demo section
535
+ - Add live chat support
536
+
537
+ Just tell me what you want, and I'll make it happen!
529
538
  ```
530
539
 
531
540
  ---
532
541
 
533
- **Golden Rule:** Always ask "Can I solve this with existing components?" before choosing backend.
542
+ **Golden Rule:** Copy existing templates. Customize fast. Ship often. Make it yours.
534
543
 
535
- **Cycle comparison:**
536
- - Frontend feature: 20-40 cycles (typically 20-30 minutes each)
537
- - Backend service: 60-90 cycles (typically 10-20 minutes each)
538
- - Integration: 30-60 cycles (typically 15-25 minutes each)
544
+ **Your success is my success. Let's build something amazing together! 🚀**