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
|
@@ -1,513 +1,544 @@
|
|
|
1
|
-
# /create -
|
|
1
|
+
# /create - Template-First Feature Creation
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Build features in minutes, not hours. Copy existing templates, customize, ship.**
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
##
|
|
28
|
+
## The Template-First Approach
|
|
63
29
|
|
|
64
|
-
|
|
30
|
+
**CRITICAL RULE:** Before building ANYTHING new, search for existing templates.
|
|
65
31
|
|
|
66
|
-
|
|
67
|
-
**Organization:** Default Org
|
|
68
|
-
**Role:** platform_owner
|
|
69
|
-
**Status:** ✅ Complete (100 cycles executed)
|
|
32
|
+
### Step 1: Understanding Your Request
|
|
70
33
|
|
|
71
|
-
|
|
34
|
+
When you say "I want to create a page that sells a [product]", I automatically:
|
|
72
35
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
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
|
-
|
|
53
|
+
### Step 2: Interactive Refinement
|
|
84
54
|
|
|
85
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
-
##
|
|
91
|
+
## Template Mapping Rules
|
|
145
92
|
|
|
146
|
-
|
|
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
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
109
|
+
## Product Landing Template (Built-In)
|
|
189
110
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
/
|
|
193
|
-
|
|
194
|
-
|
|
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
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
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
|
-
|
|
166
|
+
**Template README:** `/web/src/pages/shop/TEMPLATE-README.md`
|
|
203
167
|
|
|
204
|
-
**When you
|
|
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
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|
-
|
|
186
|
+
✨ Creating your perfume landing page...
|
|
214
187
|
|
|
215
|
-
|
|
216
|
-
|
|
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
|
-
**
|
|
220
|
-
|
|
221
|
-
|
|
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
|
-
|
|
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
|
-
|
|
209
|
+
PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_...
|
|
210
|
+
STRIPE_SECRET_KEY=sk_test_...
|
|
231
211
|
|
|
232
|
-
|
|
233
|
-
|
|
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
|
-
|
|
238
|
-
find /Users/toc/Server/ONE/web/src/pages -name "*.astro" -o -name "*.tsx"
|
|
215
|
+
**You:** *(pastes keys)*
|
|
239
216
|
|
|
240
|
-
|
|
241
|
-
|
|
217
|
+
**Me:**
|
|
218
|
+
```
|
|
219
|
+
✅ Stripe integrated! Your customers can now pay with credit cards.
|
|
242
220
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
221
|
+
🧪 Test with these cards:
|
|
222
|
+
- 4242 4242 4242 4242 (success)
|
|
223
|
+
- 4000 0025 0000 3155 (requires 3D Secure)
|
|
246
224
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
-
|
|
253
|
-
|
|
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
|
-
|
|
235
|
+
### Example 2: Making It Your Home Page
|
|
259
236
|
|
|
260
|
-
|
|
237
|
+
**You:** "I want this as my home page"
|
|
261
238
|
|
|
262
|
-
|
|
239
|
+
**Me:**
|
|
240
|
+
```
|
|
241
|
+
✅ Perfect! I'll set your perfume page as the home page.
|
|
263
242
|
|
|
264
|
-
|
|
243
|
+
Updating /src/pages/index.astro to use your product landing...
|
|
265
244
|
|
|
266
|
-
|
|
245
|
+
Done! Now when visitors go to your site, they'll see your perfume
|
|
246
|
+
landing page first.
|
|
267
247
|
|
|
268
|
-
|
|
269
|
-
```bash
|
|
270
|
-
# Components
|
|
271
|
-
ls -la /Users/toc/Server/ONE/web/src/components/features/
|
|
248
|
+
🌐 Test it: http://localhost:4321
|
|
272
249
|
|
|
273
|
-
|
|
274
|
-
|
|
250
|
+
🎨 What would you like to add or change next?
|
|
251
|
+
```
|
|
275
252
|
|
|
276
|
-
|
|
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
|
-
|
|
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
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
- Established patterns to follow
|
|
257
|
+
**Me:**
|
|
258
|
+
```
|
|
259
|
+
✨ Adding a testimonials section to your page...
|
|
289
260
|
|
|
290
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
272
|
+
---
|
|
305
273
|
|
|
306
|
-
|
|
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
|
-
**
|
|
276
|
+
**Before implementing ANYTHING, I ALWAYS:**
|
|
313
277
|
|
|
314
|
-
###
|
|
278
|
+
### 1. Search Existing Pages
|
|
315
279
|
|
|
316
280
|
```bash
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
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
|
-
###
|
|
287
|
+
### 2. Search Components
|
|
326
288
|
|
|
327
|
-
Follow the cycle workflow:
|
|
328
289
|
```bash
|
|
329
|
-
|
|
330
|
-
/
|
|
331
|
-
/
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
341
|
-
|
|
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
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
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
|
-
###
|
|
356
|
-
You request: `/create backend ai-tutors`
|
|
347
|
+
### Business
|
|
357
348
|
|
|
358
349
|
```
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
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
|
-
|
|
377
|
-
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
## Warm, Encouraging Feedback
|
|
359
|
+
|
|
360
|
+
**I'll guide you every step with clear, friendly messages:**
|
|
378
361
|
|
|
379
362
|
```
|
|
380
|
-
✅
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
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
|
-
|
|
392
|
-
|
|
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
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
```
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
-
|
|
404
|
-
-
|
|
405
|
-
-
|
|
406
|
-
-
|
|
407
|
-
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
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
|
-
|
|
462
|
-
|
|
463
|
-
- ✅
|
|
464
|
-
- ✅
|
|
465
|
-
- ✅
|
|
466
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
481
|
-
/create
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
/
|
|
485
|
-
|
|
486
|
-
#
|
|
487
|
-
/
|
|
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
|
-
|
|
520
|
+
---
|
|
495
521
|
|
|
496
|
-
|
|
522
|
+
## What Happens Next?
|
|
523
|
+
|
|
524
|
+
After I create your feature, I'll ask:
|
|
497
525
|
|
|
498
526
|
```
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
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:**
|
|
542
|
+
**Golden Rule:** Copy existing templates. Customize fast. Ship often. Make it yours.
|
|
509
543
|
|
|
510
|
-
**
|
|
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! 🚀**
|