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.
- package/.claude/agents/agent-backend.md +113 -0
- package/.claude/agents/agent-builder.md +239 -65
- package/.claude/agents/agent-designer.md +267 -11
- package/.claude/agents/agent-director.md +476 -5
- package/.claude/agents/agent-frontend.md +217 -0
- package/.claude/commands/chat.md +234 -10
- package/.claude/commands/create.md +421 -415
- 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/release.md +10 -6
- package/.claude/commands/start.md +45 -0
- package/.claude/hooks/.last-news-context +1 -1
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/.claude/hooks/release-cli.sh +7 -5
- package/CLAUDE.md +25 -0
- package/CREATE-WEBSITE.md +17 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +2 -3
- package/dist/commands/init.js.map +1 -1
- package/package.json +1 -2
- package/.mcp.json +0 -95
|
@@ -1,538 +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
|
|
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
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
-
|
|
116
|
-
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
/create email # Start building messaging system
|
|
199
|
+
**You:** "Yes, add Stripe"
|
|
200
|
+
|
|
201
|
+
**Me:**
|
|
153
202
|
```
|
|
154
|
-
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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
|
-
|
|
217
|
+
**Me:**
|
|
218
|
+
```
|
|
219
|
+
✅ Stripe integrated! Your customers can now pay with credit cards.
|
|
170
220
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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
|
-
###
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
|
|
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
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
###
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
|
|
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
|
-
|
|
261
|
+
I'll place it after the product features, before the FAQ.
|
|
214
262
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
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
|
-
|
|
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
|
-
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## Template Discovery Process
|
|
275
|
+
|
|
276
|
+
**Before implementing ANYTHING, I ALWAYS:**
|
|
228
277
|
|
|
229
|
-
|
|
278
|
+
### 1. Search Existing Pages
|
|
230
279
|
|
|
231
280
|
```bash
|
|
232
|
-
|
|
233
|
-
/
|
|
234
|
-
/
|
|
235
|
-
/
|
|
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
|
-
###
|
|
287
|
+
### 2. Search Components
|
|
239
288
|
|
|
240
289
|
```bash
|
|
241
|
-
|
|
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
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
-
|
|
314
|
+
---
|
|
254
315
|
|
|
255
|
-
|
|
316
|
+
## Feature Request Examples
|
|
256
317
|
|
|
257
|
-
|
|
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
|
-
|
|
263
|
-
find /Users/toc/Server/ONE/web/src/pages -name "*.astro" -o -name "*.tsx"
|
|
320
|
+
### E-commerce
|
|
264
321
|
|
|
265
|
-
|
|
266
|
-
|
|
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
|
-
|
|
269
|
-
grep -r "Product" /Users/toc/Server/ONE/web/src/ /Users/toc/Server/ONE/backend/convex/
|
|
270
|
-
```
|
|
329
|
+
### Marketing
|
|
271
330
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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
|
-
|
|
278
|
-
- ✅ Extend ThingCard, not create ProductCard
|
|
279
|
-
- ✅ Add prop to existing component
|
|
280
|
-
- ✅ Enhance existing mutation
|
|
281
|
-
- ❌ Duplicate patterns
|
|
338
|
+
### Content
|
|
282
339
|
|
|
283
|
-
|
|
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
|
-
|
|
349
|
+
```
|
|
350
|
+
"I need a dashboard"
|
|
351
|
+
"Create an analytics page"
|
|
352
|
+
"Add user profiles"
|
|
353
|
+
"Build an admin panel"
|
|
354
|
+
```
|
|
288
355
|
|
|
289
|
-
|
|
356
|
+
---
|
|
290
357
|
|
|
291
|
-
|
|
358
|
+
## Warm, Encouraging Feedback
|
|
292
359
|
|
|
293
|
-
|
|
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
|
-
|
|
299
|
-
|
|
362
|
+
```
|
|
363
|
+
✅ Perfect! I found a great template for that...
|
|
300
364
|
|
|
301
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
373
|
+
💡 Tip: You can add Stripe payments in just 2 minutes!
|
|
320
374
|
|
|
321
|
-
|
|
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
|
-
|
|
378
|
+
---
|
|
330
379
|
|
|
331
|
-
|
|
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
|
-
|
|
382
|
+
### Shop Templates
|
|
338
383
|
|
|
339
|
-
|
|
384
|
+
**Location:** `/web/src/pages/shop/`
|
|
340
385
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
419
|
+
## Stripe Integration Guide
|
|
364
420
|
|
|
365
|
-
|
|
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
|
-
|
|
381
|
-
|
|
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
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
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
|
-
###
|
|
402
|
-
You request: `/create backend stripe-payment`
|
|
438
|
+
### Step 3: I'll Configure Everything
|
|
403
439
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
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
|
-
###
|
|
417
|
-
Quick feature building:
|
|
447
|
+
### Step 4: Test Payments
|
|
418
448
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
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
|
-
|
|
487
|
-
|
|
488
|
-
- ✅
|
|
489
|
-
- ✅
|
|
490
|
-
- ✅
|
|
491
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
506
|
-
/create
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
/
|
|
510
|
-
|
|
511
|
-
#
|
|
512
|
-
/
|
|
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
|
-
|
|
520
|
+
---
|
|
520
521
|
|
|
521
|
-
|
|
522
|
+
## What Happens Next?
|
|
523
|
+
|
|
524
|
+
After I create your feature, I'll ask:
|
|
522
525
|
|
|
523
526
|
```
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
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:**
|
|
542
|
+
**Golden Rule:** Copy existing templates. Customize fast. Ship often. Make it yours.
|
|
534
543
|
|
|
535
|
-
**
|
|
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! 🚀**
|