oneie 3.6.24 → 3.6.25

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 (47) hide show
  1. package/.claude/agents/agent-backend.md +2 -2
  2. package/.claude/agents/agent-designer.md +1 -0
  3. package/.claude/agents/agent-director.md +71 -71
  4. package/.claude/agents/agent-onboard.md +1 -1
  5. package/.claude/agents/agent-ontology.md +2 -2
  6. package/.claude/agents/agent-ops.md +58 -38
  7. package/.claude/agents/agent-sales.md +3 -3
  8. package/.claude/commands/cascade.md +21 -21
  9. package/.claude/commands/create.md +19 -19
  10. package/.claude/commands/deploy.md +82 -104
  11. package/.claude/commands/mcp-on.md +191 -0
  12. package/.claude/commands/one.md +267 -92
  13. package/.claude/commands/plan.md +17 -17
  14. package/.claude/commands/release.md +65 -14
  15. package/.claude/hooks/PULL-BEFORE-PUSH-GUIDE.md +473 -0
  16. package/.claude/hooks/README-knowledge-hooks.md +451 -0
  17. package/.claude/hooks/README-root-cleanup.md +200 -0
  18. package/.claude/hooks/README.md +284 -0
  19. package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
  20. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  21. package/.claude/hooks/check-filenames.py +177 -0
  22. package/.claude/hooks/clean-post.py +468 -0
  23. package/.claude/hooks/clean-pre.py +393 -0
  24. package/.claude/hooks/clean-root-markdown.sh +73 -0
  25. package/.claude/hooks/commit-push.sh +95 -0
  26. package/.claude/hooks/done.py +236 -0
  27. package/.claude/hooks/format-hook.sh +163 -0
  28. package/.claude/hooks/hook-logger.sh +173 -0
  29. package/.claude/hooks/knowledge-post.py +355 -0
  30. package/.claude/hooks/knowledge-pre.py +245 -0
  31. package/.claude/hooks/mcp-on.sh +134 -0
  32. package/.claude/hooks/notification-hook.sh +279 -0
  33. package/.claude/hooks/push.sh +101 -0
  34. package/.claude/hooks/release-cli.sh +16 -8
  35. package/.claude/hooks/root-cleanup.py +217 -0
  36. package/.claude/hooks/security-hook.sh +397 -0
  37. package/.claude/hooks/tag-all-docs.py +464 -0
  38. package/.claude/hooks/test-validate-ontology.sh +170 -0
  39. package/.claude/hooks/todo.py +368 -0
  40. package/.claude/hooks/track-changes.sh +101 -0
  41. package/.claude/hooks/validate-ontology-structure-summary.md +243 -0
  42. package/.claude/hooks/validate-ontology-structure.py +518 -0
  43. package/.claude/skills/INDEX.md +1 -1
  44. package/.claude/skills/ontology/README.md +1 -1
  45. package/package.json +1 -1
  46. package/.claude/commands/mcp-toggle.md +0 -93
  47. package/.claude/commands/npx.md +0 -84
@@ -0,0 +1,191 @@
1
+ ---
2
+ allowed-tools: Bash(.claude/hooks/mcp-on.sh:*)
3
+ description: Toggle MCP servers on/off to manage context tokens
4
+ ---
5
+
6
+ # /mcp-on - MCP Server Management
7
+
8
+ **Purpose:** Enable/disable MCP (Model Context Protocol) servers to control context token usage.
9
+
10
+ ## Quick Commands
11
+
12
+ ```bash
13
+ # Check MCP status
14
+ ./.claude/hooks/mcp-on.sh status
15
+
16
+ # Turn MCPs ON (all servers enabled)
17
+ ./.claude/hooks/mcp-on.sh on
18
+
19
+ # Turn MCPs OFF (saves ~10k tokens)
20
+ ./.claude/hooks/mcp-on.sh off
21
+ ```
22
+
23
+ ## MCP Servers
24
+
25
+ **Available:**
26
+ - **shadcn** - Component registry (UI component access)
27
+ - **cloudflare-builds** - Cloudflare Workers build logs
28
+ - **cloudflare-observability** - Analytics & monitoring
29
+ - **cloudflare-docs** - Cloudflare API documentation
30
+ - **chrome-devtools** - Browser debugging & profiling
31
+ - **framelink-figma** - Figma design integration
32
+ - **astro-docs** - Astro framework documentation
33
+ - **stripe** - Stripe API integration
34
+
35
+ ## Token Impact
36
+
37
+ **MCPs ON:** ~15k tokens
38
+ - Full access to all MCP tools
39
+ - For intensive development tasks
40
+ - Use when building/designing
41
+
42
+ **MCPs OFF:** ~10k tokens saved
43
+ - No MCP server access
44
+ - For general development
45
+ - Recommended for daily work
46
+
47
+ ## Why Turn Off MCPs?
48
+
49
+ MCPs consume significant context tokens (~10k) even when not actively used. By turning them off:
50
+
51
+ 1. **Save tokens:** ~10k context tokens freed per session
52
+ 2. **Focus tools:** Only core tools available (Bash, Read, Edit, Grep, Glob)
53
+ 3. **Faster inference:** Smaller context = faster response time
54
+ 4. **Recommended default:** Turn off unless actively building features
55
+
56
+ ## Usage Examples
57
+
58
+ ### Daily Development (Recommended)
59
+
60
+ ```bash
61
+ # Start of day: Turn MCPs off
62
+ ./.claude/hooks/mcp-on.sh off
63
+
64
+ # Work on features using core tools only
65
+ # ... code ... commit ... push ...
66
+
67
+ # End of day: Optional - keep off
68
+ ```
69
+
70
+ ### Building Features (Agent-Frontend)
71
+
72
+ ```bash
73
+ # Building UI components? Turn on for shadcn + chrome-devtools
74
+ ./.claude/hooks/mcp-on.sh on
75
+
76
+ # Build components with full MCP access
77
+ # ... design ... test ... optimize ...
78
+
79
+ # When done: Turn off
80
+ ./.claude/hooks/mcp-on.sh off
81
+ ```
82
+
83
+ ### Deploying to Cloudflare (Agent-Ops)
84
+
85
+ ```bash
86
+ # Deploying? Turn on for cloudflare MCP access
87
+ ./.claude/hooks/mcp-on.sh on
88
+
89
+ # Deploy with full Cloudflare tool access
90
+ /deploy
91
+
92
+ # When done: Turn off
93
+ ./.claude/hooks/mcp-on.sh off
94
+ ```
95
+
96
+ ### Designing (Agent-Designer)
97
+
98
+ ```bash
99
+ # Designing? Turn on for figma + chrome-devtools
100
+ ./.claude/hooks/mcp-on.sh on
101
+
102
+ # Design with Figma integration and performance profiling
103
+ # ... design ... iterate ... measure ...
104
+
105
+ # When done: Turn off
106
+ ./.claude/hooks/mcp-on.sh off
107
+ ```
108
+
109
+ ## Configuration Files
110
+
111
+ **Active configuration:** `.mcp.json`
112
+ - Enables all MCP servers
113
+ - `"disabled": false` for each server
114
+
115
+ **Disabled backup:** `.mcp.json.off`
116
+ - All servers marked disabled
117
+ - `"disabled": true` for each server
118
+
119
+ **Last enabled config:** `.mcp.json.on`
120
+ - Backed up when switching states
121
+ - Allows quick restoration
122
+
123
+ ## How It Works
124
+
125
+ ### Turn Off MCPs
126
+
127
+ ```bash
128
+ ./.claude/hooks/mcp-on.sh off
129
+ ```
130
+
131
+ 1. Backs up current `.mcp.json` to `.mcp.json.on`
132
+ 2. Removes `.mcp.json` (disables all MCPs)
133
+ 3. Freed tokens: ~10k (saved per session)
134
+
135
+ ### Turn On MCPs
136
+
137
+ ```bash
138
+ ./.claude/hooks/mcp-on.sh on
139
+ ```
140
+
141
+ 1. Copies `.mcp.json.off` to `.mcp.json`
142
+ 2. Enables all servers (`disabled: false`)
143
+ 3. Restores functionality: all MCPs available
144
+
145
+ ### Check Status
146
+
147
+ ```bash
148
+ ./.claude/hooks/mcp-on.sh status
149
+ ```
150
+
151
+ Shows:
152
+ - Current MCP state (ON or OFF)
153
+ - Active/available servers
154
+ - Token usage impact
155
+
156
+ ## After Toggling
157
+
158
+ **IMPORTANT:** Restart Claude Code after toggling MCPs
159
+
160
+ 1. Run command: `./.claude/hooks/mcp-on.sh on` or `off`
161
+ 2. See message: "Action Required: Restart Claude Code to apply"
162
+ 3. Close Claude Code completely
163
+ 4. Reopen Claude Code
164
+ 5. New session will use new MCP configuration
165
+
166
+ ## Recommendation
167
+
168
+ **Default: MCPs OFF**
169
+
170
+ - Turn off at start of day
171
+ - Turn on only when needed (building UI, deploying, designing)
172
+ - Turn off when done
173
+ - Saves tokens and speeds up inference
174
+
175
+ **When to turn ON:**
176
+ - Building UI components (agent-frontend)
177
+ - Deploying to Cloudflare (agent-ops)
178
+ - Designing with Figma (agent-designer)
179
+ - Performance profiling (chrome-devtools)
180
+ - Researching documentation
181
+
182
+ **When to keep OFF:**
183
+ - General development
184
+ - Writing business logic
185
+ - Refactoring code
186
+ - Testing
187
+ - Documentation
188
+
189
+ ---
190
+
191
+ **Token-optimized development** 🚀
@@ -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.