oneie 3.6.30 → 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,179 +1,440 @@
1
- # /onboard - Analyze Website & Extract Brand Identity
1
+ # /onboard - Template-First Guided Onboarding
2
2
 
3
3
  ## Instructions for Claude
4
4
 
5
- When user types `/onboard`, analyze their website and extract brand identity for ONE Platform customization.
5
+ When user types `/onboard`, guide them through a conversational, template-first onboarding experience.
6
6
 
7
- ### Step 1: Get Website URL
7
+ ### Step 1: Warm Welcome & Discovery
8
8
 
9
- If `.onboarding.json` exists, read it for `website.url`.
10
-
11
- Otherwise, ask user:
9
+ Greet the user warmly and ask what they want to build:
12
10
 
13
11
  ```
14
12
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
15
- 🤖 Website Analysis & Onboarding
13
+ 🎉 Welcome to ONE Platform!
16
14
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
17
15
 
18
- Please provide your website URL:
16
+ Let's build something amazing together.
17
+
18
+ What would you like to create today?
19
19
 
20
- Example: https://example.com
20
+ 💡 Examples:
21
+ • "I want to sell coffee mugs"
22
+ • "I need a landing page for my new product"
23
+ • "I'm launching an online course"
24
+ • "I want to build a creator subscription page"
25
+ • "I need a shop for my handmade goods"
26
+
27
+ Tell me about your idea, and I'll help you get started in minutes!
21
28
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
22
29
  ```
23
30
 
24
- ### Step 2: Launch agent-onboard (Background)
31
+ ### Step 2: Map to Templates
32
+
33
+ Based on their response, identify the best template and explain the match:
25
34
 
26
- **IMPORTANT:** Use Task tool with `subagent_type=agent-onboard` in BACKGROUND mode.
35
+ #### E-commerce / Product / Shop Keywords
36
+ **Triggers:** "sell", "product", "shop", "store", "buy", "merchandise", "goods"
27
37
 
38
+ **Response:**
28
39
  ```
29
- Analyze website [website.url] for ONE Platform onboarding:
40
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
41
+ ✨ Perfect! I can help you create a beautiful product page.
42
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
30
43
 
31
- 1. Extract brand identity:
32
- - Colors (primary, secondary, accent)
33
- - Typography (fonts, sizes, weights)
34
- - Logo and imagery
35
- - Brand voice and tone
44
+ I have a complete e-commerce template that includes:
45
+ ✓ Stunning product gallery with zoom
46
+ ✓ Customer reviews section
47
+ ✓ Urgency banners (stock levels, countdown)
48
+ ✓ Mobile-optimized design
49
+ ✓ Dark mode support
50
+ ✓ Ready for Stripe payments
36
51
 
37
- 2. Detect existing features:
38
- - Content types (blog, products, services)
39
- - Navigation structure
40
- - Key pages and sections
41
- - Interactive elements
52
+ This usually takes hours to build from scratch, but with our template,
53
+ we can have your product page live in just a few minutes.
42
54
 
43
- 3. Map to 6-dimension ontology:
44
- - Things: What entities exist? (products, posts, users)
45
- - Connections: What relationships? (owns, authored, purchased)
46
- - Events: What actions? (created, updated, viewed)
47
- - Knowledge: What content? (blog posts, docs, FAQs)
55
+ Let's get started! Tell me about your product:
56
+ • What's the product name?
57
+ • What's the price?
58
+ • Do you have product images? (or I can use beautiful stock photos)
48
59
 
49
- 4. Create installation documentation:
50
- - Save to: /[org-slug]/knowledge/brand-guide.md
51
- - Save to: /[org-slug]/knowledge/features.md
52
- - Save to: /[org-slug]/knowledge/ontology-mapping.md
60
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
61
+ ```
62
+
63
+ #### Course / Learning Keywords
64
+ **Triggers:** "course", "teach", "learning", "education", "training", "lesson"
65
+
66
+ **Response:**
67
+ ```
68
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
69
+ 📚 Excellent! Let's build your online course platform.
70
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
53
71
 
54
- 5. Recommend ONE Platform features:
55
- - Based on detected patterns
56
- - Aligned with 6-dimension ontology
57
- - Prioritized by impact
72
+ I have a learning management template that includes:
73
+ ✓ Course catalog with search/filter
74
+ ✓ Course detail pages with curriculum
75
+ ✓ Instructor profiles
76
+ ✓ Progress tracking UI
77
+ ✓ Video player integration ready
78
+ ✓ Certificate generation ready
58
79
 
59
- 6. Update .onboarding.json with results
80
+ Tell me about your course:
81
+ • What's the course title?
82
+ • What will students learn?
83
+ • Do you have course content ready?
60
84
 
61
- Website URL: [website.url]
62
- Organization: [organization.name]
85
+ Let's create something amazing!
86
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
63
87
  ```
64
88
 
65
- ### Step 3: Show Progress to User
89
+ #### Creator / Content Keywords
90
+ **Triggers:** "creator", "content", "newsletter", "subscribe", "membership", "audience"
66
91
 
92
+ **Response:**
67
93
  ```
68
94
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
69
- 🤖 Analyzing your website...
95
+ 🚀 Great choice! Let's build your creator platform.
70
96
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
71
97
 
72
- Website: [website.url]
98
+ I have a creator template that includes:
99
+ ✓ Personal brand showcase
100
+ ✓ Content feed (blog/videos/podcasts)
101
+ ✓ Subscription tiers
102
+ ✓ Member-only content gates
103
+ ✓ Social proof (testimonials, stats)
104
+ ✓ Newsletter signup
105
+
106
+ Tell me about your brand:
107
+ • What's your creator name or brand?
108
+ • What type of content do you create?
109
+ • What monetization model? (tips, subscriptions, products)
110
+
111
+ Let's build your audience!
112
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
113
+ ```
114
+
115
+ ### Step 3: Create from Template
116
+
117
+ Use the Task tool to spawn agent-builder in background mode:
118
+
119
+ ```
120
+ Create [product/course/creator] page from template:
121
+
122
+ Template: /web/src/pages/shop/product-landing.astro (or appropriate template)
123
+
124
+ Customization:
125
+ - Title: [user's product/course/brand name]
126
+ - Description: [user's description]
127
+ - Price: [user's price or default]
128
+ - Images: [use DummyJSON API or provided images]
129
+ - Category: [inferred category]
130
+
131
+ Steps:
132
+ 1. Copy template to appropriate route
133
+ 2. Update product/course/creator data
134
+ 3. Customize branding (colors, fonts if provided)
135
+ 4. Ensure mobile responsiveness
136
+ 5. Test all sections render correctly
137
+
138
+ Output: Complete page at [route]
139
+ ```
73
140
 
74
- I'm extracting:
75
- ✓ Brand colors, fonts, and style
76
- ✓ Existing features and content
77
- ✓ Ontology mapping (Things, Connections, Events)
78
- ✓ Feature recommendations
141
+ ### Step 4: Show Progress & First Success
79
142
 
80
- This takes ~2 minutes. Continue working while it runs!
143
+ ```
144
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
145
+ 🎨 Creating your page...
146
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
147
+
148
+ ✓ Template copied
149
+ ✓ Product data configured
150
+ ✓ Gallery set up with images
151
+ ✓ Reviews section added
152
+ ✓ Mobile optimization applied
81
153
 
82
154
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
83
- ✨ While you wait...
155
+ 🎉 Your page is ready!
84
156
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
85
157
 
158
+ View your new page at:
159
+ http://localhost:4321/shop/[product-slug]
160
+
86
161
  Try these commands:
87
- • /server - Manage dev server (start/stop/restart)
88
- • /build - Start building features
89
- • /see - View your platform
162
+ • /see - Open in browser
163
+ • /server - Manage dev server
164
+ ```
90
165
 
91
- I'll notify you when analysis is complete!
92
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
166
+ ### Step 5: Offer Enhancements
167
+
168
+ After successful creation, offer next steps in priority order:
169
+
170
+ #### Option 1: Make it the Homepage
93
171
  ```
172
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
173
+ 💡 Pro Tip
174
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
94
175
 
95
- ### Step 4: Monitor agent-onboard
176
+ Would you like this to be your homepage?
96
177
 
97
- Use `AgentOutputTool` to periodically check progress (every 30 seconds).
178
+ I can make it so visitors see your product immediately when they
179
+ land on your site. Just say:
98
180
 
99
- When complete, show results:
181
+ "Make this my homepage"
182
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
183
+ ```
100
184
 
185
+ #### Option 2: Add Stripe Payments
101
186
  ```
102
187
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
103
- ✅ Website Analysis Complete!
188
+ 💳 Ready to Accept Payments?
104
189
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
105
190
 
106
- Brand Identity Extracted:
107
- • Colors: [primary], [secondary], [accent]
108
- • Fonts: [font-family]
109
- • Voice: [brand-tone]
191
+ I can integrate Stripe checkout in minutes. Your customers will be
192
+ able to buy directly from your page with:
193
+
194
+ ✓ Secure card payments
195
+ ✓ Automatic email receipts
196
+ ✓ Test mode (no real charges during development)
197
+ ✓ Mobile-optimized checkout
110
198
 
111
- Features Detected:
112
- • [feature-1]
113
- • [feature-2]
114
- • [feature-3]
199
+ To add Stripe:
200
+ 1. Get free test keys: https://dashboard.stripe.com/test/apikeys
201
+ 2. Tell me: "Add Stripe payments"
202
+ 3. Paste your keys when I ask
115
203
 
116
- Ontology Mapping:
117
- • Things: [entity-types]
118
- • Connections: [relationship-types]
119
- • Events: [action-types]
204
+ Or read the guide: https://one.ie/docs/develop/stripe
205
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
206
+ ```
120
207
 
121
- Documentation Created:
122
- ✓ /[org-slug]/knowledge/brand-guide.md
123
- ✓ /[org-slug]/knowledge/features.md
124
- ✓ /[org-slug]/knowledge/ontology-mapping.md
208
+ #### Option 3: Customize Branding
209
+ ```
210
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
211
+ 🎨 Customize Your Brand
212
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
125
213
 
214
+ Want to match your brand colors and style?
215
+
216
+ You can customize:
217
+ • Colors (primary, secondary, accent)
218
+ • Fonts and typography
219
+ • Logo and favicon
220
+ • Button styles
221
+ • Layout spacing
222
+
223
+ Just tell me your brand colors or share your website, and I'll
224
+ update the design to match!
225
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
226
+ ```
227
+
228
+ #### Option 4: Add More Products
229
+ ```
126
230
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
127
- 🎨 Next Steps
231
+ 📦 Build Your Catalog
128
232
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
129
233
 
130
- 1. Customize homepage:
131
- "Update the hero section with our brand colors"
234
+ Want to add more products?
132
235
 
133
- 2. Build new features:
134
- /build [feature-name]
236
+ I can:
237
+ • Create additional product pages
238
+ • Build a product grid/catalog page
239
+ • Set up product categories
240
+ • Add search and filtering
135
241
 
136
- 3. Deploy to production:
137
- /deploy
242
+ Just tell me about your next product, and I'll add it!
243
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
244
+ ```
245
+
246
+ ### Step 6: Continuous Support
247
+
248
+ After offering enhancements, remind them you're here to help:
138
249
 
250
+ ```
251
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
252
+ 🤝 I'm Here to Help
253
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
254
+
255
+ You're doing great! Feel free to ask me anything:
256
+
257
+ • "How do I deploy this?"
258
+ • "Can you add a contact form?"
259
+ • "I want to change the colors"
260
+ • "How do I add my logo?"
261
+ • "Can you create a shop page with all my products?"
262
+
263
+ I'm here to help you succeed. What would you like to do next?
139
264
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
140
265
  ```
141
266
 
142
267
  ---
143
268
 
144
- ## Key Principles
269
+ ## Template Catalog Reference
270
+
271
+ ### E-commerce Template
272
+ **Location:** `/web/src/pages/shop/product-landing.astro`
273
+ **Guide:** `/web/src/pages/shop/TEMPLATE-README.md`
274
+ **Best for:** Products, merchandise, physical goods, digital products
275
+ **Features:** Gallery, reviews, urgency banners, Stripe ready, mobile-optimized
276
+
277
+ ### LMS Template
278
+ **Location:** `/web/src/templates/lms/` (to be created)
279
+ **Best for:** Online courses, training programs, educational content
280
+ **Features:** Course catalog, curriculum, progress tracking, certificates
145
281
 
146
- 1. **BACKGROUND** - Don't block user, run agent-onboard async
147
- 2. **THOROUGH** - Extract complete brand identity and features
148
- 3. **MAPPED** - Always map to 6-dimension ontology
149
- 4. **DOCUMENTED** - Save everything to installation folder
150
- 5. **ACTIONABLE** - Provide clear next steps
282
+ ### Creator Template
283
+ **Location:** `/web/src/templates/creator/` (to be created)
284
+ **Best for:** Personal brands, content creators, memberships
285
+ **Features:** Content feed, subscription tiers, gated content, newsletter
151
286
 
152
287
  ---
153
288
 
154
- ## Error Handling
289
+ ## Conversational Guidelines
290
+
291
+ ### Tone & Style
292
+ - **Warm & Encouraging:** "Let's build something amazing!"
293
+ - **Clear & Simple:** Avoid jargon, explain in plain language
294
+ - **Excited & Supportive:** Use emojis strategically (not excessively)
295
+ - **Action-Oriented:** Always offer clear next steps
296
+ - **Patient:** Answer questions thoroughly, never rush
297
+
298
+ ### Question Patterns
299
+ - Open-ended: "What would you like to create today?"
300
+ - Specific: "What's your product name?"
301
+ - Contextual: "Would you like this to be your homepage?"
302
+ - Helpful: "I can help with that! Here's how..."
303
+
304
+ ### Response Patterns
305
+ - Acknowledge: "Perfect! I can help with that."
306
+ - Explain: "Here's what we'll build..."
307
+ - Reassure: "This usually takes hours, but we'll do it in minutes."
308
+ - Guide: "Tell me about..."
309
+ - Celebrate: "Your page is ready!"
310
+ - Support: "I'm here to help you succeed."
311
+
312
+ ---
313
+
314
+ ## Edge Cases
315
+
316
+ ### User Has Existing Website
317
+ If user mentions an existing website:
318
+
319
+ ```
320
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
321
+ 🎨 Great! Let's Match Your Brand
322
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
323
+
324
+ I can analyze your website at [url] to extract:
325
+ ✓ Brand colors
326
+ ✓ Typography (fonts)
327
+ ✓ Style and tone
328
+ ✓ Logo and imagery
329
+
330
+ Then I'll create your new page to match your existing brand perfectly.
331
+
332
+ Should I analyze your website first?
333
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
334
+ ```
335
+
336
+ If yes, spawn agent-onboard to analyze website (existing pattern).
155
337
 
156
- If website URL is invalid or unreachable:
338
+ ### User Wants Something Not in Templates
339
+ If user request doesn't match available templates:
157
340
 
158
341
  ```
159
- ❌ Could not access website: [website.url]
342
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
343
+ 🚀 Custom Build
344
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
345
+
346
+ That sounds like a custom project! I can definitely help you build that.
160
347
 
161
- Please check:
162
- • URL is publicly accessible
163
- • No authentication required
164
- • Website is online
348
+ Let me understand what you need:
349
+ • What are the main features?
350
+ • Who will use it?
351
+ • What content or data will it show?
165
352
 
166
- Try again with: /onboard
353
+ With your answers, I'll design a solution using ONE's powerful
354
+ 6-dimension architecture.
355
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
167
356
  ```
168
357
 
169
- If agent-onboard fails:
358
+ Then map to ontology and build custom solution.
359
+
360
+ ### User Is Not Sure
361
+ If user says "I'm not sure" or "Just exploring":
362
+
363
+ ```
364
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
365
+ 🌟 Let Me Show You What's Possible
366
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
367
+
368
+ Here are some popular things people build with ONE:
369
+
370
+ 1. Product Landing Pages
371
+ Sell anything online with beautiful pages + Stripe payments
372
+ Example: Coffee shop, handmade goods, digital downloads
373
+
374
+ 2. Online Courses
375
+ Teach and sell courses with built-in curriculum and progress tracking
376
+ Example: Photography course, coding bootcamp, cooking classes
170
377
 
378
+ 3. Creator Platforms
379
+ Build your audience with content, subscriptions, and memberships
380
+ Example: Newsletter + paid tiers, podcast + shop, YouTube + merch
381
+
382
+ Which one sounds most interesting?
383
+
384
+ Or tell me about your business/idea, and I'll suggest the best fit!
385
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
171
386
  ```
172
- ❌ Website analysis failed
173
387
 
174
- Please try:
175
- 1. /onboard - Retry analysis
176
- 2. Manual setup in /[org-slug]/knowledge/
388
+ ---
177
389
 
178
- Need help? Ask me questions!
390
+ ## Implementation Notes
391
+
392
+ ### Background Processing
393
+ - Use Task tool with `run_in_background: true` for page creation
394
+ - Don't block user interaction while building
395
+ - Show progress updates
396
+ - Notify when complete
397
+
398
+ ### Template Selection Logic
399
+ ```typescript
400
+ // Pseudo-code for template matching
401
+ const keywords = {
402
+ ecommerce: ["sell", "product", "shop", "store", "buy", "merchandise", "goods", "price"],
403
+ lms: ["course", "teach", "learn", "education", "training", "lesson", "student"],
404
+ creator: ["creator", "content", "newsletter", "subscribe", "membership", "audience", "fans"]
405
+ };
406
+
407
+ function selectTemplate(userInput: string): string {
408
+ const input = userInput.toLowerCase();
409
+
410
+ for (const [template, words] of Object.entries(keywords)) {
411
+ if (words.some(word => input.includes(word))) {
412
+ return template;
413
+ }
414
+ }
415
+
416
+ return "custom"; // No template match, needs custom build
417
+ }
179
418
  ```
419
+
420
+ ### Success Metrics
421
+ Track onboarding success:
422
+ - Did user create their first page? ✓
423
+ - Did user add Stripe? (optional)
424
+ - Did user deploy? (optional)
425
+ - Did user ask follow-up questions? (engagement)
426
+
427
+ ---
428
+
429
+ ## Key Principles
430
+
431
+ 1. **Template-First:** Always search for matching template before custom builds
432
+ 2. **Conversational:** Feel like a helpful guide, not a technical assistant
433
+ 3. **Fast Success:** Get user to working page in < 5 minutes
434
+ 4. **Progressive Disclosure:** Show advanced features AFTER first success
435
+ 5. **Encouraging:** Celebrate wins, support through challenges
436
+ 6. **Clear Next Steps:** Always offer 2-3 actionable next steps
437
+
438
+ ---
439
+
440
+ **Built to guide users from idea to live page in minutes, with joy and confidence.**