oneie 3.6.26 → 3.6.28
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/TROUBLESHOOTING.md +530 -0
- package/.claude/agents/agent-claude.md +645 -0
- package/.claude/agents/agent-clone.md +2 -0
- package/.claude/agents/agent-frontend.md +162 -21
- package/.claude/agents/agent-writer.md +722 -0
- package/.claude/commands/chat.md +504 -0
- package/.claude/commands/create.md +134 -18
- package/.claude/commands/fast.md +531 -0
- package/.claude/commands/one.md +79 -90
- package/.claude/commands/optimize.md +74 -0
- package/.claude/commands/plan.md +420 -373
- package/.claude/commands/review.md +99 -0
- package/.claude/commands/server.md +97 -48
- package/.claude/commands/start.md +182 -0
- package/.claude/commands/test.md +197 -0
- package/.claude/commands/validate.md +140 -0
- package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
- package/.claude/hooks/auto-format.sh +106 -0
- package/.claude/hooks/formatting.py +187 -0
- package/.claude/hooks/ontology-validation.py +255 -0
- package/.claude/hooks/validate-imports.py +182 -0
- package/.claude/hooks/validate-ontology.py +140 -0
- package/.claude/hooks/write-news.sh +194 -0
- package/CLAUDE.md +150 -1057
- package/one/knowledge/cascading-context-specification.md +1617 -0
- package/one/knowledge/claude-code-integration.md +1293 -0
- package/one/knowledge/development-commands.md +251 -0
- package/one/knowledge/guidelines.md +314 -0
- package/one/knowledge/parallel-agents.md +932 -0
- package/one/knowledge/performance.md +459 -0
- package/one/knowledge/troubleshooting.md +434 -0
- package/one/things/plans/dsl-claude-code.md +1011 -0
- package/one/things/plans/video-backend.md +638 -0
- package/one/things/plans/video-frontend.md +432 -0
- package/one/things/plans/video-old-archived.md +656 -0
- package/package.json +1 -1
- package/.claude/agents/AUDIT-agent-ops-alignment.md +0 -379
package/.claude/commands/plan.md
CHANGED
|
@@ -1,442 +1,489 @@
|
|
|
1
|
-
# /plan -
|
|
1
|
+
# /plan - Transform Ideas Into Optimized Execution Plans
|
|
2
2
|
|
|
3
|
-
**Purpose:**
|
|
3
|
+
**Purpose:** Load pre-built optimized plans or generate custom plans with speed, quick wins, and minimal cycles to production.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Project Detection (Step 1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
/plan convert "Build a course platform with AI tutors"
|
|
11
|
-
```
|
|
9
|
+
**When user types `/plan [keyword]`, check if keyword matches a pre-built project:**
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
|
|
11
|
+
| Keyword | File | Cycles | Description |
|
|
12
|
+
|---------|------|--------|-------------|
|
|
13
|
+
| `blog` | `web/src/content/plans/blog.md` | 30 | Article publishing, search, RSS |
|
|
14
|
+
| `pages` | `web/src/content/plans/pages.md` | 20 | Landing page builder |
|
|
15
|
+
| `shop` | `web/src/content/plans/shop.md` | 28 | E-commerce with Stripe |
|
|
16
|
+
| `dashboard` | `web/src/content/plans/dashboard.md` | 40 | Real-time analytics (backend) |
|
|
17
|
+
| `email` | `web/src/content/plans/email.md` | 45 | Messaging system (backend) |
|
|
18
|
+
| `website` | `web/src/content/plans/website.md` | 55 | Website builder + CMS (backend) |
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
**If keyword matches:**
|
|
21
|
+
1. Read the plan file from `web/src/content/plans/[keyword].md`
|
|
22
|
+
2. Display the optimized plan with Quick Wins section
|
|
23
|
+
3. Show "Ready to execute" message
|
|
24
|
+
4. Skip plan generation (plan already exists)
|
|
22
25
|
|
|
23
|
-
|
|
26
|
+
**If keyword doesn't match:**
|
|
27
|
+
1. Treat as custom idea
|
|
28
|
+
2. Generate plan using algorithm below
|
|
29
|
+
3. Save to `.claude/state/plan.json`
|
|
24
30
|
|
|
25
|
-
|
|
26
|
-
/plan convert [idea] # Convert idea to full plan
|
|
27
|
-
/plan show # Show current plan with assignments
|
|
28
|
-
/plan export [format] # Export plan (md, json, csv)
|
|
29
|
-
```
|
|
31
|
+
---
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
## Core Philosophy
|
|
32
34
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
**Speed is a feature.** Every plan should:
|
|
36
|
+
- ✅ **Show quick wins first** - Users see value in Cycles 1-10
|
|
37
|
+
- ✅ **Minimize total cycles** - Can we ship in 30 cycles instead of 100?
|
|
38
|
+
- ✅ **Maximize parallelization** - Run agents simultaneously whenever possible
|
|
39
|
+
- ✅ **Prioritize MVP** - Core value first, enhancements later
|
|
40
|
+
- ✅ **Validate early** - Test assumptions in first 10 cycles
|
|
41
|
+
|
|
42
|
+
---
|
|
39
43
|
|
|
40
|
-
|
|
44
|
+
## Usage
|
|
41
45
|
|
|
42
46
|
```bash
|
|
43
|
-
|
|
44
|
-
/plan
|
|
45
|
-
/plan
|
|
46
|
-
/plan
|
|
47
|
-
/plan
|
|
48
|
-
/plan
|
|
47
|
+
# Use pre-built optimized plans (RECOMMENDED)
|
|
48
|
+
/plan blog # 30 cycles - Article publishing
|
|
49
|
+
/plan pages # 20 cycles - Landing pages
|
|
50
|
+
/plan shop # 28 cycles - E-commerce
|
|
51
|
+
/plan dashboard # 40 cycles - Analytics (backend)
|
|
52
|
+
/plan email # 45 cycles - Messaging (backend)
|
|
53
|
+
/plan website # 55 cycles - Website builder (backend)
|
|
54
|
+
|
|
55
|
+
# Or generate custom plan
|
|
56
|
+
/plan [your-custom-idea]
|
|
57
|
+
|
|
58
|
+
# Examples:
|
|
59
|
+
/plan Build a course platform with AI tutors
|
|
60
|
+
/plan E-commerce store for digital downloads
|
|
61
|
+
/plan SaaS tool for project management
|
|
49
62
|
```
|
|
50
63
|
|
|
51
|
-
|
|
64
|
+
**Pre-built plans load instantly** from `web/src/content/plans/` with optimized cycle counts and quick wins already defined.
|
|
65
|
+
|
|
66
|
+
**Custom plans** take 30 seconds to generate and follow the same optimization:
|
|
67
|
+
1. Validates against 6-dimension ontology
|
|
68
|
+
2. Determines frontend-only vs backend architecture
|
|
69
|
+
3. Identifies quick wins for Cycles 1-10
|
|
70
|
+
4. Optimizes total cycle count (aim for 30-60, not 100)
|
|
71
|
+
5. Assigns specialists automatically
|
|
72
|
+
6. Shows parallel execution opportunities
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Quick Win Optimization (Cycles 1-10)
|
|
77
|
+
|
|
78
|
+
**CRITICAL:** First 10 cycles must deliver visible progress.
|
|
52
79
|
|
|
53
|
-
###
|
|
80
|
+
### Quick Win Strategy
|
|
81
|
+
|
|
82
|
+
**❌ Old approach (slow start):**
|
|
83
|
+
```
|
|
84
|
+
Cycle 1-10: Research, planning, documentation, meetings
|
|
85
|
+
Cycle 11+: Finally start coding
|
|
86
|
+
```
|
|
54
87
|
|
|
88
|
+
**✅ New approach (fast start):**
|
|
55
89
|
```
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
- Earn tokens that students can buy/trade
|
|
60
|
-
- Access analytics on student progress
|
|
61
|
-
- Build a community with forums and discussions"
|
|
90
|
+
Cycle 1-3: Validate idea, map to ontology, decide architecture
|
|
91
|
+
Cycle 4-7: Build ONE working feature (end-to-end)
|
|
92
|
+
Cycle 8-10: Deploy to staging, show something real
|
|
62
93
|
```
|
|
63
94
|
|
|
64
|
-
###
|
|
95
|
+
### Example: Course Platform
|
|
65
96
|
|
|
97
|
+
**Quick Win Path:**
|
|
66
98
|
```
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
✅ People (roles & permissions)
|
|
87
|
-
✅ Things (entities: courses, lessons, tokens)
|
|
88
|
-
✅ Connections (relationships between entities)
|
|
89
|
-
✅ Events (audit trail, activity log)
|
|
90
|
-
✅ Knowledge (RAG for AI tutors)
|
|
91
|
-
|
|
92
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
93
|
-
🎯 AGENT ASSIGNMENTS (Automatic)
|
|
94
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
95
|
-
|
|
96
|
-
Lead Orchestrator:
|
|
97
|
-
🤖 agent-director (infers 1-10, coordinates all specialists)
|
|
98
|
-
|
|
99
|
-
Foundation Phase (Cycle 1-10):
|
|
100
|
-
📊 Validation, mapping, planning with agent-director
|
|
101
|
-
✅ All done by orchestrator + planning
|
|
102
|
-
|
|
103
|
-
Backend Phase (Cycle 11-30):
|
|
104
|
-
⚙️ agent-backend: Schema, mutations, queries, services
|
|
105
|
-
- Cycle 11-20: Convex schema design (groups, entities, connections, events)
|
|
106
|
-
- Cycle 21-30: Core mutations (create, update, delete)
|
|
107
|
-
- Cycle 41-50: Advanced queries (filtering, pagination, relationships)
|
|
108
|
-
|
|
109
|
-
Frontend Phase (Cycle 31-50):
|
|
110
|
-
🎨 agent-frontend: Pages, components, UI/UX
|
|
111
|
-
- Cycle 31-40: Astro pages (course list, detail, creator dashboard)
|
|
112
|
-
- Cycle 51-60: React components (course card, lesson player, forum)
|
|
113
|
-
- Cycle 71-80: Performance optimization
|
|
114
|
-
|
|
115
|
-
Design Phase (Cycle 21-40):
|
|
116
|
-
🎭 agent-designer: Wireframes, tokens, specs
|
|
117
|
-
- Cycle 21-30: Wireframes (acceptance criteria → UI elements)
|
|
118
|
-
- Cycle 31-40: Design tokens (brand colors, spacing, typography)
|
|
119
|
-
- Cycle 41-50: Component specifications
|
|
120
|
-
|
|
121
|
-
Quality Phase (Cycle 41-60):
|
|
122
|
-
🧪 agent-quality: Tests, validation, requirements
|
|
123
|
-
- Cycle 41-50: User flows & acceptance criteria
|
|
124
|
-
- Cycle 51-60: Test suite execution
|
|
125
|
-
- Cycle 61-70: Quality loop (test → fix → verify)
|
|
126
|
-
|
|
127
|
-
Support Specialists (Throughout):
|
|
128
|
-
🔧 agent-problem-solver: Analyzes test failures, proposes fixes
|
|
129
|
-
📝 agent-documenter: Writes docs, captures lessons
|
|
130
|
-
🚀 agent-ops: Sets up CI/CD, prepares deployment
|
|
131
|
-
|
|
132
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
133
|
-
📈 PHASE BREAKDOWN (100 Cycles)
|
|
134
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
135
|
-
|
|
136
|
-
Cycle 1-10: Foundation & Understanding
|
|
137
|
-
- Validate idea against 6-dimension ontology
|
|
138
|
-
- Map entity types (courses, lessons, tokens, users)
|
|
139
|
-
- Identify connection types (owns, enrolls, holds_tokens)
|
|
140
|
-
- List event types (course_created, quiz_completed, token_earned)
|
|
141
|
-
- Determine knowledge requirements (RAG for AI tutors)
|
|
142
|
-
- Identify org scope (multi-tenant per creator)
|
|
143
|
-
- Define people roles (creator, student, admin)
|
|
144
|
-
- Create vision document
|
|
145
|
-
- Break down features
|
|
146
|
-
- Create 100-cycle plan ← You are here!
|
|
147
|
-
|
|
148
|
-
Cycle 11-20: Backend Schema & Services
|
|
149
|
-
- Design Convex schema (groups, things, connections, events, knowledge)
|
|
150
|
-
- Define entity types (course, lesson, quiz, token, user, ai_clone)
|
|
151
|
-
- Create relationship types (owns, enrolled_in, holds_tokens)
|
|
152
|
-
- Plan service layer (CourseService, TokenService, AITutorService)
|
|
153
|
-
- Define mutations (createCourse, enrollStudent, earnToken)
|
|
154
|
-
- Plan queries (listCourses, getStudent, checkTokenBalance)
|
|
155
|
-
|
|
156
|
-
Cycle 21-30: Frontend Pages & Wireframes
|
|
157
|
-
- Design course list page (SSR with server data)
|
|
158
|
-
- Design course detail page (interactive lessons)
|
|
159
|
-
- Design creator dashboard (analytics, course management)
|
|
160
|
-
- Design AI tutor chat interface
|
|
161
|
-
- Create wireframes satisfying acceptance criteria
|
|
162
|
-
- Plan component hierarchy
|
|
163
|
-
- Design token system UI
|
|
164
|
-
|
|
165
|
-
Cycle 31-40: Design Tokens & System
|
|
166
|
-
- Extract brand colors (from onboarding)
|
|
167
|
-
- Create typography scale
|
|
168
|
-
- Define spacing system
|
|
169
|
-
- Generate Tailwind v4 tokens
|
|
170
|
-
- Ensure WCAG AA contrast
|
|
171
|
-
- Create component specs with props
|
|
172
|
-
|
|
173
|
-
Cycle 41-50: Quality & Testing
|
|
174
|
-
- Define user flows (creator: upload course, student: take course)
|
|
175
|
-
- Create acceptance criteria (all features testable)
|
|
176
|
-
- Define test suite (unit, integration, e2e)
|
|
177
|
-
- Start test implementation
|
|
178
|
-
- Run tests against schema
|
|
179
|
-
|
|
180
|
-
Cycle 51-60: Backend Implementation
|
|
181
|
-
- Implement Convex mutations (createCourse, enrollStudent)
|
|
182
|
-
- Implement queries (listCourses, getProgress)
|
|
183
|
-
- Create Effect.ts services (business logic)
|
|
184
|
-
- Add event logging (complete audit trail)
|
|
185
|
-
- Implement multi-tenant isolation
|
|
186
|
-
|
|
187
|
-
Cycle 61-70: Frontend Implementation
|
|
188
|
-
- Implement Astro pages (SSR + React islands)
|
|
189
|
-
- Build React components (course cards, lesson player)
|
|
190
|
-
- Integrate Convex queries (useQuery, useMutation)
|
|
191
|
-
- Add loading/error states
|
|
192
|
-
- Optimize performance (90+ Lighthouse)
|
|
193
|
-
|
|
194
|
-
Cycle 71-80: AI Tutor Integration
|
|
195
|
-
- Integrate Claude API for responses
|
|
196
|
-
- Implement RAG (Retrieval-Augmented Generation)
|
|
197
|
-
- Connect knowledge base (course content → embeddings)
|
|
198
|
-
- Create AI personality system
|
|
199
|
-
- Test tutor quality
|
|
200
|
-
|
|
201
|
-
Cycle 81-90: Quality Assurance
|
|
202
|
-
- Run full test suite
|
|
203
|
-
- Fix failing tests
|
|
204
|
-
- Performance testing (Core Web Vitals)
|
|
205
|
-
- Security testing
|
|
206
|
-
- Accessibility audit (WCAG AA)
|
|
207
|
-
|
|
208
|
-
Cycle 91-100: Deployment & Documentation
|
|
209
|
-
- Write user documentation
|
|
210
|
-
- Create API documentation
|
|
211
|
-
- Set up CI/CD pipeline
|
|
212
|
-
- Deploy to Cloudflare Pages (frontend)
|
|
213
|
-
- Deploy to Convex Cloud (backend)
|
|
214
|
-
- Write deployment guide
|
|
215
|
-
|
|
216
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
217
|
-
🔗 AGENT TASK ASSIGNMENTS
|
|
218
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
219
|
-
|
|
220
|
-
agent-backend assigned:
|
|
221
|
-
- Cycle 11-20: Schema design
|
|
222
|
-
- Cycle 41-50: Queries design
|
|
223
|
-
- Cycle 51-60: Mutation implementation
|
|
224
|
-
- Skills: agent-backend:create-mutation, create-query, design-schema
|
|
225
|
-
|
|
226
|
-
agent-frontend assigned:
|
|
227
|
-
- Cycle 21-30: Page wireframes
|
|
228
|
-
- Cycle 61-70: Component implementation
|
|
229
|
-
- Cycle 81-90: Performance optimization
|
|
230
|
-
- Skills: agent-frontend:create-page, create-component, optimize-performance
|
|
231
|
-
|
|
232
|
-
agent-designer assigned:
|
|
233
|
-
- Cycle 21-30: Wireframe generation
|
|
234
|
-
- Cycle 31-40: Token & spec definition
|
|
235
|
-
- Skills: agent-designer:create-wireframe, define-components, set-design-tokens
|
|
236
|
-
|
|
237
|
-
agent-quality assigned:
|
|
238
|
-
- Cycle 41-50: Test definition
|
|
239
|
-
- Cycle 61-70: Test execution
|
|
240
|
-
- Cycle 81-90: Full quality suite
|
|
241
|
-
- Skills: agent-quality:define-tests, run-tests, validate-ontology
|
|
242
|
-
|
|
243
|
-
agent-problem-solver assigned:
|
|
244
|
-
- Throughout: Monitor test failures
|
|
245
|
-
- When needed: Analyze root causes
|
|
246
|
-
- Delegate fixes to specialists
|
|
247
|
-
|
|
248
|
-
agent-ops assigned:
|
|
249
|
-
- Cycle 91-100: CI/CD setup
|
|
250
|
-
- Deployment configuration
|
|
251
|
-
- Production monitoring
|
|
252
|
-
|
|
253
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
254
|
-
💾 DEPENDENCIES & TIMELINE
|
|
255
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
256
|
-
|
|
257
|
-
Sequential (Cannot run in parallel):
|
|
258
|
-
1-10 (Foundation) → All other phases
|
|
259
|
-
|
|
260
|
-
Parallel Tracks (Can run simultaneously after Foundation):
|
|
261
|
-
Backend Track: Cycle 11-20 → 41-50 → 51-60
|
|
262
|
-
Frontend Track: Cycle 21-30 → 61-70
|
|
263
|
-
Design Track: Cycle 21-30 → 31-40
|
|
264
|
-
Quality Track: Cycle 41-50 → 61-70 → 81-90
|
|
265
|
-
Integration: Cycle 71-80 (after backend + frontend core)
|
|
266
|
-
|
|
267
|
-
Critical Path:
|
|
268
|
-
Foundation → Backend Schema → Mutations → Frontend Implementation
|
|
269
|
-
(28 days minimum, parallelization can reduce)
|
|
270
|
-
|
|
271
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
272
|
-
🎯 NEXT STEPS
|
|
273
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
99
|
+
Cycle 1: Validate idea → Maps to Things (course), Connections (enrolled_in), Events (completed)
|
|
100
|
+
Cycle 2: Frontend-only decision (no backend needed for MVP)
|
|
101
|
+
Cycle 3: Create basic course list page (Astro SSR)
|
|
102
|
+
Cycle 4: Add course detail page (static content)
|
|
103
|
+
Cycle 5: Implement course navigation (prev/next lessons)
|
|
104
|
+
Cycle 6: Add progress tracking (localStorage)
|
|
105
|
+
Cycle 7: Style with Tailwind (make it beautiful)
|
|
106
|
+
Cycle 8: Deploy to Cloudflare Pages
|
|
107
|
+
Cycle 9: Test end-to-end (QA pass)
|
|
108
|
+
Cycle 10: ✅ WORKING COURSE PLATFORM LIVE
|
|
109
|
+
|
|
110
|
+
Result: 10 cycles → MVP shipped
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Cycle Minimization Strategy
|
|
116
|
+
|
|
117
|
+
**Golden Rule:** Use the minimum cycles needed. If MVP can ship in 30 cycles, don't plan 100.
|
|
274
118
|
|
|
275
|
-
|
|
276
|
-
/plan show
|
|
119
|
+
### Cycle Budget Guidelines
|
|
277
120
|
|
|
278
|
-
|
|
279
|
-
|
|
121
|
+
| Feature Complexity | Frontend-Only | Backend + Frontend | Notes |
|
|
122
|
+
|-------------------|---------------|-------------------|-------|
|
|
123
|
+
| **Simple** (landing page, blog) | 5-15 cycles | N/A | Astro static pages only |
|
|
124
|
+
| **Standard** (SaaS tool, e-commerce) | 15-30 cycles | 30-50 cycles | Most products fit here |
|
|
125
|
+
| **Complex** (multi-tenant platform) | N/A | 50-80 cycles | Groups, events, real-time |
|
|
126
|
+
| **Enterprise** (full platform) | N/A | 80-100 cycles | All 6 dimensions, integrations |
|
|
280
127
|
|
|
281
|
-
|
|
282
|
-
/now - See Cycle 1 context
|
|
283
|
-
/next - Move through plan
|
|
284
|
-
/done - Mark complete & advance
|
|
128
|
+
### How to Minimize Cycles
|
|
285
129
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
130
|
+
**1. Start Frontend-Only (Default)**
|
|
131
|
+
- No backend = 50% fewer cycles
|
|
132
|
+
- Add backend later if needed
|
|
133
|
+
- Example: E-commerce with Stripe.js (15 cycles vs 40 with backend)
|
|
134
|
+
|
|
135
|
+
**2. Use Existing Patterns**
|
|
136
|
+
- Replicate proven components (5 cycles vs 20 from scratch)
|
|
137
|
+
- Search codebase first: `grep -r "feature-name" /web/src/`
|
|
138
|
+
- Extend existing code vs new implementation
|
|
139
|
+
|
|
140
|
+
**3. Skip Non-Essential Features**
|
|
141
|
+
- MVP = core value only
|
|
142
|
+
- Nice-to-have → Future cycles
|
|
143
|
+
- Example: Ship without admin dashboard (save 15 cycles)
|
|
144
|
+
|
|
145
|
+
**4. Maximize Parallelization**
|
|
146
|
+
- Design + Frontend can run simultaneously
|
|
147
|
+
- Backend + Tests can run simultaneously
|
|
148
|
+
- Example: 60 sequential cycles → 35 with parallelization
|
|
149
|
+
|
|
150
|
+
**5. Defer Documentation**
|
|
151
|
+
- Code is documentation (well-named functions)
|
|
152
|
+
- Write docs in cycle 95-100 (not 1-10)
|
|
153
|
+
- Focus on shipping first
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## Plan Output Format
|
|
158
|
+
|
|
159
|
+
After typing `/plan [idea]`, you'll see:
|
|
289
160
|
|
|
290
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
291
161
|
```
|
|
162
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
292
163
|
|
|
293
|
-
|
|
164
|
+
🚀 EXECUTION PLAN GENERATED
|
|
294
165
|
|
|
295
|
-
|
|
166
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
296
167
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
168
|
+
**Idea:** Course platform with AI tutors
|
|
169
|
+
**Architecture:** Frontend-only → Backend (add later if needed)
|
|
170
|
+
**Total Cycles:** 28 (optimized from 100)
|
|
171
|
+
**Quick Wins:** Cycle 8 (working MVP deployed)
|
|
172
|
+
|
|
173
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
174
|
+
|
|
175
|
+
⚡ QUICK WINS (Cycles 1-10)
|
|
176
|
+
|
|
177
|
+
Cycle 1-3: Foundation & validation (3 cycles)
|
|
178
|
+
✓ Validate against ontology
|
|
179
|
+
✓ Map entities (course, lesson, progress)
|
|
180
|
+
✓ Choose frontend-only architecture
|
|
181
|
+
|
|
182
|
+
Cycle 4-7: Build core feature (4 cycles)
|
|
183
|
+
✓ Course list page (Astro SSR)
|
|
184
|
+
✓ Course detail page (lesson player)
|
|
185
|
+
✓ Progress tracking (localStorage)
|
|
186
|
+
✓ Navigation (prev/next lessons)
|
|
187
|
+
|
|
188
|
+
Cycle 8-10: Deploy MVP (3 cycles)
|
|
189
|
+
✓ Style with Tailwind
|
|
190
|
+
✓ Deploy to Cloudflare Pages
|
|
191
|
+
✓ Test end-to-end
|
|
192
|
+
|
|
193
|
+
🎯 **Cycle 10 Milestone:** Working course platform live at [your-domain].pages.dev
|
|
194
|
+
|
|
195
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
196
|
+
|
|
197
|
+
📋 FULL PLAN (28 Cycles Total)
|
|
198
|
+
|
|
199
|
+
Phase 1: Foundation (Cycles 1-3)
|
|
200
|
+
→ agent-director validates & plans
|
|
201
|
+
|
|
202
|
+
Phase 2: Core Feature (Cycles 4-10)
|
|
203
|
+
→ agent-frontend builds pages & components
|
|
204
|
+
|
|
205
|
+
Phase 3: Enhancement (Cycles 11-20)
|
|
206
|
+
→ agent-frontend adds features (quiz, certificates)
|
|
207
|
+
|
|
208
|
+
Phase 4: Backend (Cycles 21-25) [If needed later]
|
|
209
|
+
→ agent-backend adds groups, events, multi-user
|
|
210
|
+
|
|
211
|
+
Phase 5: Quality (Cycles 26-27)
|
|
212
|
+
→ agent-quality runs tests, validates
|
|
213
|
+
|
|
214
|
+
Phase 6: Deploy (Cycle 28)
|
|
215
|
+
→ agent-ops ships to production
|
|
216
|
+
|
|
217
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
218
|
+
|
|
219
|
+
⚡ PARALLEL OPPORTUNITIES
|
|
220
|
+
|
|
221
|
+
These cycles can run simultaneously:
|
|
222
|
+
- Design (Cycles 4-7) + Backend (if added later)
|
|
223
|
+
- Frontend (Cycles 8-15) + Tests (Cycles 8-15)
|
|
224
|
+
- Documentation (Cycles 20+) + Optimization (Cycles 20+)
|
|
225
|
+
|
|
226
|
+
**Time Savings:** 28 sequential cycles → 18 days with parallelization
|
|
227
|
+
|
|
228
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
229
|
+
|
|
230
|
+
🎯 NEXT STEPS
|
|
231
|
+
|
|
232
|
+
1. Start execution:
|
|
233
|
+
/now - See Cycle 1 task
|
|
234
|
+
/next - Advance through cycles
|
|
235
|
+
/done - Mark complete & learn
|
|
236
|
+
|
|
237
|
+
2. Fast-track a feature:
|
|
238
|
+
/fast [feature-name]
|
|
239
|
+
|
|
240
|
+
3. Build with specialists:
|
|
241
|
+
/create [specific-feature]
|
|
242
|
+
|
|
243
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
312
244
|
```
|
|
313
245
|
|
|
314
|
-
|
|
246
|
+
---
|
|
315
247
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
248
|
+
## Intelligent Planning Algorithm
|
|
249
|
+
|
|
250
|
+
The plan generator uses these rules:
|
|
251
|
+
|
|
252
|
+
### 1. Ontology Validation (Cycle 1)
|
|
253
|
+
```
|
|
254
|
+
Question: Does this map to 6 dimensions?
|
|
255
|
+
- Identify Groups (multi-tenant? hierarchical?)
|
|
256
|
+
- Identify People (roles? permissions?)
|
|
257
|
+
- Identify Things (core entities)
|
|
258
|
+
- Identify Connections (relationships)
|
|
259
|
+
- Identify Events (actions to track?)
|
|
260
|
+
- Identify Knowledge (search/RAG needed?)
|
|
261
|
+
|
|
262
|
+
If unclear → Ask clarifying questions
|
|
263
|
+
If invalid → Suggest reframing
|
|
330
264
|
```
|
|
331
265
|
|
|
332
|
-
###
|
|
266
|
+
### 2. Architecture Decision (Cycle 2)
|
|
267
|
+
```
|
|
268
|
+
Frontend-only if:
|
|
269
|
+
- Single user OR third-party auth
|
|
270
|
+
- Static content OR localStorage sufficient
|
|
271
|
+
- Payments via Stripe.js
|
|
272
|
+
- No real-time collaboration
|
|
273
|
+
|
|
274
|
+
Backend needed if:
|
|
275
|
+
- Multi-tenant groups
|
|
276
|
+
- Real-time sync
|
|
277
|
+
- Immutable event log
|
|
278
|
+
- Vector embeddings (RAG)
|
|
279
|
+
```
|
|
333
280
|
|
|
334
|
-
|
|
335
|
-
# Export to different formats
|
|
336
|
-
/plan export markdown # one/plans/[feature-name].md
|
|
337
|
-
/plan export json # .claude/state/plan.json
|
|
338
|
-
/plan export csv # plan.csv (for spreadsheets)
|
|
339
|
-
/plan export timeline # project timeline format
|
|
340
|
-
|
|
341
|
-
# Share plan
|
|
342
|
-
/plan share # Generate shareable link
|
|
281
|
+
### 3. Quick Win Identification (Cycle 3)
|
|
343
282
|
```
|
|
283
|
+
Quick Win = Smallest shippable feature showing core value
|
|
344
284
|
|
|
345
|
-
|
|
285
|
+
Examples:
|
|
286
|
+
- Course platform → One playable course
|
|
287
|
+
- E-commerce → One purchasable product
|
|
288
|
+
- SaaS tool → One working workflow
|
|
289
|
+
- Blog → Five published posts
|
|
346
290
|
|
|
347
|
-
|
|
291
|
+
Goal: Cycle 10 = Something live and usable
|
|
292
|
+
```
|
|
348
293
|
|
|
349
|
-
###
|
|
350
|
-
|
|
351
|
-
-
|
|
352
|
-
|
|
353
|
-
|
|
294
|
+
### 4. Cycle Budget Allocation
|
|
295
|
+
```
|
|
296
|
+
Frontend-only:
|
|
297
|
+
Foundation: 3 cycles (10%)
|
|
298
|
+
Core Feature: 7 cycles (25%)
|
|
299
|
+
Enhancements: 10 cycles (35%)
|
|
300
|
+
Quality: 5 cycles (18%)
|
|
301
|
+
Deploy: 3 cycles (12%)
|
|
302
|
+
Total: 28 cycles
|
|
303
|
+
|
|
304
|
+
Backend + Frontend:
|
|
305
|
+
Foundation: 3 cycles (6%)
|
|
306
|
+
Backend Schema: 5 cycles (10%)
|
|
307
|
+
Backend Logic: 8 cycles (16%)
|
|
308
|
+
Frontend Pages: 10 cycles (20%)
|
|
309
|
+
Integration: 8 cycles (16%)
|
|
310
|
+
Quality: 8 cycles (16%)
|
|
311
|
+
Deploy: 5 cycles (10%)
|
|
312
|
+
Documentation: 3 cycles (6%)
|
|
313
|
+
Total: 50 cycles
|
|
314
|
+
```
|
|
354
315
|
|
|
355
|
-
###
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
-
|
|
359
|
-
-
|
|
360
|
-
-
|
|
316
|
+
### 5. Parallelization Mapping
|
|
317
|
+
```
|
|
318
|
+
Identify independent work streams:
|
|
319
|
+
- Design + Backend (no dependencies)
|
|
320
|
+
- Frontend + Tests (can run together)
|
|
321
|
+
- Optimization + Documentation (separate concerns)
|
|
322
|
+
|
|
323
|
+
Calculate time savings:
|
|
324
|
+
Sequential: 50 cycles × 1 day = 50 days
|
|
325
|
+
Parallel (3 streams): 50 ÷ 3 = 17 days
|
|
326
|
+
```
|
|
361
327
|
|
|
362
|
-
|
|
363
|
-
- Each agent gets specific cycles
|
|
364
|
-
- Skills listed for each task
|
|
365
|
-
- Dependencies documented
|
|
328
|
+
---
|
|
366
329
|
|
|
367
|
-
|
|
368
|
-
- Tests defined before design/implementation
|
|
369
|
-
- Design created to satisfy tests
|
|
370
|
-
- Implementation validates against tests
|
|
371
|
-
- Failures trigger root cause analysis
|
|
330
|
+
## Plan Commands
|
|
372
331
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
332
|
+
```bash
|
|
333
|
+
# Generate plan
|
|
334
|
+
/plan [idea]
|
|
335
|
+
|
|
336
|
+
# View plan
|
|
337
|
+
/plan show # Full plan with all cycles
|
|
338
|
+
/plan summary # Quick overview
|
|
339
|
+
|
|
340
|
+
# Filter plan
|
|
341
|
+
/plan cycles 1-10 # Show specific range
|
|
342
|
+
/plan agent frontend # Show cycles for specific agent
|
|
343
|
+
/plan quick-wins # Show Cycles 1-10 only
|
|
344
|
+
|
|
345
|
+
# Modify plan
|
|
346
|
+
/plan optimize # Re-optimize to use fewer cycles
|
|
347
|
+
/plan add-backend # Add backend to frontend-only plan
|
|
348
|
+
/plan skip [N] # Skip cycle N (mark not applicable)
|
|
349
|
+
|
|
350
|
+
# Export plan
|
|
351
|
+
/plan export md # Markdown format
|
|
352
|
+
/plan export json # JSON format
|
|
353
|
+
/plan export timeline # Gantt chart
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
---
|
|
377
357
|
|
|
378
|
-
##
|
|
358
|
+
## Example Plans
|
|
379
359
|
|
|
380
|
-
### Example 1:
|
|
360
|
+
### Example 1: E-commerce Store (Frontend-Only)
|
|
381
361
|
|
|
382
|
-
|
|
383
|
-
/plan convert "Build an e-commerce store with product recommendations"
|
|
362
|
+
**Input:** `/plan E-commerce store for digital fonts`
|
|
384
363
|
|
|
385
|
-
Output
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
364
|
+
**Output:**
|
|
365
|
+
```
|
|
366
|
+
🚀 Plan: 22 cycles (frontend-only)
|
|
367
|
+
|
|
368
|
+
Quick Wins (Cycles 1-8):
|
|
369
|
+
- Cycle 1-2: Validate + architect
|
|
370
|
+
- Cycle 3-5: Product list + detail pages
|
|
371
|
+
- Cycle 6-7: Stripe Checkout integration
|
|
372
|
+
- Cycle 8: Deploy MVP
|
|
373
|
+
|
|
374
|
+
Enhancement (Cycles 9-18):
|
|
375
|
+
- Cycle 9-12: Cart system (localStorage)
|
|
376
|
+
- Cycle 13-15: Download management
|
|
377
|
+
- Cycle 16-18: Admin dashboard
|
|
378
|
+
|
|
379
|
+
Quality & Deploy (Cycles 19-22):
|
|
380
|
+
- Cycle 19-20: Testing
|
|
381
|
+
- Cycle 21: Performance optimization
|
|
382
|
+
- Cycle 22: Production deploy
|
|
383
|
+
|
|
384
|
+
✅ Cycle 8: Customers can buy fonts
|
|
385
|
+
🎯 Cycle 22: Full-featured store live
|
|
390
386
|
```
|
|
391
387
|
|
|
392
|
-
### Example 2:
|
|
388
|
+
### Example 2: SaaS Platform (Backend + Frontend)
|
|
393
389
|
|
|
394
|
-
|
|
395
|
-
/plan filter --agent=backend
|
|
390
|
+
**Input:** `/plan Project management tool with team collaboration`
|
|
396
391
|
|
|
397
|
-
Output
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
392
|
+
**Output:**
|
|
393
|
+
```
|
|
394
|
+
🚀 Plan: 45 cycles (backend + frontend)
|
|
395
|
+
|
|
396
|
+
Quick Wins (Cycles 1-10):
|
|
397
|
+
- Cycle 1-3: Validate + architect (backend needed)
|
|
398
|
+
- Cycle 4-6: Backend schema (groups, projects, tasks)
|
|
399
|
+
- Cycle 7-9: Basic project view (list tasks)
|
|
400
|
+
- Cycle 10: Deploy staging (team can test)
|
|
401
|
+
|
|
402
|
+
Core Features (Cycles 11-30):
|
|
403
|
+
- Cycle 11-15: Task CRUD operations
|
|
404
|
+
- Cycle 16-20: Real-time updates (WebSocket)
|
|
405
|
+
- Cycle 21-25: Team permissions
|
|
406
|
+
- Cycle 26-30: Activity feed (events table)
|
|
407
|
+
|
|
408
|
+
Polish (Cycles 31-45):
|
|
409
|
+
- Cycle 31-38: UI/UX refinement
|
|
410
|
+
- Cycle 39-42: Performance optimization
|
|
411
|
+
- Cycle 43-44: Testing
|
|
412
|
+
- Cycle 45: Production deploy
|
|
413
|
+
|
|
414
|
+
✅ Cycle 10: MVP with basic task management
|
|
415
|
+
🎯 Cycle 45: Full collaboration platform
|
|
402
416
|
```
|
|
403
417
|
|
|
404
|
-
### Example 3:
|
|
418
|
+
### Example 3: Landing Page (Minimal)
|
|
405
419
|
|
|
406
|
-
|
|
407
|
-
/plan export markdown
|
|
420
|
+
**Input:** `/plan Landing page for SaaS product`
|
|
408
421
|
|
|
409
|
-
Output
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
422
|
+
**Output:**
|
|
423
|
+
```
|
|
424
|
+
🚀 Plan: 8 cycles (frontend-only, minimal)
|
|
425
|
+
|
|
426
|
+
Cycles 1-2: Validate + content structure
|
|
427
|
+
Cycle 3: Hero section + CTA
|
|
428
|
+
Cycle 4: Features section
|
|
429
|
+
Cycle 5: Pricing section
|
|
430
|
+
Cycle 6: Contact form (Formspree)
|
|
431
|
+
Cycle 7: Style + responsive design
|
|
432
|
+
Cycle 8: Deploy to Cloudflare Pages
|
|
433
|
+
|
|
434
|
+
✅ Cycle 8: Landing page live
|
|
435
|
+
|
|
436
|
+
💡 Tip: This could be done in 8 cycles because:
|
|
437
|
+
- No backend needed
|
|
438
|
+
- Static content
|
|
439
|
+
- Third-party form handling
|
|
440
|
+
- Existing patterns (hero, pricing, form)
|
|
413
441
|
```
|
|
414
442
|
|
|
415
|
-
|
|
443
|
+
---
|
|
416
444
|
|
|
417
|
-
|
|
445
|
+
## Integration with Other Commands
|
|
418
446
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
447
|
+
### → /now
|
|
448
|
+
After plan is created, use `/now` to see current cycle
|
|
449
|
+
|
|
450
|
+
### → /next
|
|
451
|
+
Advance through cycles sequentially
|
|
452
|
+
|
|
453
|
+
### → /fast [feature]
|
|
454
|
+
Skip planning, build specific feature immediately (see `/fast` command)
|
|
455
|
+
|
|
456
|
+
### → /create [feature]
|
|
457
|
+
Build specific feature with specialists
|
|
458
|
+
|
|
459
|
+
### → /done
|
|
460
|
+
Mark current cycle complete, capture lessons
|
|
461
|
+
|
|
462
|
+
---
|
|
426
463
|
|
|
427
464
|
## Key Principles
|
|
428
465
|
|
|
429
|
-
1. **
|
|
430
|
-
2. **
|
|
431
|
-
3. **
|
|
432
|
-
4. **
|
|
433
|
-
5. **
|
|
434
|
-
6. **
|
|
466
|
+
1. **Default to minimum cycles** - Start with smallest viable plan
|
|
467
|
+
2. **Quick wins in first 10 cycles** - Show progress early
|
|
468
|
+
3. **Frontend-only by default** - Add backend only when necessary
|
|
469
|
+
4. **Parallelize aggressively** - Run independent work simultaneously
|
|
470
|
+
5. **Ship early, enhance later** - MVP first, features follow
|
|
471
|
+
6. **Learn from previous plans** - Refine cycle estimates over time
|
|
472
|
+
|
|
473
|
+
---
|
|
474
|
+
|
|
475
|
+
## State Persistence
|
|
476
|
+
|
|
477
|
+
Plans are saved to:
|
|
478
|
+
- `.claude/state/plan.json` - Full plan with all cycles
|
|
479
|
+
- `.claude/state/cycle.json` - Current cycle context
|
|
480
|
+
- `one/events/plans/[feature-name].md` - Human-readable plan export
|
|
435
481
|
|
|
436
482
|
---
|
|
437
483
|
|
|
438
484
|
## See Also
|
|
439
485
|
|
|
440
|
-
-
|
|
441
|
-
-
|
|
442
|
-
-
|
|
486
|
+
- `/fast` - Build features rapidly without planning
|
|
487
|
+
- `/create` - Build specific features with specialists
|
|
488
|
+
- `/now` - View current cycle
|
|
489
|
+
- `/done` - Complete cycles and advance
|