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.
@@ -1,513 +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
84
54
 
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
- ```
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)
55
+ After creating your page, I'll ask:
94
56
 
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
100
57
  ```
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)
58
+ ✅ Your product landing page is ready at /shop/your-product!
104
59
 
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 # Quick: Add single product page
110
- ```
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)
60
+ 🎨 What would you like to add or change?
114
61
 
115
- ### 4. Dashboard (40 cycles · Backend + Frontend)
116
- ```bash
117
- /plan dashboard # See full plan with quick wins
118
- /create dashboard # Start building analytics dashboard
62
+ Or would you like to add credit card processing with Stripe?
119
63
  ```
120
- **Features:** Real-time metrics, charts, activity feed, team management
121
- **Quick Win:** Backend schema by Cycle 3, 3 metrics live by Cycle 8
122
- **Architecture:** Backend (Convex real-time) + Frontend
123
64
 
124
- ### 5. Email (45 cycles · Backend + Frontend)
125
- ```bash
126
- /plan email # See full plan with quick wins
127
- /create email # Start building messaging system
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
+
128
77
  ```
129
- **Features:** Conversations, threads, search, notifications, attachments
130
- **Quick Win:** Backend schema by Cycle 3, send/receive by Cycle 8
131
- **Architecture:** Backend (Convex real-time) + Frontend
78
+ 🔐 To enable Stripe payments, I need your API keys.
132
79
 
133
- ### 6. Website (55 cycles · Backend + Frontend)
134
- ```bash
135
- /plan website # See full plan with quick wins
136
- /create website # Start building website builder
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
137
87
  ```
138
- **Features:** Page builder, CMS, templates, multi-language, SEO tools
139
- **Quick Win:** Backend schema by Cycle 3, page editor by Cycle 8
140
- **Architecture:** Backend (Convex CMS) + Frontend
141
88
 
142
89
  ---
143
90
 
144
- ## Or Build Custom Features
91
+ ## Template Mapping Rules
145
92
 
146
- ### Single Component/Page
147
- ```bash
148
- /fast [feature] # Build in minutes (< 5 files)
149
- /create [feature-name] # Build specific feature (plan generated)
150
- ```
151
- **Location:** `/web/src/pages/blog/`
152
- **Components:** Article cards, RSS feeds, tags, archives
153
- **Cycles:** 20-30 cycles (frontend-only)
93
+ **When you request a feature, I automatically map to templates:**
154
94
 
155
- ### Portfolio (Showcase)
156
- ```bash
157
- /create portfolio-gallery # Add portfolio gallery with filtering
158
- /create portfolio-case-studies # Add detailed case study pages
159
- /create portfolio-testimonials # Add client testimonials
160
- /create portfolio-projects # Add project showcase
161
- ```
162
- **Location:** `/web/src/pages/portfolio.astro`
163
- **Components:** Project cards, filtering, lightbox gallery
164
- **Cycles:** 25-40 cycles (frontend-only)
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` |
165
104
 
166
- ### Courses
167
- ```bash
168
- /create courses-preview # Add course preview cards
169
- /create courses-enrollment # Add course enrollment UI
170
- /create courses-progress # Add student progress tracking
171
- /create courses-certificates # Add certificate generation UI
172
- ```
173
- **Location:** `/web/src/components/features/courses/`
174
- **Components:** Course cards, lesson player, progress bar
175
- **Cycles:** 40-60 cycles (frontend + backend)
105
+ **If no exact match exists, I search for the closest pattern and adapt it.**
176
106
 
177
- ### Landing & Marketing
178
- ```bash
179
- /create landing-hero # Redesign hero section
180
- /create landing-features # Add features showcase
181
- /create landing-pricing # Add pricing section
182
- /create landing-cta # Add call-to-action sections
183
- ```
184
- **Location:** `/web/src/pages/index.astro`
185
- **Components:** Hero, feature cards, pricing tables
186
- **Cycles:** 20-30 cycles (frontend-only)
107
+ ---
187
108
 
188
- ### Customization Examples
109
+ ## Product Landing Template (Built-In)
189
110
 
190
- ```bash
191
- # Redesign existing features
192
- /create shop --rebrand # Update shop branding
193
- /create blog --dark-mode # Add dark mode support
194
- /create portfolio --animation # Add animated transitions
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:**
116
+ - ✅ Fetches ANY product from DummyJSON API
117
+ - ✅ Auto-generates features, specs, reviews based on category
118
+ - ✅ Adapts trust badges, CTA text, and sections automatically
119
+ - ✅ Supports 10+ product categories (fragrances, smartphones, clothing, etc.)
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
195
131
 
196
- # Add to existing features
197
- /create shop --add-wishlist # Add wishlist to shop
198
- /create blog --add-comments # Add comments to articles
199
- /create portfolio --add-filters # Add advanced filtering
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
+ ---
158
+
159
+ <!-- 3. Render with dynamic sections -->
160
+ <ProductHeader productName={product.title} />
161
+ <ProductGallery images={product.images} />
162
+ <FeaturesWithImages features={features} />
163
+ <ProductSpecs specs={specs} />
200
164
  ```
201
165
 
202
- ## Custom Backend Features
166
+ **Template README:** `/web/src/pages/shop/TEMPLATE-README.md`
203
167
 
204
- **When you need NEW backend logic, explicitly request it:**
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
205
173
 
206
- ```bash
207
- /create backend ai-tutors # Custom AI tutor system
208
- /create backend token-economy # Custom token economy
209
- /create backend analytics # Custom analytics dashboard
210
- /create backend enrollment # Custom enrollment system
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"
181
+
182
+ **Me:**
211
183
  ```
184
+ 🔍 Found the perfect template! Using our product landing page...
212
185
 
213
- ### Backend Request Format
186
+ ✨ Creating your perfume landing page...
214
187
 
215
- ```bash
216
- /create backend [feature-name] # Triggers agent-backend + agent-frontend
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?
217
197
  ```
218
198
 
219
- **Examples of valid backend requests:**
220
- ```bash
221
- /create backend ai-tutors # AI tutor integration (60-90 cycles)
222
- /create backend token-economy # Token economy system (70-100 cycles)
223
- /create backend custom-analytics # Custom analytics (50-80 cycles)
224
- /create backend member-tiers # Membership tier system (60-90 cycles)
225
- /create backend invoice-system # Invoice/billing system (70-100 cycles)
199
+ **You:** "Yes, add Stripe"
200
+
201
+ **Me:**
226
202
  ```
203
+ 🔐 Great! To enable Stripe payments, I need your API keys.
227
204
 
228
- ## Before You Start: Search for Existing Code
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:
229
208
 
230
- **CRITICAL:** Before implementing anything new:
209
+ PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_...
210
+ STRIPE_SECRET_KEY=sk_test_...
231
211
 
232
- 1. **Search for existing implementations:**
233
- ```bash
234
- # Frontend components
235
- find /Users/toc/Server/ONE/web/src/components -name "*.tsx"
212
+ 📚 Full setup guide: https://one.ie/docs/develop/stripe
213
+ ```
236
214
 
237
- # Pages
238
- find /Users/toc/Server/ONE/web/src/pages -name "*.astro" -o -name "*.tsx"
215
+ **You:** *(pastes keys)*
239
216
 
240
- # Backend functions
241
- find /Users/toc/Server/ONE/backend/convex -name "*.ts"
217
+ **Me:**
218
+ ```
219
+ ✅ Stripe integrated! Your customers can now pay with credit cards.
242
220
 
243
- # Search by keyword (example: "product")
244
- grep -r "Product" /Users/toc/Server/ONE/web/src/ /Users/toc/Server/ONE/backend/convex/
245
- ```
221
+ 🧪 Test with these cards:
222
+ - 4242 4242 4242 4242 (success)
223
+ - 4000 0025 0000 3155 (requires 3D Secure)
246
224
 
247
- 2. **Ask yourself:**
248
- - Does a similar component/function exist?
249
- - Can I extend it instead of creating new?
250
- - What patterns are already established?
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)
251
231
 
252
- 3. **Build on what exists:**
253
- - ✅ Extend ThingCard, not create ProductCard
254
- - ✅ Add prop to existing component
255
- - ✅ Enhance existing mutation
256
- - ❌ Duplicate patterns
232
+ 🎨 What else would you like to add or change?
233
+ ```
257
234
 
258
- **Pattern convergence = 98% accuracy. Pattern divergence = 30% accuracy.**
235
+ ### Example 2: Making It Your Home Page
259
236
 
260
- ---
237
+ **You:** "I want this as my home page"
261
238
 
262
- ## Workflow
239
+ **Me:**
240
+ ```
241
+ ✅ Perfect! I'll set your perfume page as the home page.
263
242
 
264
- ### Step 1: Discover Existing Code (MANDATORY)
243
+ Updating /src/pages/index.astro to use your product landing...
265
244
 
266
- **Before generating ANY code:**
245
+ Done! Now when visitors go to your site, they'll see your perfume
246
+ landing page first.
267
247
 
268
- 1. **Search codebase:**
269
- ```bash
270
- # Components
271
- ls -la /Users/toc/Server/ONE/web/src/components/features/
248
+ 🌐 Test it: http://localhost:4321
272
249
 
273
- # Pages
274
- ls -la /Users/toc/Server/ONE/web/src/pages/
250
+ 🎨 What would you like to add or change next?
251
+ ```
275
252
 
276
- # Backend
277
- ls -la /Users/toc/Server/ONE/backend/convex/mutations/
278
- ls -la /Users/toc/Server/ONE/backend/convex/queries/
253
+ ### Example 3: Adding Features
279
254
 
280
- # Search for patterns (replace <keyword> with your feature)
281
- grep -r "<keyword>" /Users/toc/Server/ONE/web/src/
282
- grep -r "<keyword>" /Users/toc/Server/ONE/backend/convex/
283
- ```
255
+ **You:** "Add customer testimonials"
284
256
 
285
- 2. **Document what exists:**
286
- - Existing components that might be reusable
287
- - Existing mutations/queries to extend
288
- - Established patterns to follow
257
+ **Me:**
258
+ ```
259
+ ✨ Adding a testimonials section to your page...
289
260
 
290
- 3. **Decision:**
291
- - ✅ Extend existing code (90% of cases)
292
- - ⚠️ Create new only if truly different (10% of cases)
261
+ I'll place it after the product features, before the FAQ.
293
262
 
294
- ### Step 2: Describe What You Want
263
+ ✅ Done! Your page now includes:
264
+ - 5-star reviews from customers
265
+ - Star ratings
266
+ - Customer names and dates
267
+ - Social proof section
295
268
 
296
- ```bash
297
- /create shop-recommendations
298
- # or
299
- /create portfolio --add-filters
300
- # or
301
- /create backend ai-tutors
269
+ 🎨 What else would you like to add?
302
270
  ```
303
271
 
304
- ### Step 3: Agent-Director Validates & Plans
272
+ ---
305
273
 
306
- 1. **Check existing /web components**
307
- 2. **Decide: Frontend-only or Backend-required?**
308
- 3. **Create 100-cycle plan** with cycle breakdown
309
- 4. **Assign to specialist(s)** (agent-frontend, agent-backend, etc.)
310
- 5. **Load dependencies** from cycle context
274
+ ## Template Discovery Process
311
275
 
312
- **Rule:** Prefer extending over creating new code.
276
+ **Before implementing ANYTHING, I ALWAYS:**
313
277
 
314
- ### Step 4: See Your Plan
278
+ ### 1. Search Existing Pages
315
279
 
316
280
  ```bash
317
- /plan show
318
- # Shows:
319
- # - 100-cycle breakdown
320
- # - Phase descriptions (1-10 through 91-100)
321
- # - Agent assignments
322
- # - Dependencies & parallel opportunities
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"
323
285
  ```
324
286
 
325
- ### Step 5: Execute Cycles
287
+ ### 2. Search Components
326
288
 
327
- Follow the cycle workflow:
328
289
  ```bash
329
- /now # See current cycle (1-100)
330
- /next # Advance to next cycle
331
- /done # Mark complete & capture lesson
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"
332
294
  ```
333
295
 
334
- Each cycle ~5-20 minutes depending on complexity.
296
+ ### 3. Analyze Template Structure
335
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
336
306
  ---
307
+ // Copy template
308
+ // Swap data source
309
+ // Update branding
310
+ // Keep proven structure
311
+ ---
312
+ ```
337
313
 
338
- ## Examples
314
+ ---
315
+
316
+ ## Feature Request Examples
317
+
318
+ **Just tell me what you want. I'll handle the template search and customization.**
319
+
320
+ ### E-commerce
321
+
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
+ ```
328
+
329
+ ### Marketing
339
330
 
340
- ### Example 1: Frontend-Only (FASTEST)
341
- You request: `/create landing-hero`
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
+ ```
337
+
338
+ ### Content
342
339
 
343
340
  ```
344
- ✅ Category: Frontend Feature
345
- ✅ No database changes needed
346
- ✅ Assigned to: agent-frontend + agent-designer
347
- ✅ Cycle cycles: 20-30
348
- ✅ Phase breakdown:
349
- • Cycle 1-5: Understand & validate
350
- • Cycle 6-10: Design wireframes
351
- • Cycle 11-20: Build components
352
- • Cycle 21-30: Test & deploy
341
+ "I want a blog"
342
+ "Create an article page"
343
+ "Add a portfolio gallery"
344
+ "Build a case study template"
353
345
  ```
354
346
 
355
- ### Example 2: Backend Service (COMPREHENSIVE)
356
- You request: `/create backend ai-tutors`
347
+ ### Business
357
348
 
358
349
  ```
359
- ✅ Category: Backend Service
360
- ✅ Needs: schema design, mutations, queries, Effect.ts services
361
- ✅ Assigned to: agent-backend + agent-frontend + agent-quality
362
- ✅ Cycle cycles: 60-90
363
- ✅ Phase breakdown:
364
- • Cycle 1-10: Foundation & plan
365
- • Cycle 11-20: Backend schema & services
366
- • Cycle 21-30: Frontend pages & components
367
- • Cycle 31-40: Integration & connections
368
- • Cycle 41-50: Auth & authorization
369
- • Cycle 51-60: Knowledge & RAG
370
- • Cycle 61-70: Quality & testing
371
- • Cycle 71-80: Design & wireframes
372
- • Cycle 81-90: Performance & optimization
373
- • Cycle 91-100: Deployment & documentation
350
+ "I need a dashboard"
351
+ "Create an analytics page"
352
+ "Add user profiles"
353
+ "Build an admin panel"
374
354
  ```
375
355
 
376
- ### Example 3: Integration (VARIABLE)
377
- You request: `/create backend stripe-payment`
356
+ ---
357
+
358
+ ## Warm, Encouraging Feedback
359
+
360
+ **I'll guide you every step with clear, friendly messages:**
378
361
 
379
362
  ```
380
- ✅ Category: Integration
381
- ✅ Type: Third-party service (Stripe)
382
- ✅ Assigned to: agent-integrator + agent-frontend
383
- ✅ Cycle cycles: 30-50
384
- ✅ Phase breakdown:
385
- • Cycle 1-10: API exploration & validation
386
- • Cycle 11-25: Backend integration layer
387
- • Cycle 26-40: Frontend payment UI
388
- • Cycle 41-50: Testing & deployment
363
+ ✅ Perfect! I found a great template for that...
364
+
365
+ 🔍 Searching for existing templates...
366
+
367
+ ✨ Creating your [feature] from our [template] template...
368
+
369
+ 🎨 What would you like to add or change?
370
+
371
+ 🚀 You're making great progress! What's next?
372
+
373
+ 💡 Tip: You can add Stripe payments in just 2 minutes!
374
+
375
+ 🌟 Your [feature] is live! Test it and tell me what you think.
389
376
  ```
390
377
 
391
- ### Example 4: Direct Commands
392
- Quick feature building:
378
+ ---
379
+
380
+ ## Built-In Templates
381
+
382
+ ### Shop Templates
383
+
384
+ **Location:** `/web/src/pages/shop/`
385
+
386
+ - `product-landing.astro` - Conversion-optimized product page
387
+ - Template README with full documentation
388
+ - Helper functions in `/web/src/lib/productTemplateHelpers.ts`
389
+
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
401
+
402
+ ### More Templates (Search & Discover)
403
+
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
416
+
417
+ ---
418
+
419
+ ## Stripe Integration Guide
420
+
421
+ **When you're ready to add payments:**
422
+
423
+ ### Step 1: Get Your Keys
424
+
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_...`)
429
+
430
+ ### Step 2: Paste Keys
393
431
 
394
432
  ```bash
395
- /create shop-recommendations # → Frontend feature (25-35 cycles)
396
- /create blog --add-comments # → Frontend enhancement (15-25 cycles)
397
- /create backend token-economy # → Backend service (70-100 cycles)
398
- ```
399
-
400
- ## Available Components by Feature
401
-
402
- ### Shop Components
403
- - Product cards with images, pricing, ratings
404
- - Shopping cart with quantity management
405
- - Checkout flow with shipping & payment
406
- - Product filters (category, price, rating)
407
- - Search functionality
408
- - Order history & tracking
409
-
410
- ### Blog Components
411
- - Article cards with preview & metadata
412
- - Featured articles section
413
- - Category/tag navigation
414
- - Search & filtering
415
- - RSS feeds
416
- - Newsletter signup
417
- - Comment system (optional)
418
-
419
- ### Portfolio Components
420
- - Project showcase cards
421
- - Portfolio filtering (by category, skills)
422
- - Lightbox image gallery
423
- - Case study detail pages
424
- - Client testimonials
425
- - Skills/expertise listing
426
- - Project links & CTAs
427
-
428
- ### Course Components
429
- - Course cards with preview
430
- - Course detail pages
431
- - Lesson player
432
- - Progress tracking
433
- - Quiz/assessment UI
434
- - Certificate preview
435
- - Instructor profiles
436
- - Student reviews
437
-
438
- ### Landing Components
439
- - Hero section with CTA
440
- - Feature showcase with icons
441
- - Pricing tables with tiers
442
- - Testimonial carousel
443
- - FAQ accordion
444
- - Email capture forms
445
- - Social proof (reviews, numbers)
446
- - Footer with links
447
-
448
- ## Cycle Cycle Estimates
449
-
450
- | Type | Cycles | Typical | Agents |
451
- |------|--------|---------|--------|
452
- | Frontend-only (reuse) | 20-40 | 25 cycles | agent-frontend |
453
- | Frontend enhancement | 15-25 | 20 cycles | agent-frontend |
454
- | Custom backend | 60-90 | 75 cycles | agent-backend + agent-frontend |
455
- | Integration | 30-60 | 45 cycles | agent-integrator + agent-frontend |
456
-
457
- **Each cycle:** 5-20 minutes (depends on complexity)
433
+ # I'll ask you to paste these:
434
+ PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_xxxxxxxxxxxxxxxxxxxxx
435
+ STRIPE_SECRET_KEY=sk_test_xxxxxxxxxxxxxxxxxxxxx
436
+ ```
437
+
438
+ ### Step 3: I'll Configure Everything
439
+
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)
446
+
447
+ ### Step 4: Test Payments
448
+
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
+ ---
458
464
 
459
465
  ## Pro Tips
460
466
 
461
- **Start with frontend-only features:**
462
- - ✅ Reuse components from /web (fast, proven, tested)
463
- - ✅ Customize styling, layout, branding
464
- - ✅ Add filtering, search, or sorting
465
- - ✅ Reorganize content, add new pages
466
- - ✅ 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
467
473
 
468
- **Go backend when you need:**
469
- - ❌ New data models or database schema
470
- - ❌ Custom business logic not in existing code
471
- - ❌ Real-time features (WebSockets, live updates)
472
- - ❌ Complex calculations or transformations
473
- - ❌ Multi-step workflows or state machines
474
+ ### Iterate Fast
474
475
 
475
- **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
+ ---
476
506
 
477
507
  ## Commands
478
508
 
479
509
  ```bash
480
- /create # Start feature creator (guided wizard)
481
- /create help # Show this help
482
- /create [feature-name] # Create specific feature (skip wizard)
483
- /create backend [feature-name] # Create with backend support
484
- /onboard # Analyze website & extract brand (first time)
485
-
486
- # During execution:
487
- /now # See current cycle (1-100)
488
- /next # Advance to next cycle
489
- /done # Mark complete, capture lesson, advance
490
- /plan show # View your 100-cycle plan
491
- /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
492
518
  ```
493
519
 
494
- ## Workflow Integration
520
+ ---
495
521
 
496
- The `/create` command integrates with the cycle workflow:
522
+ ## What Happens Next?
523
+
524
+ After I create your feature, I'll ask:
497
525
 
498
526
  ```
499
- /create [feature] → agent-director plans → /now shows progress
500
- (100-cycle breakdown)
501
- ↓
502
- /next / /done execute
503
- 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!
504
538
  ```
505
539
 
506
540
  ---
507
541
 
508
- **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.
509
543
 
510
- **Cycle comparison:**
511
- - Frontend feature: 20-40 cycles (typically 20-30 minutes each)
512
- - Backend service: 60-90 cycles (typically 10-20 minutes each)
513
- - Integration: 30-60 cycles (typically 15-25 minutes each)
544
+ **Your success is my success. Let's build something amazing together! 🚀**