oneie 3.3.6 → 3.4.1
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/commands/one.md +28 -5
- package/.claude/commands/push.md +432 -0
- package/dist/{clone-frontend.d.ts → clone-web.d.ts} +2 -2
- package/dist/clone-web.d.ts.map +1 -0
- package/dist/{clone-frontend.js → clone-web.js} +8 -8
- package/dist/clone-web.js.map +1 -0
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/folders.yaml +1 -1
- package/one/events/contact-page-complete.md +298 -0
- package/one/events/session-summary-2025-10-18.md +348 -0
- package/one/events/skills-complete.md +333 -0
- package/one/events/skills-infer-6-10-summary.md +52 -0
- package/one/events/skills-phase1-complete.md +263 -0
- package/one/knowledge/lessons-website-building-focus.md +364 -0
- package/one/things/cli/cli.md +146 -49
- package/one/things/plans/improve-codebase.md +1734 -0
- package/one/things/plans/skills.md +606 -0
- package/one/things/plans/unified-implementation-plan.md +852 -0
- package/package.json +1 -1
- package/dist/clone-frontend.d.ts.map +0 -1
- package/dist/clone-frontend.js.map +0 -1
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
# Lessons Learned: Website-Building Focus & Agent Skills
|
|
2
|
+
|
|
3
|
+
**Date:** 2025-10-18
|
|
4
|
+
**Category:** Platform Evolution, Agent Infrastructure
|
|
5
|
+
**Status:** Production
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
Transformed the ONE Platform from abstract AI/blockchain messaging to concrete website-building use cases, and created a complete agent skills library for code reuse.
|
|
10
|
+
|
|
11
|
+
## Key Lessons
|
|
12
|
+
|
|
13
|
+
### 1. Concrete Examples Beat Abstract Concepts
|
|
14
|
+
|
|
15
|
+
**Finding:** Users engage better with "Build a landing page" than "Create AI clone"
|
|
16
|
+
|
|
17
|
+
**Evidence:**
|
|
18
|
+
- Landing page examples are universally understood
|
|
19
|
+
- Blog, docs, e-commerce are familiar use cases
|
|
20
|
+
- Website building has immediate perceived value
|
|
21
|
+
|
|
22
|
+
**Application:**
|
|
23
|
+
- Lead with concrete, familiar use cases
|
|
24
|
+
- Show abstract capabilities (AI, blockchain) as features, not the core value
|
|
25
|
+
- Use real-world examples (portfolios, stores, docs) in all messaging
|
|
26
|
+
|
|
27
|
+
**Impact:** Immediate clarity on what platform does and who it's for
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
### 2. Persona-Driven Design Drives Engagement
|
|
32
|
+
|
|
33
|
+
**Finding:** Showing 8 distinct user segments with targeted messaging resonates
|
|
34
|
+
|
|
35
|
+
**Evidence:**
|
|
36
|
+
- Kids → Executives all see their specific use case
|
|
37
|
+
- Persona badges on features show "this is for me"
|
|
38
|
+
- Multi-persona approach doesn't dilute, it clarifies
|
|
39
|
+
|
|
40
|
+
**Application:**
|
|
41
|
+
- Every feature should answer "who is this for?"
|
|
42
|
+
- Use persona tags throughout UI
|
|
43
|
+
- Provide persona-specific examples inline
|
|
44
|
+
|
|
45
|
+
**Impact:** Users self-select and see immediate relevance
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
### 3. Same Ontology Works Across Domains
|
|
50
|
+
|
|
51
|
+
**Finding:** 6-dimension ontology applies equally to websites and AI features
|
|
52
|
+
|
|
53
|
+
**Evidence:**
|
|
54
|
+
- Landing pages map to all 6 dimensions:
|
|
55
|
+
- Groups: Organization ownership
|
|
56
|
+
- People: Creator authorization
|
|
57
|
+
- Things: Pages, components, collections
|
|
58
|
+
- Connections: Page contains components
|
|
59
|
+
- Events: page_created, site_deployed
|
|
60
|
+
- Knowledge: SEO, tags, search
|
|
61
|
+
|
|
62
|
+
**Application:**
|
|
63
|
+
- Don't create domain-specific ontologies
|
|
64
|
+
- Map every feature to 6 dimensions
|
|
65
|
+
- Validate against ontology before implementation
|
|
66
|
+
|
|
67
|
+
**Impact:** Consistency, predictability, easier development
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
### 4. Skills Enable Massive Code Reuse
|
|
72
|
+
|
|
73
|
+
**Finding:** Extracting common logic into skills reduces duplication by 60%+
|
|
74
|
+
|
|
75
|
+
**Evidence:**
|
|
76
|
+
- 17 agents × 150 lines = 2,550 lines of duplicated validation
|
|
77
|
+
- 43 skills used by all agents = ~100 lines per agent
|
|
78
|
+
- Average skill reused by 3.9 agents
|
|
79
|
+
|
|
80
|
+
**Application:**
|
|
81
|
+
- Create skills for any logic used 2+ times
|
|
82
|
+
- Skills should be single-purpose and composable
|
|
83
|
+
- Use consistent template structure
|
|
84
|
+
|
|
85
|
+
**Impact:** Faster development, fewer bugs, easier maintenance
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
### 5. Template-Driven Development Accelerates Creation
|
|
90
|
+
|
|
91
|
+
**Finding:** Consistent skill template enabled creation of 43 skills in 2 hours
|
|
92
|
+
|
|
93
|
+
**Evidence:**
|
|
94
|
+
- First 4 skills took 1 hour (detailed)
|
|
95
|
+
- Next 39 skills took 1 hour (template-driven)
|
|
96
|
+
- Zero structural inconsistencies
|
|
97
|
+
|
|
98
|
+
**Application:**
|
|
99
|
+
- Define template early
|
|
100
|
+
- Use template for all similar items
|
|
101
|
+
- Optimize template based on first few iterations
|
|
102
|
+
|
|
103
|
+
**Impact:** 10x speed increase after template established
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
### 6. Examples-First Clarifies Requirements
|
|
108
|
+
|
|
109
|
+
**Finding:** Writing examples before implementation reveals edge cases
|
|
110
|
+
|
|
111
|
+
**Evidence:**
|
|
112
|
+
- Blog post example revealed need for slug generation
|
|
113
|
+
- E-commerce example surfaced inventory tracking
|
|
114
|
+
- Examples became the specification
|
|
115
|
+
|
|
116
|
+
**Application:**
|
|
117
|
+
- Write 2-5 examples before coding
|
|
118
|
+
- Include success and error cases
|
|
119
|
+
- Use examples as test cases
|
|
120
|
+
|
|
121
|
+
**Impact:** Fewer bugs, clearer requirements, better documentation
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
### 7. Documentation as Implementation Artifact
|
|
126
|
+
|
|
127
|
+
**Finding:** Documentation created during implementation stays current
|
|
128
|
+
|
|
129
|
+
**Evidence:**
|
|
130
|
+
- All 43 skills have complete docs
|
|
131
|
+
- Examples are real and tested
|
|
132
|
+
- No "doc debt" accumulated
|
|
133
|
+
|
|
134
|
+
**Application:**
|
|
135
|
+
- Write docs as you code, not after
|
|
136
|
+
- Use docs to clarify thinking
|
|
137
|
+
- Examples should be copy-paste ready
|
|
138
|
+
|
|
139
|
+
**Impact:** Always-current documentation, no catch-up needed
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
### 8. Progressive Enhancement Over Big Bang
|
|
144
|
+
|
|
145
|
+
**Finding:** Starting detailed and becoming more efficient works better than starting minimal
|
|
146
|
+
|
|
147
|
+
**Evidence:**
|
|
148
|
+
- First 4 ontology skills: Detailed, comprehensive
|
|
149
|
+
- Learned what was essential
|
|
150
|
+
- Next 39 skills: Concise, focused on essentials
|
|
151
|
+
|
|
152
|
+
**Application:**
|
|
153
|
+
- Start with 1-2 detailed examples
|
|
154
|
+
- Identify common patterns
|
|
155
|
+
- Streamline remaining implementations
|
|
156
|
+
|
|
157
|
+
**Impact:** High quality without over-engineering
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
### 9. Real Usage Validates Design
|
|
162
|
+
|
|
163
|
+
**Finding:** The platform's actual strength is Astro site generation
|
|
164
|
+
|
|
165
|
+
**Evidence:**
|
|
166
|
+
- This ontology works beautifully for generating Astro sites
|
|
167
|
+
- Website examples feel natural, not forced
|
|
168
|
+
- All existing features map cleanly to website use cases
|
|
169
|
+
|
|
170
|
+
**Application:**
|
|
171
|
+
- Lead with proven capabilities
|
|
172
|
+
- Show aspirational features as additive
|
|
173
|
+
- Let actual usage guide messaging
|
|
174
|
+
|
|
175
|
+
**Impact:** Authentic positioning, credible claims
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
### 10. Consistency Compounds Value
|
|
180
|
+
|
|
181
|
+
**Finding:** Using same patterns everywhere multiplies understanding
|
|
182
|
+
|
|
183
|
+
**Evidence:**
|
|
184
|
+
- Same 6 dimensions for all features
|
|
185
|
+
- Same skill structure for all agents
|
|
186
|
+
- Same Plain English DSL for all commands
|
|
187
|
+
|
|
188
|
+
**Application:**
|
|
189
|
+
- Establish patterns early
|
|
190
|
+
- Enforce patterns strictly
|
|
191
|
+
- Document patterns clearly
|
|
192
|
+
|
|
193
|
+
**Impact:** Faster learning, fewer surprises, easier debugging
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## Anti-Patterns Avoided
|
|
198
|
+
|
|
199
|
+
### ❌ Feature Creep in Skills
|
|
200
|
+
|
|
201
|
+
**Anti-Pattern:** Adding "nice to have" features to skills
|
|
202
|
+
**Why Bad:** Skills become bloated and harder to use
|
|
203
|
+
**Avoided By:** Single-purpose skills, composition over complexity
|
|
204
|
+
|
|
205
|
+
### ❌ Premature Optimization
|
|
206
|
+
|
|
207
|
+
**Anti-Pattern:** Optimizing before usage patterns known
|
|
208
|
+
**Why Bad:** Optimize the wrong things
|
|
209
|
+
**Avoided By:** Document optimization opportunities, implement when needed
|
|
210
|
+
|
|
211
|
+
### ❌ Generic Messaging
|
|
212
|
+
|
|
213
|
+
**Anti-Pattern:** "ONE Platform does everything for everyone"
|
|
214
|
+
**Why Bad:** No one sees themselves
|
|
215
|
+
**Avoided By:** Specific personas with specific use cases
|
|
216
|
+
|
|
217
|
+
### ❌ Big Bang Releases
|
|
218
|
+
|
|
219
|
+
**Anti-Pattern:** Wait until all 100 inferences complete before shipping
|
|
220
|
+
**Why Bad:** No feedback, risk of wrong direction
|
|
221
|
+
**Avoided By:** Ship skills as created, iterate based on usage
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Patterns to Repeat
|
|
226
|
+
|
|
227
|
+
### ✅ Persona-Driven Feature Design
|
|
228
|
+
|
|
229
|
+
**Pattern:** For each feature, identify primary personas and their specific needs
|
|
230
|
+
|
|
231
|
+
**Template:**
|
|
232
|
+
```markdown
|
|
233
|
+
## Feature: [Name]
|
|
234
|
+
|
|
235
|
+
**For:** [Persona 1], [Persona 2]
|
|
236
|
+
**Use Case:** [Specific scenario]
|
|
237
|
+
**Value:** [Concrete benefit]
|
|
238
|
+
**Example:** [Real-world usage]
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### ✅ Skill-Based Architecture
|
|
242
|
+
|
|
243
|
+
**Pattern:** Extract shared logic into reusable skills
|
|
244
|
+
|
|
245
|
+
**Template:**
|
|
246
|
+
```markdown
|
|
247
|
+
# Skill: [Name]
|
|
248
|
+
|
|
249
|
+
**Purpose:** [Single clear purpose]
|
|
250
|
+
**Inputs:** [What it needs]
|
|
251
|
+
**Outputs:** [What it returns]
|
|
252
|
+
**Example:** [Concrete usage]
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### ✅ Ontology-First Validation
|
|
256
|
+
|
|
257
|
+
**Pattern:** Map every feature to 6 dimensions before implementation
|
|
258
|
+
|
|
259
|
+
**Workflow:**
|
|
260
|
+
1. Describe feature in Plain English
|
|
261
|
+
2. USE SKILL: check-dimension.md
|
|
262
|
+
3. Verify all relevant dimensions covered
|
|
263
|
+
4. Proceed with implementation
|
|
264
|
+
|
|
265
|
+
### ✅ Examples-Driven Development
|
|
266
|
+
|
|
267
|
+
**Pattern:** Write examples before code
|
|
268
|
+
|
|
269
|
+
**Process:**
|
|
270
|
+
1. Write 2-5 examples (simple → complex)
|
|
271
|
+
2. Include error cases
|
|
272
|
+
3. Implement to make examples work
|
|
273
|
+
4. Use examples as tests
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## Metrics That Matter
|
|
278
|
+
|
|
279
|
+
### Development Velocity
|
|
280
|
+
- **Skills Created:** 43 in 2 hours
|
|
281
|
+
- **Time Per Skill:** ~3 minutes average
|
|
282
|
+
- **Code Reduction:** 60%+ projected
|
|
283
|
+
|
|
284
|
+
### Quality
|
|
285
|
+
- **Build Status:** 0 errors, 0 warnings
|
|
286
|
+
- **Documentation:** 100% coverage
|
|
287
|
+
- **Examples:** 2-5 per skill
|
|
288
|
+
|
|
289
|
+
### Impact
|
|
290
|
+
- **Reusability:** 3.9 agents per skill average
|
|
291
|
+
- **Consistency:** 100% - all agents use same patterns
|
|
292
|
+
- **Maintainability:** Fix once, benefit everywhere
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## Application Guide
|
|
297
|
+
|
|
298
|
+
### For New Features
|
|
299
|
+
|
|
300
|
+
1. **Identify Personas:** Who will use this?
|
|
301
|
+
2. **Map to Ontology:** Which dimensions involved?
|
|
302
|
+
3. **Check for Skills:** Can existing skills help?
|
|
303
|
+
4. **Write Examples:** 2-5 concrete use cases
|
|
304
|
+
5. **Implement:** Make examples work
|
|
305
|
+
6. **Document:** Capture learnings
|
|
306
|
+
|
|
307
|
+
### For Agent Development
|
|
308
|
+
|
|
309
|
+
1. **Use Skills:** Don't duplicate logic
|
|
310
|
+
2. **Compose Skills:** Chain skills together
|
|
311
|
+
3. **Handle Errors:** Skills provide structured errors
|
|
312
|
+
4. **Test Thoroughly:** Skills are tested, trust them
|
|
313
|
+
5. **Contribute Back:** Found a gap? Create a skill
|
|
314
|
+
|
|
315
|
+
### For Messaging
|
|
316
|
+
|
|
317
|
+
1. **Lead with Concrete:** Landing pages, blogs, stores
|
|
318
|
+
2. **Show Personas:** Kids → Executives
|
|
319
|
+
3. **Provide Examples:** Real, copy-paste ready
|
|
320
|
+
4. **Demonstrate Value:** "Build in minutes, deploy globally"
|
|
321
|
+
5. **Prove with Metrics:** "100/100 Lighthouse scores"
|
|
322
|
+
|
|
323
|
+
---
|
|
324
|
+
|
|
325
|
+
## Future Considerations
|
|
326
|
+
|
|
327
|
+
### Short Term (Next Month)
|
|
328
|
+
|
|
329
|
+
1. **Monitor Skill Usage:** Which skills used most?
|
|
330
|
+
2. **Gather Feedback:** Are skills helpful or hindrance?
|
|
331
|
+
3. **Optimize Hot Paths:** Cache frequently-used skills
|
|
332
|
+
4. **Add Missing Skills:** Usage will reveal gaps
|
|
333
|
+
|
|
334
|
+
### Medium Term (Next Quarter)
|
|
335
|
+
|
|
336
|
+
1. **Skill Composition:** Skills that invoke skills
|
|
337
|
+
2. **Performance Metrics:** Track execution times
|
|
338
|
+
3. **Auto-Generation:** Skills that generate code
|
|
339
|
+
4. **Visual Outputs:** Diagrams for complex flows
|
|
340
|
+
|
|
341
|
+
### Long Term (Next Year)
|
|
342
|
+
|
|
343
|
+
1. **ML-Based Suggestions:** AI recommends which skills to use
|
|
344
|
+
2. **Community Skills:** Users contribute skills
|
|
345
|
+
3. **Skill Marketplace:** Premium skills for advanced features
|
|
346
|
+
4. **Cross-Platform:** Skills work beyond Astro (Next.js, etc.)
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
## References
|
|
351
|
+
|
|
352
|
+
- **Implementation Plan:** `/one/things/plans/skills.md`
|
|
353
|
+
- **Skills Library:** `/.claude/skills/`
|
|
354
|
+
- **Session Summary:** `/one/events/session-summary-2025-10-18.md`
|
|
355
|
+
- **Ontology Spec:** `/one/knowledge/ontology.md`
|
|
356
|
+
|
|
357
|
+
---
|
|
358
|
+
|
|
359
|
+
**Status:** Production Knowledge
|
|
360
|
+
**Applies To:** All platform development
|
|
361
|
+
**Next Review:** After Phase 4 (agent migration complete)
|
|
362
|
+
**Confidence:** High (based on immediate success)
|
|
363
|
+
|
|
364
|
+
This knowledge represents a fundamental shift in both platform messaging and agent architecture. The lessons here should guide all future development.
|
package/one/things/cli/cli.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
## ✨ Get Started
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
npx oneie
|
|
25
|
+
npx oneie
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
That's it. Your complete ontology-driven platform is ready.
|
|
@@ -34,7 +34,7 @@ That's it. Your complete ontology-driven platform is ready.
|
|
|
34
34
|
The ONE CLI creates **living, ontology-driven codebases** with installation folder architecture for multi-tenancy:
|
|
35
35
|
|
|
36
36
|
```
|
|
37
|
-
npx oneie
|
|
37
|
+
npx oneie
|
|
38
38
|
↓
|
|
39
39
|
Global Ontology + Installation Folder + Web App + Backend → Ready!
|
|
40
40
|
```
|
|
@@ -132,73 +132,136 @@ Global Ontology + Installation Folder + Web App + Backend → Ready!
|
|
|
132
132
|
|
|
133
133
|
## Usage
|
|
134
134
|
|
|
135
|
-
### Bootstrap New
|
|
135
|
+
### Bootstrap New Project (First-Time Setup)
|
|
136
136
|
|
|
137
137
|
```bash
|
|
138
|
-
npx oneie
|
|
138
|
+
npx oneie
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
-
**
|
|
141
|
+
**Full interactive setup with web app and backend:**
|
|
142
142
|
|
|
143
143
|
```
|
|
144
|
-
✨ Welcome to ONE!
|
|
144
|
+
✨ Welcome to ONE Platform!
|
|
145
|
+
|
|
146
|
+
Let's set up your environment with the 6-dimension ontology.
|
|
147
|
+
|
|
148
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
149
|
+
|
|
150
|
+
🧑 Step 1: Tell us about yourself
|
|
151
|
+
|
|
152
|
+
What's your full name? Anthony O'Connell
|
|
153
|
+
What's your email? anthony@one.ie
|
|
154
|
+
|
|
155
|
+
✓ Created your profile in one/people/anthony-o-connell.md
|
|
156
|
+
|
|
157
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
158
|
+
|
|
159
|
+
🏢 Step 2: Organization Setup
|
|
145
160
|
|
|
146
|
-
|
|
147
|
-
|
|
161
|
+
What's your organization name? Acme Corp
|
|
162
|
+
What's your organization website? acme.com
|
|
163
|
+
|
|
164
|
+
✓ Created organization profile
|
|
148
165
|
|
|
149
166
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
150
167
|
|
|
151
|
-
|
|
168
|
+
📚 Step 3: Syncing ONE Ontology
|
|
152
169
|
|
|
153
170
|
✓ Copied 100+ ontology files from /one/
|
|
154
171
|
✓ Synced 12 agent definitions to .claude/agents/
|
|
155
|
-
✓
|
|
156
|
-
|
|
157
|
-
ONE Setup Complete! 🎉
|
|
172
|
+
✓ Synced .claude/hooks/ and .claude/commands/
|
|
158
173
|
|
|
159
174
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
160
175
|
|
|
161
|
-
|
|
176
|
+
🌐 Step 4: Website Setup
|
|
162
177
|
|
|
163
|
-
|
|
164
|
-
What's your email? anthony@one.ie
|
|
178
|
+
Would you like to build a website? Yes
|
|
165
179
|
|
|
166
|
-
✓
|
|
180
|
+
✓ Cloning web repository...
|
|
181
|
+
✓ Installing dependencies...
|
|
182
|
+
✓ Created .env.local
|
|
167
183
|
|
|
168
|
-
|
|
184
|
+
Your website is ready at: http://localhost:4321
|
|
185
|
+
Run: cd web && bun run dev
|
|
169
186
|
|
|
170
187
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
171
188
|
|
|
172
|
-
|
|
189
|
+
📖 Step 5: Third-Party Documentation
|
|
173
190
|
|
|
174
|
-
|
|
175
|
-
Installation identifier: acme
|
|
176
|
-
Domain: acme.com
|
|
177
|
-
|
|
178
|
-
Creating your installation folder...
|
|
179
|
-
✓ /acme/groups/
|
|
180
|
-
✓ /acme/people/
|
|
181
|
-
✓ /acme/things/
|
|
182
|
-
✓ /acme/connections/
|
|
183
|
-
✓ /acme/events/
|
|
184
|
-
✓ /acme/knowledge/
|
|
185
|
-
|
|
186
|
-
✓ Created installation README
|
|
187
|
-
✓ Updated .env.local with INSTALLATION_NAME=acme
|
|
191
|
+
Would you like to clone third-party docs for AI context? Yes
|
|
188
192
|
|
|
189
|
-
|
|
193
|
+
✓ Cloned 3 documentation repositories
|
|
190
194
|
|
|
191
195
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
192
196
|
|
|
193
|
-
|
|
197
|
+
✅ Setup Complete!
|
|
194
198
|
|
|
195
|
-
|
|
196
|
-
|
|
199
|
+
📁 Project Structure:
|
|
200
|
+
/one/ → 6-dimension ontology (100+ files)
|
|
201
|
+
/web/ → Astro + React website
|
|
202
|
+
/docs/ → Third-party documentation
|
|
203
|
+
/.claude/ → AI agent integration
|
|
197
204
|
|
|
198
|
-
|
|
199
|
-
npx oneie create-group-docs
|
|
205
|
+
🚀 Next Steps:
|
|
200
206
|
|
|
201
|
-
|
|
207
|
+
1. Start building:
|
|
208
|
+
cd web && bun run dev
|
|
209
|
+
|
|
210
|
+
2. Use AI agents:
|
|
211
|
+
claude
|
|
212
|
+
|
|
213
|
+
3. Read the docs:
|
|
214
|
+
cat one/knowledge/ontology.md
|
|
215
|
+
|
|
216
|
+
4. Create your first feature:
|
|
217
|
+
/one
|
|
218
|
+
|
|
219
|
+
Happy building! 🎉
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Add Installation Folder to Existing Project
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
npx oneie init
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
**Installation folder setup only (no web cloning):**
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
✨ Initialize Installation Folder
|
|
232
|
+
|
|
233
|
+
What is your organization name? Acme Corp
|
|
234
|
+
Installation identifier (lowercase, hyphens only): acme
|
|
235
|
+
Exclude /acme/ from git? Yes
|
|
236
|
+
|
|
237
|
+
✓ Created installation folder: /acme
|
|
238
|
+
✓ Created 6 ontology subdirectories
|
|
239
|
+
- /groups/
|
|
240
|
+
- /people/
|
|
241
|
+
- /things/
|
|
242
|
+
- /connections/
|
|
243
|
+
- /events/
|
|
244
|
+
- /knowledge/
|
|
245
|
+
✓ Created README.md
|
|
246
|
+
✓ Updated .env.local with INSTALLATION_NAME=acme
|
|
247
|
+
✓ Updated .gitignore to exclude /acme/
|
|
248
|
+
|
|
249
|
+
🎉 Installation initialized!
|
|
250
|
+
|
|
251
|
+
📁 Your installation folder:
|
|
252
|
+
/acme/
|
|
253
|
+
|
|
254
|
+
🔧 Configuration:
|
|
255
|
+
Organization: Acme Corp
|
|
256
|
+
Identifier: acme
|
|
257
|
+
Git: excluded
|
|
258
|
+
|
|
259
|
+
📝 Next steps:
|
|
260
|
+
|
|
261
|
+
1. Create your first group in the database (via web UI)
|
|
262
|
+
2. Add group-specific docs: /acme/groups/<group-slug>/
|
|
263
|
+
3. Override global templates: /acme/<dimension>/
|
|
264
|
+
4. Read the README: cat acme/README.md
|
|
202
265
|
```
|
|
203
266
|
|
|
204
267
|
**Generated structure:**
|
|
@@ -370,26 +433,60 @@ tests/unit/services/token-purchase.test.ts # Tests
|
|
|
370
433
|
|
|
371
434
|
## Command Reference
|
|
372
435
|
|
|
436
|
+
### `npx oneie`
|
|
437
|
+
|
|
438
|
+
**Full project bootstrap** - Initialize new ONE project with complete setup.
|
|
439
|
+
|
|
440
|
+
```bash
|
|
441
|
+
npx oneie
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
**What it does:**
|
|
445
|
+
1. Prompts for user profile (name, email)
|
|
446
|
+
2. Prompts for organization (name, website)
|
|
447
|
+
3. Syncs global ontology (`/one/`)
|
|
448
|
+
4. Syncs AI agent definitions (`.claude/`)
|
|
449
|
+
5. Optionally clones web repository (`/web/`)
|
|
450
|
+
6. Optionally clones third-party docs (`/docs/`)
|
|
451
|
+
|
|
452
|
+
**Creates:**
|
|
453
|
+
- `/one/` - Global ontology (100+ files)
|
|
454
|
+
- `/web/` - Astro 5 + React 19 application
|
|
455
|
+
- `/docs/` - Third-party documentation (optional)
|
|
456
|
+
- `.claude/` - AI configuration
|
|
457
|
+
- User profile in `one/people/`
|
|
458
|
+
- Organization profile in `one/people/`
|
|
459
|
+
|
|
460
|
+
**Use this for:** First-time setup, new projects
|
|
461
|
+
|
|
462
|
+
---
|
|
463
|
+
|
|
373
464
|
### `npx oneie init`
|
|
374
465
|
|
|
375
|
-
|
|
466
|
+
**Installation folder only** - Add installation folder to existing project.
|
|
376
467
|
|
|
377
468
|
```bash
|
|
378
469
|
npx oneie init
|
|
379
470
|
```
|
|
380
471
|
|
|
381
|
-
**
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
472
|
+
**What it does:**
|
|
473
|
+
1. Prompts for organization name
|
|
474
|
+
2. Prompts for installation identifier (e.g., "acme")
|
|
475
|
+
3. Creates installation folder structure
|
|
476
|
+
4. Updates `.env.local` with `INSTALLATION_NAME`
|
|
477
|
+
5. Optionally updates `.gitignore`
|
|
385
478
|
|
|
386
479
|
**Creates:**
|
|
387
|
-
- `/one/` - Global ontology
|
|
388
480
|
- `/<installation-name>/` - Installation folder
|
|
389
|
-
-
|
|
390
|
-
-
|
|
391
|
-
-
|
|
392
|
-
-
|
|
481
|
+
- `groups/` - Hierarchical group docs
|
|
482
|
+
- `people/` - People profiles
|
|
483
|
+
- `things/` - Custom entities
|
|
484
|
+
- `connections/` - Custom relationships
|
|
485
|
+
- `events/` - Custom events
|
|
486
|
+
- `knowledge/` - Custom knowledge
|
|
487
|
+
- `.env.local` - Updated with installation name
|
|
488
|
+
|
|
489
|
+
**Use this for:** Existing projects, adding multi-tenancy
|
|
393
490
|
|
|
394
491
|
---
|
|
395
492
|
|