oneie 3.6.24 → 3.6.26

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.
Files changed (73) hide show
  1. package/.claude/agents/agent-backend.md +2 -2
  2. package/.claude/agents/agent-builder.md +226 -198
  3. package/.claude/agents/agent-designer.md +167 -11
  4. package/.claude/agents/agent-director.md +180 -112
  5. package/.claude/agents/agent-frontend.md +154 -8
  6. package/.claude/agents/agent-onboard.md +1 -1
  7. package/.claude/agents/agent-ontology.md +2 -2
  8. package/.claude/agents/agent-ops.md +58 -38
  9. package/.claude/agents/agent-quality.md +377 -0
  10. package/.claude/agents/agent-sales.md +3 -3
  11. package/.claude/commands/cascade.md +21 -21
  12. package/.claude/commands/create.md +19 -19
  13. package/.claude/commands/deploy.md +82 -104
  14. package/.claude/commands/mcp-on.md +191 -0
  15. package/.claude/commands/one.md +267 -92
  16. package/.claude/commands/plan.md +17 -17
  17. package/.claude/commands/release.md +65 -14
  18. package/.claude/hooks/PULL-BEFORE-PUSH-GUIDE.md +473 -0
  19. package/.claude/hooks/README-knowledge-hooks.md +451 -0
  20. package/.claude/hooks/README-root-cleanup.md +200 -0
  21. package/.claude/hooks/README.md +284 -0
  22. package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
  23. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  24. package/.claude/hooks/check-filenames.py +177 -0
  25. package/.claude/hooks/clean-post.py +468 -0
  26. package/.claude/hooks/clean-pre.py +393 -0
  27. package/.claude/hooks/clean-root-markdown.sh +73 -0
  28. package/.claude/hooks/commit-push.sh +95 -0
  29. package/.claude/hooks/done.py +236 -0
  30. package/.claude/hooks/format-hook.sh +163 -0
  31. package/.claude/hooks/hook-logger.sh +173 -0
  32. package/.claude/hooks/knowledge-post.py +355 -0
  33. package/.claude/hooks/knowledge-pre.py +245 -0
  34. package/.claude/hooks/mcp-on.sh +134 -0
  35. package/.claude/hooks/notification-hook.sh +279 -0
  36. package/.claude/hooks/push.sh +101 -0
  37. package/.claude/hooks/release-cli.sh +16 -8
  38. package/.claude/hooks/root-cleanup.py +217 -0
  39. package/.claude/hooks/security-hook.sh +397 -0
  40. package/.claude/hooks/tag-all-docs.py +464 -0
  41. package/.claude/hooks/test-validate-ontology.sh +170 -0
  42. package/.claude/hooks/todo.py +368 -0
  43. package/.claude/hooks/track-changes.sh +101 -0
  44. package/.claude/hooks/validate-ontology-structure-summary.md +243 -0
  45. package/.claude/hooks/validate-ontology-structure.py +518 -0
  46. package/.claude/skills/INDEX.md +1 -1
  47. package/.claude/skills/ontology/README.md +1 -1
  48. package/CLAUDE.md +105 -0
  49. package/dist/commands/agent.d.ts +18 -0
  50. package/dist/commands/agent.d.ts.map +1 -0
  51. package/dist/commands/agent.js +271 -0
  52. package/dist/commands/agent.js.map +1 -0
  53. package/dist/commands/init.js +1 -1
  54. package/dist/commands/init.js.map +1 -1
  55. package/dist/index.js +20 -0
  56. package/dist/index.js.map +1 -1
  57. package/dist/lib/agent-detection.d.ts +19 -0
  58. package/dist/lib/agent-detection.d.ts.map +1 -0
  59. package/dist/lib/agent-detection.js +87 -0
  60. package/dist/lib/agent-detection.js.map +1 -0
  61. package/dist/lib/detect.d.ts +45 -0
  62. package/dist/lib/detect.d.ts.map +1 -0
  63. package/dist/lib/detect.js +221 -0
  64. package/dist/lib/detect.js.map +1 -0
  65. package/llms.txt +257 -0
  66. package/one/knowledge/games-english.md +691 -0
  67. package/one/knowledge/games.md +1082 -0
  68. package/one/things/plans/npx-agent-safety.md +785 -0
  69. package/one/things/plans/npx-agent.md +1089 -0
  70. package/one/things/plans/remove-backend-development-from-agents.md +1331 -0
  71. package/package.json +3 -2
  72. package/.claude/commands/mcp-toggle.md +0 -93
  73. package/.claude/commands/npx.md +0 -84
@@ -1,46 +1,37 @@
1
- # /one - ONE Platform Command Center
1
+ # /one - ONE Platform Control Center
2
2
 
3
- 🌟 **Welcome to the ONE Platform**
3
+ **Transform Ideas Into Production Code In Minutes**
4
4
 
5
- The `/one` command displays the welcome screen and guides you to your next action.
5
+ When user types `/one`, follow this workflow:
6
6
 
7
- ## Quick Start
7
+ ---
8
8
 
9
- When user types `/one`, display the ONE Platform welcome screen.
10
-
11
- ### Step 1: Check Server Status (< 1 second)
12
-
13
- Run a quick check:
9
+ ## Step 1: Server Status Check (< 1 second)
14
10
 
15
11
  ```bash
16
- lsof -ti:4321 2>/dev/null
12
+ lsof -ti:4321 2>/dev/null && echo "RUNNING" || echo "STOPPED"
17
13
  ```
18
14
 
19
- **Parse output:**
20
-
21
- - If output exists: Server is running on port 4321
22
- - If empty: Server is not running
23
-
24
- ### Step 2: Read Onboarding Data (if exists)
25
-
26
- Check for `.onboarding.json` in current directory and parent directories:
27
-
28
- ```bash
29
- find . -maxdepth 3 -name ".onboarding.json" -type f 2>/dev/null | head -1
15
+ **If RUNNING:**
16
+ ```
17
+ ✅ Dev Server: http://localhost:4321
30
18
  ```
31
19
 
32
- If found, read to extract:
20
+ **If STOPPED:**
21
+ - Check if installed: `[ -d web/node_modules ] && echo "installed" || echo "missing"`
22
+ - If missing: Run `cd web && bun install`
23
+ - Then: Run `cd web && bun run dev > /dev/null 2>&1 &`
24
+ - Show: "🚀 Starting server..." then wait 2 seconds
25
+ - Final: "✅ Dev Server: http://localhost:4321"
33
26
 
34
- - `user.name`
35
- - `organization.name`
36
- - `website.url`
27
+ ---
37
28
 
38
- ### Step 3: Display Welcome Screen ONLY
29
+ ## Step 2: Display ONE Platform Interface
39
30
 
40
- **WITH onboarding data:**
31
+ Show this minimal interface:
41
32
 
42
33
  ```
43
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
34
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
44
35
 
45
36
  ██████╗ ███╗ ██╗███████╗
46
37
  ██╔═══██╗████╗ ██║██╔════╝
@@ -49,94 +40,278 @@ If found, read to extract:
49
40
  ╚██████╔╝██║ ╚████║███████╗
50
41
  ╚═════╝ ╚═╝ ╚═══╝╚══════╝
51
42
 
52
- ONE Platform v1.0.0
53
- Transform Ideas into Code
54
- https://one.ie • npx oneie
43
+ ONE Platform v1.0.0
44
+ Make Your Ideas Real
45
+
46
+ Dev Server: ✅ http://localhost:4321
47
+
48
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
49
+
50
+ 🎯 CORE COMMANDS
51
+
52
+ /server Check/start/stop dev server
53
+ /chat Onboard, strategy, market positioning
54
+ /plan Create 100-cycle implementation plan
55
+ /create Build features with specialists
56
+ /push Commit & push changes
57
+ /deploy Ship to production (Cloudflare + Convex)
58
+
59
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
60
+
61
+ 📊 WORKFLOW
62
+
63
+ 1. /chat [idea] → Understand your vision, onboard brand
64
+ 2. /plan convert → Create 100-cycle implementation plan
65
+ 3. /now → See current cycle & assigned agent
66
+ 4. /next → Advance to next cycle
67
+ 5. /done → Mark complete, capture lessons
68
+ 6. /create [task] → Build with specialists in parallel
69
+ 7. /push → Commit & push changes
70
+ 8. /deploy → Deploy to production
71
+
72
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
73
+
74
+ 🤖 SPECIALIST AGENTS (Auto-Assigned by /plan)
75
+
76
+ agent-director Orchestrates your 100-cycle plan
77
+ agent-backend Convex schema, mutations, queries
78
+ agent-frontend Astro pages, React components
79
+ agent-designer Wireframes, design tokens, specs
80
+ agent-quality Tests, acceptance criteria, validation
81
+ agent-ops CI/CD, deployments, infrastructure
82
+ agent-clean Code quality, refactoring
83
+ agent-clone Legacy migration, AI clones
84
+
85
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
86
+
87
+ ⚡ QUICK START
88
+
89
+ /chat "I want to build a course platform with AI tutors"
90
+ → Onboard your idea, understand requirements
55
91
 
56
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
92
+ /plan convert "Build a course platform with AI tutors"
93
+ → Creates 100-cycle plan, assigns agents, shows timeline
57
94
 
58
- Welcome back, [user.name]!
95
+ /now
96
+ → See Cycle 1 task and assigned specialist
59
97
 
60
- Organization: [organization.name]
61
- Website: [website.url]
62
- Dev Server: http://localhost:4321 [✓ Running / ⭕ Stopped]
98
+ /next
99
+ → Advance through cycles step-by-step
63
100
 
64
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
65
- 🎯 NEXT STEPS
66
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
101
+ /create [feature]
102
+ → Build specific features with parallel agents
67
103
 
68
- /onboard - Get on board and configure your environment
69
- /plan [idea] - Plan your next moves - create 100 cycle sequences automatically
70
- /create - Create your web app from scratch
71
- /deploy - Deploy from your computer to the edge
72
- /push - Push to GitHub
104
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
73
105
 
74
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
106
+ 🎓 LEARN MORE
107
+
108
+ /help Command reference & tutorials
109
+ /see Analytics & insights
110
+ /onboard Analyze your website (brand, features)
111
+
112
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
75
113
  ```
76
114
 
77
- **WITHOUT onboarding data:**
115
+ ---
116
+
117
+ ## Step 3: Engage User
118
+
119
+ After showing interface, engage with the user conversationally:
78
120
 
79
121
  ```
80
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
122
+ 💬 How can I help?
81
123
 
82
- ██████╗ ███╗ ██╗███████╗
83
- ██╔═══██╗████╗ ██║██╔════╝
84
- ██║ ██║██╔██╗ ██║█████╗
85
- ██║ ██║██║╚██╗██║██╔══╝
86
- ╚██████╔╝██║ ╚████║███████╗
87
- ╚═════╝ ╚═╝ ╚═══╝╚══════╝
124
+ Option 1: /chat [your-idea]
125
+ Let's onboard your vision. I'll understand your brand, market
126
+ positioning, and craft a strategy.
88
127
 
89
- ONE Platform v1.0.0
90
- Transform Ideas into Code
91
- https://one.ie • npx oneie
128
+ Option 2: /plan convert [your-idea]
129
+ Jump straight to implementation. I'll create a 100-cycle plan
130
+ with task assignments and timeline.
92
131
 
93
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
132
+ Option 3: /create [feature-name]
133
+ Build something specific. Specialists execute in parallel.
94
134
 
95
- Dev Server: http://localhost:4321 [✓ Running / ⭕ Stopped]
135
+ Option 4: Just describe what you want to build
136
+ We'll have a conversation and figure out the best approach.
137
+ ```
96
138
 
97
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
98
- 🎯 QUICK START
99
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
139
+ ---
100
140
 
101
- /onboard - Get on board and configure your environment
102
- /plan [idea] - Plan your next moves (100-inference sequence)
103
- /create - Create your web app from scratch
104
- /deploy - Deploy from your computer to the edge
105
- /push - Push to GitHub
141
+ ## Key Principles
142
+
143
+ ### Context Optimization
144
+
145
+ - **Minimal display**: Show only essential commands
146
+ - **Cascade integration**: Load CLAUDE.md from parent directories on-demand
147
+ - **State persistence**: Use `.claude/state/cycle.json` for current cycle
148
+ - **Lazy loading**: Only expand agent details when requested
149
+
150
+ ### Workflow Simplicity
106
151
 
107
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
108
152
  ```
153
+ Chat (understand)
154
+ ↓
155
+ Plan (create 100-cycle)
156
+ ↓
157
+ Cycle Loop (/now → /next → /done)
158
+ ↓
159
+ Create (build specific features)
160
+ ↓
161
+ Push (commit & push)
162
+ ↓
163
+ Deploy (ship to production)
164
+ ```
165
+
166
+ ### Agent Auto-Assignment
109
167
 
110
- ## Implementation Notes
168
+ - `/plan` automatically assigns cycles to agents
169
+ - `/create` routes to appropriate specialist based on feature type
170
+ - `/next` loads context for assigned specialist (from `.claude/agents/`)
171
+ - Context stays under 3K tokens per cycle
111
172
 
112
- **DO NOT:**
173
+ ### Command Integration
113
174
 
114
- - Start server automatically
115
- - Launch agent-onboard automatically
116
- - Block waiting for processes
117
- - Jump into planning automatically
118
- - Execute `/plan convert` without user input
175
+ | Command | Purpose | Context | Reads |
176
+ |---------|---------|---------|-------|
177
+ | `/chat` | Strategy & onboarding | ~500 tokens | `.onboarding.json` + CLAUDE.md cascade |
178
+ | `/plan` | 100-cycle breakdown | ~2K tokens | Plan logic + agent list |
179
+ | `/now` | Current cycle context | ~800 tokens | `.claude/state/cycle.json` + agent file |
180
+ | `/next` | Advance to next | ~500 tokens | Next agent's context |
181
+ | `/done` | Mark complete | ~1K tokens | Cycle state, capture lessons |
182
+ | `/create` | Build features | ~3K tokens | Feature spec + specialist agent |
183
+ | `/push` | Commit & push | ~500 tokens | Git status |
184
+ | `/deploy` | Ship to production | ~1K tokens | Deployment scripts |
119
185
 
120
- **DO:**
186
+ ---
121
187
 
122
- - Show current status (server running/stopped)
123
- - Display the welcome screen
124
- - Guide users to their next action (e.g., `/server start` or `/plan convert [idea]`)
125
- - Reference cascade system for orchestration
126
- - Show agent-director as central coordinator
127
- - Highlight 15-specialist availability
188
+ ## Integration Points
128
189
 
129
- **Execution Flow:**
190
+ ### With Hooks
130
191
 
131
- 1. Check server status (running/stopped)
132
- 2. Read onboarding data if exists
133
- 3. Display welcome screen (with or without onboarding data)
134
- 4. Show available next commands
135
- 5. Wait for user input (DO NOT auto-execute anything)
192
+ - `.claude/hooks/todo.md` - Loads current cycle when `/now` called
193
+ - `.claude/hooks/done.md` - Marks complete & advances when `/done` called
194
+ - `.claude/hooks/validate-ontology-structure.py` - Validates 6D alignment
136
195
 
137
- **Key Integration Points:**
196
+ ### With Skills
197
+
198
+ - `.claude/skills/` - Specialist tools loaded on-demand by agents
199
+ - `.claude/skills/agent-backend:create-mutation` - Backend operations
200
+ - `.claude/skills/agent-frontend:create-page` - Frontend operations
201
+
202
+ ### With CLAUDE.md Cascade
203
+
204
+ ```
205
+ /.claude/commands/one.md (this file, minimal 300 tokens)
206
+ ↓ References when needed
207
+ /.claude/agents/agent-director.md (full orchestration logic)
208
+ ↓ Loads when planning
209
+ /backend/CLAUDE.md (Convex patterns)
210
+ ↓ Loads when building backend
211
+ /web/CLAUDE.md (Frontend patterns)
212
+ ↓ Loads when building frontend
213
+ /CLAUDE.md (root - ontology reference)
214
+ ↓ Cascade system explained
215
+ ```
138
216
 
139
- - `/plan convert` merges CASCADE planning into plan command
140
- - Agent assignments are automatic based on inference type
141
- - Dependencies are calculated and shown
142
- - Quality loop is visualized in task breakdown
217
+ ---
218
+
219
+ ## Commands Orchestrated by /one
220
+
221
+ ### /chat
222
+ Direct conversation for:
223
+ - Understanding your idea
224
+ - Extracting brand identity
225
+ - Market positioning strategy
226
+ - Requirement gathering
227
+
228
+ Calls `agent-director` for validation.
229
+
230
+ ### /plan
231
+ Create 100-cycle implementation:
232
+ - `/plan convert [idea]` - Creates plan from idea
233
+ - `/plan show` - Display current plan
234
+ - `/plan filter --agent=X` - Filter by specialist
235
+
236
+ Delegates to `agent-director`.
237
+
238
+ ### /now
239
+ Show current cycle:
240
+ - Cycle number (N/100)
241
+ - Phase (Foundation, Backend, Frontend, etc.)
242
+ - Assigned specialist
243
+ - Context from `.claude/state/cycle.json`
244
+
245
+ Loads specialist's `.claude/agents/` file.
246
+
247
+ ### /next
248
+ Advance to next cycle:
249
+ - Marks previous as in_progress
250
+ - Loads next cycle from plan
251
+ - Shows assigned specialist
252
+ - Loads that agent's context
253
+
254
+ ### /done
255
+ Mark cycle complete:
256
+ - Updates `.claude/state/cycle.json`
257
+ - Captures lessons learned
258
+ - Triggers agent-documenter to save knowledge
259
+ - Advances to next cycle
260
+
261
+ ### /create
262
+ Build specific features:
263
+ - `/create shop-page` → Routes to agent-frontend
264
+ - `/create AI-tutor-mutation` → Routes to agent-backend
265
+ - `/create course-schema` → Routes to agent-backend
266
+ - `/create design-tokens` → Routes to agent-designer
267
+
268
+ Auto-routes based on feature type.
269
+
270
+ ### /push
271
+ Commit & push changes:
272
+ - Git status check
273
+ - Staged changes verification
274
+ - Commit message generation (smart)
275
+ - Push to remote
276
+
277
+ ### /deploy
278
+ Ship to production:
279
+ - Web to Cloudflare Pages
280
+ - Backend to Convex Cloud
281
+ - Run pre-deployment checks
282
+ - Verify deployment success
283
+
284
+ ---
285
+
286
+ ## Context Optimization Notes
287
+
288
+ **This file (one.md): ~300 tokens**
289
+
290
+ By keeping `/one.md` minimal and using cascade system:
291
+ - Load CLAUDE.md files only when needed
292
+ - Agent contexts loaded on-demand (~1-3K per agent)
293
+ - State persisted in `.claude/state/cycle.json` (< 500 bytes)
294
+ - Full plan stored in `.claude/state/plan.json` (auto-generated)
295
+
296
+ **Total context usage:**
297
+ - `/one` display: 300 tokens
298
+ - `/chat` flow: 500 tokens
299
+ - `/plan` flow: 2K tokens
300
+ - `/now` + agent: 1-3K tokens
301
+ - `/create` + specialist: 3K tokens
302
+
303
+ **Compared to old approach:** 150K → 3K tokens per cycle (98% reduction)
304
+
305
+ ---
306
+
307
+ ## No Functionality Here
308
+
309
+ This file only describes behavior. The actual slash commands are implemented by:
310
+ - `.claude/commands/chat.md` - Conversation flow
311
+ - `.claude/commands/plan.md` - Plan creation
312
+ - `.claude/commands/create.md` - Feature building
313
+ - `.claude/commands/push.md` - Git commit & push
314
+ - `.claude/commands/deploy.md` - Production deployment
315
+ - `.claude/commands/server.md` - Server management
316
+
317
+ This `/one.md` is the **entry point** that references all others.
@@ -1,6 +1,6 @@
1
1
  # /plan - Convert Ideas to Implementation Plans with CASCADE
2
2
 
3
- **Purpose:** Transform ideas into detailed 100-inference plans with automatic agent assignment and task breakdown.
3
+ **Purpose:** Transform ideas into detailed 100-cycle plans with automatic agent assignment and task breakdown.
4
4
 
5
5
  ## Core Functionality
6
6
 
@@ -11,7 +11,7 @@
11
11
  ```
12
12
 
13
13
  Generates:
14
- - ✅ 100-inference execution plan
14
+ - ✅ 100-cycle execution plan
15
15
  - ✅ Automatic agent assignments
16
16
  - ✅ Task dependencies & timeline
17
17
  - ✅ 6-dimension ontology mapping
@@ -31,10 +31,10 @@ Generates:
31
31
  ### Execution Management
32
32
 
33
33
  ```bash
34
- /now # Show current inference & task
35
- /next # Advance to next inference
34
+ /now # Show current cycle & task
35
+ /next # Advance to next cycle
36
36
  /done # Mark complete & advance
37
- /goto [N] # Jump to inference N
37
+ /goto [N] # Jump to cycle N
38
38
  ```
39
39
 
40
40
  ### Plan Filtering & Analysis
@@ -130,7 +130,7 @@ Support Specialists (Throughout):
130
130
  🚀 agent-ops: Sets up CI/CD, prepares deployment
131
131
 
132
132
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
133
- 📈 PHASE BREAKDOWN (100 Inferences)
133
+ 📈 PHASE BREAKDOWN (100 Cycles)
134
134
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
135
135
 
136
136
  Cycle 1-10: Foundation & Understanding
@@ -143,7 +143,7 @@ Cycle 1-10: Foundation & Understanding
143
143
  - Define people roles (creator, student, admin)
144
144
  - Create vision document
145
145
  - Break down features
146
- - Create 100-inference plan ← You are here!
146
+ - Create 100-cycle plan ← You are here!
147
147
 
148
148
  Cycle 11-20: Backend Schema & Services
149
149
  - Design Convex schema (groups, things, connections, events, knowledge)
@@ -352,7 +352,7 @@ Each plan includes:
352
352
  - Lists required connections
353
353
  - Determines event types
354
354
 
355
- ### 2. 100-Inference Breakdown
355
+ ### 2. 100-Cycle Breakdown
356
356
  - Foundation (Cycle 1-10)
357
357
  - Backend (Cycle 11-50)
358
358
  - Frontend (Cycle 21-80)
@@ -412,31 +412,31 @@ Output:
412
412
  🔗 Share: /plan share
413
413
  ```
414
414
 
415
- ## Inference Workflow Integration
415
+ ## Cycle Workflow Integration
416
416
 
417
417
  Once plan is created, use these commands:
418
418
 
419
419
  ```bash
420
- /now # Show current inference (Cycle 1)
421
- /next # Advance to next inference
420
+ /now # Show current cycle (Cycle 1)
421
+ /next # Advance to next cycle
422
422
  /done # Mark complete, capture lessons
423
- /goto [N] # Jump to specific inference
423
+ /goto [N] # Jump to specific cycle
424
424
  /build # Start building with agents
425
425
  ```
426
426
 
427
427
  ## Key Principles
428
428
 
429
- 1. **Ideas → Plans:** Convert any idea into actionable 100-inference plan
430
- 2. **Automatic Assignment:** Agent assignments happen automatically based on inference type
429
+ 1. **Ideas → Plans:** Convert any idea into actionable 100-cycle plan
430
+ 2. **Automatic Assignment:** Agent assignments happen automatically based on cycle type
431
431
  3. **Quality First:** Tests defined before implementation
432
432
  4. **Parallel Execution:** Maximize agent parallelization
433
- 5. **Complete Tracking:** Every inference tracked with status, dependencies, lessons
434
- 6. **Continuous Learning:** Capture lessons after each inference
433
+ 5. **Complete Tracking:** Every cycle tracked with status, dependencies, lessons
434
+ 6. **Continuous Learning:** Capture lessons after each cycle
435
435
 
436
436
  ---
437
437
 
438
438
  ## See Also
439
439
 
440
440
  - [CASCADE System](./cascade.md) - Full agent orchestration
441
- - [Inference Workflow](../commands/done.md) - Mark cycles complete
441
+ - [Cycle Workflow](../commands/done.md) - Mark cycles complete
442
442
  - [Agent Dashboard](./one.md) - View all agents
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  allowed-tools: Task(agent-ops:*)
3
- description: Release CLI to npm
3
+ description: Release CLI to npm (optimized)
4
4
  ---
5
5
 
6
- # /release - Release CLI to npm
6
+ # /release - Release CLI to npm (Optimized v2)
7
7
 
8
- Release the CLI to npm registry.
8
+ Release the CLI to npm registry with parallel sync and minimal duplication.
9
9
 
10
10
  ## Usage
11
11
 
@@ -16,28 +16,64 @@ Release the CLI to npm registry.
16
16
  /release sync # Sync files without version bump
17
17
  ```
18
18
 
19
- ## What It Does
19
+ ## What It Does (Optimized)
20
20
 
21
21
  Runs `./.claude/hooks/release-cli.sh [type]` which:
22
22
 
23
- 1. Syncs `.claude/*` to `cli/.claude/`
24
- 2. Syncs `/one/*` to `cli/one/`
25
- 3. Syncs root markdown files (CLAUDE.md, README.md, etc.)
26
- 4. Bumps version in `cli/package.json` (if not sync)
27
- 5. Builds the CLI
28
- 6. Publishes to npm registry
23
+ 1. **Syncs documentation** `/one/*` → `cli/one/` (all platform docs)
24
+ 2. **Syncs root markdown** (CLAUDE.md, README.md, LICENSE.md, SECURITY.md, AGENTS.md)
25
+ 3. **Hooks stay in root** - CLI references `./.claude/hooks/` (single source of truth, no duplication)
26
+ 4. **Parallel operations** - Uses background jobs for file copies
27
+ 5. **Bumps version** in `cli/package.json` (if not sync)
28
+ 6. **Builds CLI** with npm
29
+ 7. **Publishes to npm** registry
30
+ 8. **Verifies publication** on npm registry
31
+
32
+ ## Architecture
33
+
34
+ ```
35
+ Root Repository (.claude/hooks/)
36
+ ↓ (referenced by)
37
+ CLI Repo (cli/)
38
+ ├── cli/one/* (synced documentation)
39
+ ├── cli/*.md (synced markdown files)
40
+ └── package.json (version bumped & published)
41
+ ```
42
+
43
+ **Key Benefit:** Hooks are maintained in ONE place - the root repository. No duplication, no sync issues.
44
+
45
+ ## Performance
46
+
47
+ - **Before:** Synced 17 hook files + documentation (~50+ files)
48
+ - **After:** Syncs only documentation + 5 markdown files (~200 files in /one/)
49
+ - **Result:** Faster, cleaner, single source of truth
29
50
 
30
51
  ## Your Task
31
52
 
32
- Delegate to agent-ops to run the script:
53
+ Delegate to agent-ops to run the optimized release:
33
54
 
34
55
  ```typescript
35
56
  Task({
36
57
  subagent_type: "agent-ops",
37
- description: "Release CLI to npm",
38
- prompt: `Run: ./.claude/hooks/release-cli.sh ${releaseType}
58
+ description: "Execute optimized CLI release with hooks merge",
59
+ prompt: `Run optimized CLI release:
60
+
61
+ 1. Execute: ./.claude/hooks/release-cli.sh ${releaseType}
62
+ - Syncs /one/* to cli/one/
63
+ - Syncs root markdown files
64
+ - Hooks reference root .claude/ (no copy)
65
+ - Bumps version (if not sync)
66
+ - Publishes to npm
67
+
68
+ 2. Wait for completion and verify publication
39
69
 
40
- Wait for completion and report success with the new version.`,
70
+ 3. Report:
71
+ - New version number (if version bumped)
72
+ - npm publication success/failure
73
+ - Release duration
74
+ - Any errors or warnings
75
+
76
+ Do not copy .claude/ to cli/ - hooks stay in root.`,
41
77
  });
42
78
  ```
43
79
 
@@ -48,3 +84,18 @@ Install the new version:
48
84
  ```bash
49
85
  npx oneie@latest --version
50
86
  ```
87
+
88
+ ## Testing
89
+
90
+ Verify the release locally:
91
+
92
+ ```bash
93
+ # Test the script
94
+ ./.claude/hooks/release-cli.sh sync
95
+
96
+ # Check CLI was built
97
+ ls -la cli/dist/
98
+
99
+ # Check npm credentials
100
+ npm whoami
101
+ ```