oneie 3.6.26 → 3.6.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,442 +1,489 @@
1
- # /plan - Convert Ideas to Implementation Plans with CASCADE
1
+ # /plan - Transform Ideas Into Optimized Execution Plans
2
2
 
3
- **Purpose:** Transform ideas into detailed 100-cycle plans with automatic agent assignment and task breakdown.
3
+ **Purpose:** Load pre-built optimized plans or generate custom plans with speed, quick wins, and minimal cycles to production.
4
4
 
5
- ## Core Functionality
5
+ ---
6
6
 
7
- ### Convert Idea to Full Plan
7
+ ## Project Detection (Step 1)
8
8
 
9
- ```bash
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
- Generates:
14
- - ✅ 100-cycle execution plan
15
- - ✅ Automatic agent assignments
16
- - ✅ Task dependencies & timeline
17
- - ✅ 6-dimension ontology mapping
18
- - ✅ Quality loop workflow
19
- - ✅ Estimated tokens & budget
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
- ## Quick Usage
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
- ### Plan Conversion (CASCADE Integration)
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
- ```bash
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
- ### Execution Management
33
+ ## Core Philosophy
32
34
 
33
- ```bash
34
- /now # Show current cycle & task
35
- /next # Advance to next cycle
36
- /done # Mark complete & advance
37
- /goto [N] # Jump to cycle N
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
- ### Plan Filtering & Analysis
44
+ ## Usage
41
45
 
42
46
  ```bash
43
- /plan filter --agent=[name] # Filter by agent (backend, frontend, etc)
44
- /plan filter --dimension=[name] # Filter by dimension (things, connections, etc)
45
- /plan filter --status=[status] # Filter by status (completed, pending, blocked)
46
- /plan dependencies # Show task dependencies
47
- /plan timeline # Show gantt-style timeline
48
- /plan stats # Show plan statistics
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
- ## Example: Converting an Idea to a Plan
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
- ### Input
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
- /plan convert "Build a course platform where creators can:
57
- - Upload courses with lessons and quizzes
58
- - Set up AI tutors that answer student questions
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
- ### Output
95
+ ### Example: Course Platform
65
96
 
97
+ **Quick Win Path:**
66
98
  ```
67
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
68
- 📋 IDEA CONVERTED TO IMPLEMENTATION PLAN
69
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
70
-
71
- Idea: Course Platform with AI Tutors & Token Economy
72
- Status: ✅ Plan generated | 100 cycles | 15 agents assigned
73
-
74
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
75
- 📊 PLAN OVERVIEW
76
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
77
-
78
- Total Cycles: 100
79
- Estimated Duration: 90 days
80
- Estimated Tokens: ~500K
81
- Quality Loops: 4
82
- Agent Teams: 15 specialists
83
-
84
- 6-Dimension Coverage:
85
- ✅ Groups (multi-tenant orgs)
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
- 1. View full plan:
276
- /plan show
119
+ ### Cycle Budget Guidelines
277
120
 
278
- 2. See task assignments:
279
- /plan filter --agent=backend
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
- 3. Start execution:
282
- /now - See Cycle 1 context
283
- /next - Move through plan
284
- /done - Mark complete & advance
128
+ ### How to Minimize Cycles
285
129
 
286
- 4. Monitor agents:
287
- /agent dashboard - See all agents working
288
- /agent [name] - View specific agent
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
- ## Advanced Features
164
+ 🚀 EXECUTION PLAN GENERATED
294
165
 
295
- ### Plan Filtering
166
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
296
167
 
297
- ```bash
298
- # Filter by agent
299
- /plan filter --agent=backend # Shows backend cycles
300
- /plan filter --agent=frontend # Shows frontend cycles
301
- /plan filter --agent=designer # Shows design cycles
302
-
303
- # Filter by dimension
304
- /plan filter --dimension=things # Entity-related tasks
305
- /plan filter --dimension=connections # Relationship-related tasks
306
- /plan filter --dimension=events # Event-related tasks
307
-
308
- # Filter by status
309
- /plan filter --status=pending # Not started
310
- /plan filter --status=completed # Already done
311
- /plan filter --status=blocked # Dependencies unmet
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
- ### Plan Analysis
246
+ ---
315
247
 
316
- ```bash
317
- # View dependencies
318
- /plan dependencies # Show all task dependencies
319
-
320
- # Show timeline
321
- /plan timeline # Show gantt chart of phases
322
-
323
- # Get statistics
324
- /plan stats # Show plan metrics
325
- - Total cycles: 100
326
- - Agents assigned: 15
327
- - Estimated duration: 90 days
328
- - Parallel tracks: 5
329
- - Quality loops: 4
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
- ### Export Plan
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
- ```bash
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
- ## Plan Structure
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
- Each plan includes:
291
+ Goal: Cycle 10 = Something live and usable
292
+ ```
348
293
 
349
- ### 1. Idea Validation
350
- - Maps to 6-dimension ontology
351
- - Identifies entity types
352
- - Lists required connections
353
- - Determines event types
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
- ### 2. 100-Cycle Breakdown
356
- - Foundation (Cycle 1-10)
357
- - Backend (Cycle 11-50)
358
- - Frontend (Cycle 21-80)
359
- - Quality (Cycle 41-90)
360
- - Operations (Cycle 91-100)
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
- ### 3. Agent Assignments
363
- - Each agent gets specific cycles
364
- - Skills listed for each task
365
- - Dependencies documented
328
+ ---
366
329
 
367
- ### 4. Quality Loop
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
- ### 5. Timeline & Dependencies
374
- - Parallel work identified
375
- - Critical path highlighted
376
- - Gantt chart generated
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
- ## Usage Examples
358
+ ## Example Plans
379
359
 
380
- ### Example 1: Convert Idea to Plan
360
+ ### Example 1: E-commerce Store (Frontend-Only)
381
361
 
382
- ```bash
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
- ✅ Plan generated: 100 cycles
387
- ✅ Agents assigned: 15 specialists
388
- ✅ Quality loops: 3
389
- ✅ Dependencies: 24
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: View Plan with Agent Filter
388
+ ### Example 2: SaaS Platform (Backend + Frontend)
393
389
 
394
- ```bash
395
- /plan filter --agent=backend
390
+ **Input:** `/plan Project management tool with team collaboration`
396
391
 
397
- Output:
398
- Shows only backend cycles:
399
- - Cycle 11-20: Schema design
400
- - Cycle 41-50: Queries
401
- - Cycle 51-60: Mutations
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: Export and Share
418
+ ### Example 3: Landing Page (Minimal)
405
419
 
406
- ```bash
407
- /plan export markdown
420
+ **Input:** `/plan Landing page for SaaS product`
408
421
 
409
- Output:
410
- 📄 Created: one/plans/ecommerce-store.md
411
- 📊 Statistics: 100 cycles, 15 agents, 90 days
412
- 🔗 Share: /plan share
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
- ## Cycle Workflow Integration
443
+ ---
416
444
 
417
- Once plan is created, use these commands:
445
+ ## Integration with Other Commands
418
446
 
419
- ```bash
420
- /now # Show current cycle (Cycle 1)
421
- /next # Advance to next cycle
422
- /done # Mark complete, capture lessons
423
- /goto [N] # Jump to specific cycle
424
- /build # Start building with agents
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. **Ideas → Plans:** Convert any idea into actionable 100-cycle plan
430
- 2. **Automatic Assignment:** Agent assignments happen automatically based on cycle type
431
- 3. **Quality First:** Tests defined before implementation
432
- 4. **Parallel Execution:** Maximize agent parallelization
433
- 5. **Complete Tracking:** Every cycle tracked with status, dependencies, lessons
434
- 6. **Continuous Learning:** Capture lessons after each cycle
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
- - [CASCADE System](./cascade.md) - Full agent orchestration
441
- - [Cycle Workflow](../commands/done.md) - Mark cycles complete
442
- - [Agent Dashboard](./one.md) - View all agents
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