oh-my-claude-sisyphus 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +71 -5
  2. package/commands/cancel-ecomode.md +71 -0
  3. package/commands/cancel.md +75 -0
  4. package/commands/pipeline.md +231 -0
  5. package/commands/planner.md +174 -0
  6. package/commands/swarm.md +280 -0
  7. package/dist/analytics/cost-estimator.d.ts +14 -0
  8. package/dist/analytics/cost-estimator.d.ts.map +1 -0
  9. package/dist/analytics/cost-estimator.js +70 -0
  10. package/dist/analytics/cost-estimator.js.map +1 -0
  11. package/dist/analytics/export.d.ts +7 -0
  12. package/dist/analytics/export.d.ts.map +1 -0
  13. package/dist/analytics/export.js +93 -0
  14. package/dist/analytics/export.js.map +1 -0
  15. package/dist/analytics/index.d.ts +14 -0
  16. package/dist/analytics/index.d.ts.map +1 -0
  17. package/dist/analytics/index.js +14 -0
  18. package/dist/analytics/index.js.map +1 -0
  19. package/dist/analytics/metrics-collector.d.ts +30 -0
  20. package/dist/analytics/metrics-collector.d.ts.map +1 -0
  21. package/dist/analytics/metrics-collector.js +96 -0
  22. package/dist/analytics/metrics-collector.js.map +1 -0
  23. package/dist/analytics/query-engine.d.ts +32 -0
  24. package/dist/analytics/query-engine.d.ts.map +1 -0
  25. package/dist/analytics/query-engine.js +151 -0
  26. package/dist/analytics/query-engine.js.map +1 -0
  27. package/dist/analytics/session-manager.d.ts +26 -0
  28. package/dist/analytics/session-manager.d.ts.map +1 -0
  29. package/dist/analytics/session-manager.js +201 -0
  30. package/dist/analytics/session-manager.js.map +1 -0
  31. package/dist/analytics/session-types.d.ts +37 -0
  32. package/dist/analytics/session-types.d.ts.map +1 -0
  33. package/dist/analytics/session-types.js +2 -0
  34. package/dist/analytics/session-types.js.map +1 -0
  35. package/dist/analytics/token-tracker.d.ts +24 -0
  36. package/dist/analytics/token-tracker.d.ts.map +1 -0
  37. package/dist/analytics/token-tracker.js +161 -0
  38. package/dist/analytics/token-tracker.js.map +1 -0
  39. package/dist/analytics/types.d.ts +37 -0
  40. package/dist/analytics/types.d.ts.map +1 -0
  41. package/dist/analytics/types.js +21 -0
  42. package/dist/analytics/types.js.map +1 -0
  43. package/dist/cli/analytics.d.ts +3 -0
  44. package/dist/cli/analytics.d.ts.map +1 -0
  45. package/dist/cli/analytics.js +74 -0
  46. package/dist/cli/analytics.js.map +1 -0
  47. package/dist/cli/commands/agents.d.ts +5 -0
  48. package/dist/cli/commands/agents.d.ts.map +1 -0
  49. package/dist/cli/commands/agents.js +29 -0
  50. package/dist/cli/commands/agents.js.map +1 -0
  51. package/dist/cli/commands/cleanup.d.ts +4 -0
  52. package/dist/cli/commands/cleanup.d.ts.map +1 -0
  53. package/dist/cli/commands/cleanup.js +17 -0
  54. package/dist/cli/commands/cleanup.js.map +1 -0
  55. package/dist/cli/commands/cost.d.ts +4 -0
  56. package/dist/cli/commands/cost.d.ts.map +1 -0
  57. package/dist/cli/commands/cost.js +53 -0
  58. package/dist/cli/commands/cost.js.map +1 -0
  59. package/dist/cli/commands/export.d.ts +5 -0
  60. package/dist/cli/commands/export.d.ts.map +1 -0
  61. package/dist/cli/commands/export.js +30 -0
  62. package/dist/cli/commands/export.js.map +1 -0
  63. package/dist/cli/commands/sessions.d.ts +5 -0
  64. package/dist/cli/commands/sessions.d.ts.map +1 -0
  65. package/dist/cli/commands/sessions.js +37 -0
  66. package/dist/cli/commands/sessions.js.map +1 -0
  67. package/dist/cli/commands/stats.d.ts +4 -0
  68. package/dist/cli/commands/stats.d.ts.map +1 -0
  69. package/dist/cli/commands/stats.js +43 -0
  70. package/dist/cli/commands/stats.js.map +1 -0
  71. package/dist/cli/utils/formatting.d.ts +22 -0
  72. package/dist/cli/utils/formatting.d.ts.map +1 -0
  73. package/dist/cli/utils/formatting.js +70 -0
  74. package/dist/cli/utils/formatting.js.map +1 -0
  75. package/dist/hud/analytics-display.d.ts +28 -0
  76. package/dist/hud/analytics-display.d.ts.map +1 -0
  77. package/dist/hud/analytics-display.js +105 -0
  78. package/dist/hud/analytics-display.js.map +1 -0
  79. package/dist/hud/background-cleanup.d.ts +28 -0
  80. package/dist/hud/background-cleanup.d.ts.map +1 -0
  81. package/dist/hud/background-cleanup.js +92 -0
  82. package/dist/hud/background-cleanup.js.map +1 -0
  83. package/dist/hud/index.js +4 -2
  84. package/dist/hud/index.js.map +1 -1
  85. package/dist/hud/render.d.ts +1 -1
  86. package/dist/hud/render.d.ts.map +1 -1
  87. package/dist/hud/render.js +32 -1
  88. package/dist/hud/render.js.map +1 -1
  89. package/dist/hud/state.d.ts +5 -0
  90. package/dist/hud/state.d.ts.map +1 -1
  91. package/dist/hud/state.js +13 -0
  92. package/dist/hud/state.js.map +1 -1
  93. package/dist/hud/types.d.ts +11 -1
  94. package/dist/hud/types.d.ts.map +1 -1
  95. package/dist/hud/types.js +19 -0
  96. package/dist/hud/types.js.map +1 -1
  97. package/docs/FULL-README.md +130 -16
  98. package/docs/MIGRATION.md +222 -1
  99. package/docs/SYNC-SYSTEM.md +528 -0
  100. package/package.json +8 -2
  101. package/scripts/sync-metadata.ts +363 -0
  102. package/skills/build-fix/SKILL.md +123 -0
  103. package/skills/code-review/SKILL.md +179 -0
  104. package/skills/security-review/SKILL.md +254 -0
package/README.md CHANGED
@@ -62,11 +62,76 @@ Include these words anywhere in your message:
62
62
  |---------|--------|
63
63
  | `ralph` | Persistence mode - won't stop until done |
64
64
  | `ralplan` | Iterative planning with consensus |
65
- | `ulw` | Maximum parallel execution |
65
+ | `ulw` / `ultrawork` | Maximum parallel execution |
66
+ | `ultrapilot` | Parallel autopilot (3-5x faster) |
67
+ | `swarm` | N coordinated agents |
68
+ | `pipeline` | Sequential agent chaining |
69
+ | `eco` / `ecomode` | Token-efficient parallel execution |
66
70
  | `plan` | Start a planning interview |
67
71
  | `autopilot` / `ap` | Full autonomous execution |
68
72
 
69
- **Combine them:** `ralph ulw: migrate the database`
73
+ **Combine them:** `ralph ulw: migrate the database` or `eco: refactor auth system`
74
+
75
+ ---
76
+
77
+ ## Execution Modes (v3.4.0)
78
+
79
+ ### Ultrapilot: Parallel Autopilot
80
+
81
+ 3-5x faster execution with up to 5 parallel workers. Perfect for multi-component systems and large refactoring:
82
+
83
+ ```
84
+ /oh-my-claudecode:ultrapilot "build a fullstack todo app"
85
+ ```
86
+
87
+ **How it works:**
88
+ - Automatic task decomposition into parallelizable subtasks
89
+ - Non-overlapping file ownership prevents conflicts
90
+ - Parallel execution with intelligent coordination
91
+ - Automatic conflict detection and resolution
92
+
93
+ ---
94
+
95
+ ### Swarm: Coordinated Agents
96
+
97
+ N independent agents claiming tasks from a shared pool:
98
+
99
+ ```
100
+ /oh-my-claudecode:swarm 5:executor "fix all TypeScript errors"
101
+ ```
102
+
103
+ **Features:**
104
+ - Atomic task claiming prevents duplicate work
105
+ - 5-minute timeout per task with auto-release
106
+ - Scales from 2 to 10 workers
107
+
108
+ ---
109
+
110
+ ### Pipeline: Sequential Chaining
111
+
112
+ Chain agents together with data passing between stages:
113
+
114
+ ```
115
+ /oh-my-claudecode:pipeline explore:haiku -> architect:opus -> executor:sonnet
116
+ ```
117
+
118
+ **Built-in Presets:**
119
+ - `review` - explore → architect → critic → executor
120
+ - `implement` - planner → executor → tdd-guide
121
+ - `debug` - explore → architect → build-fixer
122
+ - `security` - explore → security-reviewer → executor
123
+
124
+ ---
125
+
126
+ ### Ecomode: Token-Efficient
127
+
128
+ Maximum parallelism with Haiku where possible, falling back to Sonnet/Opus for complex reasoning:
129
+
130
+ ```
131
+ /oh-my-claudecode:ecomode "refactor the authentication system"
132
+ ```
133
+
134
+ **30-50% token savings** compared to standard ultrawork while maintaining quality.
70
135
 
71
136
  ---
72
137
 
@@ -187,11 +252,12 @@ After configuration, restart Claude Code for changes to take effect.
187
252
 
188
253
  ## What's Under the Hood
189
254
 
190
- - **28 Specialized Agents** - architect, researcher, explore, designer, writer, vision, critic, analyst, executor, planner, qa-tester, scientist (with tier variants)
191
- - **31 Skills** - orchestrate, ultrawork, ralph, planner, deepsearch, deepinit, git-master, frontend-ui-ux, learner, research, mcp-setup, and more
255
+ - **32 Specialized Agents** - architect, researcher, explore, designer, writer, vision, critic, analyst, executor, planner, qa-tester, scientist (with tier variants including explore-high)
256
+ - **40 Skills** - orchestrate, autopilot, ultrawork, ultrapilot, swarm, pipeline, ecomode, ralph, planner, ralplan, deepsearch, analyze, research, tdd, build-fix, code-review, security-review, git-master, frontend-ui-ux, learner, mcp-setup, cancel (unified), and more
257
+ - **5 Execution Modes** - Autopilot (autonomous), Ultrapilot (3-5x parallel), Swarm (coordinated), Pipeline (sequential), Ecomode (token-efficient)
192
258
  - **MCP Server Support** - Easy configuration of Context7, Exa, GitHub, and custom MCP servers
193
259
  - **Persistent Python REPL** - True variable persistence for data analysis
194
- - **Research Workflow** - Parallel scientist orchestration with `/oh-my-claudecode:research` command (new in 3.3.x)
260
+ - **Research Workflow** - Parallel scientist orchestration with `/oh-my-claudecode:research` command
195
261
  - **HUD Statusline** - Real-time visualization of orchestration state
196
262
  - **Learned Skills** - Extract reusable insights from sessions with `/oh-my-claudecode:learner`
197
263
  - **Memory System** - Persistent context that survives compaction
@@ -0,0 +1,71 @@
1
+ ---
2
+ description: Cancel active Ecomode mode (deprecated - use /oh-my-claudecode:cancel instead)
3
+ ---
4
+
5
+ # Cancel Ecomode
6
+
7
+ [ECOMODE CANCELLED]
8
+
9
+ **DEPRECATION NOTICE:** This command is deprecated. Use `/oh-my-claudecode:cancel` instead, which intelligently detects and cancels any active mode including ecomode.
10
+
11
+ The unified cancel command is safer because it:
12
+ - Checks if ecomode is linked to Ralph and handles both
13
+ - Prevents orphaned state files
14
+ - Provides consistent cancellation experience
15
+
16
+ ## Legacy Behavior
17
+
18
+ If you still use this command, it will:
19
+
20
+ 1. Check if ecomode is linked to Ralph
21
+ 2. If linked → Warn and suggest using `/oh-my-claudecode:cancel-ralph`
22
+ 3. If standalone → Cancel ecomode only
23
+
24
+ ## Arguments
25
+
26
+ {{ARGUMENTS}}
27
+
28
+ ## Recommended Action
29
+
30
+ Use the unified cancel command:
31
+ ```
32
+ /oh-my-claudecode:cancel
33
+ ```
34
+
35
+ This will detect ecomode and cancel it properly, along with any linked modes.
36
+
37
+ ## Implementation
38
+
39
+ If you must cancel ecomode directly:
40
+
41
+ ```bash
42
+ # Check if linked to ralph
43
+ LINKED=$(cat .omc/ecomode-state.json 2>/dev/null | jq -r '.linked_to_ralph // false')
44
+
45
+ if [[ "$LINKED" == "true" ]]; then
46
+ echo "Warning: Ecomode is linked to Ralph."
47
+ echo "Use /oh-my-claudecode:cancel to cancel both modes."
48
+ exit 1
49
+ fi
50
+
51
+ # Cancel standalone ecomode
52
+ mkdir -p .omc ~/.claude
53
+ rm -f .omc/ecomode-state.json
54
+ rm -f ~/.claude/ecomode-state.json
55
+
56
+ echo "Ecomode cancelled. Token-efficient execution mode deactivated."
57
+ ```
58
+
59
+ ## Migration
60
+
61
+ Replace:
62
+ ```bash
63
+ /oh-my-claudecode:cancel-ecomode
64
+ ```
65
+
66
+ With:
67
+ ```bash
68
+ /oh-my-claudecode:cancel
69
+ ```
70
+
71
+ The new unified cancel is smarter and safer.
@@ -0,0 +1,75 @@
1
+ ---
2
+ description: Cancel any active OMC mode (autopilot, ralph, ultrawork, ecomode, ultraqa, swarm, ultrapilot, pipeline)
3
+ ---
4
+
5
+ # Cancel Command
6
+
7
+ [UNIFIED CANCEL - INTELLIGENT MODE DETECTION]
8
+
9
+ You are cancelling the active OMC mode. The cancel skill will automatically detect which mode is running and clean it up properly.
10
+
11
+ ## Auto-Detection
12
+
13
+ The skill checks state files to determine what's active and cancels in order of dependency:
14
+
15
+ 1. **Autopilot** - Stops workflow, preserves progress for resume, cleans up ralph/ultraqa
16
+ 2. **Ralph** - Stops persistence loop, cleans up linked ultrawork or ecomode
17
+ 3. **Ultrawork** - Stops parallel execution (standalone)
18
+ 4. **Ecomode** - Stops token-efficient execution (standalone)
19
+ 5. **UltraQA** - Stops QA cycling workflow
20
+ 6. **Swarm** - Stops coordinated agents, releases claimed tasks
21
+ 7. **Ultrapilot** - Stops parallel autopilot workers
22
+ 8. **Pipeline** - Stops sequential agent chain
23
+
24
+ ## Usage
25
+
26
+ Basic cancellation (auto-detects mode):
27
+ ```
28
+ /oh-my-claudecode:cancel
29
+ ```
30
+
31
+ Force clear ALL state files:
32
+ ```
33
+ /oh-my-claudecode:cancel --force
34
+ /oh-my-claudecode:cancel --all
35
+ ```
36
+
37
+ ## User Arguments
38
+
39
+ {{ARGUMENTS}}
40
+
41
+ ## State Files Checked
42
+
43
+ - `.omc/autopilot-state.json` → Autopilot
44
+ - `.omc/ralph-state.json` → Ralph
45
+ - `.omc/ultrawork-state.json` → Ultrawork
46
+ - `.omc/ecomode-state.json` → Ecomode
47
+ - `.omc/ultraqa-state.json` → UltraQA
48
+ - `.omc/swarm-state.json` → Swarm
49
+ - `.omc/ultrapilot-state.json` → Ultrapilot
50
+ - `.omc/pipeline-state.json` → Pipeline
51
+
52
+ ## What Gets Preserved
53
+
54
+ | Mode | Progress Preserved | Resume |
55
+ |------|-------------------|--------|
56
+ | Autopilot | Yes (phase, spec, plan) | `/oh-my-claudecode:autopilot` |
57
+ | All Others | No | N/A |
58
+
59
+ ## Dependency-Aware Cleanup
60
+
61
+ - **Autopilot cancellation** → Cleans ralph + ultraqa if active
62
+ - **Ralph cancellation** → Cleans linked ultrawork OR ecomode if applicable
63
+ - **Force mode** → Clears ALL state files regardless of what's active
64
+
65
+ ## Exit Messages
66
+
67
+ The skill will report:
68
+ - Which mode was cancelled
69
+ - What phase/iteration it was in (if applicable)
70
+ - What dependent modes were cleaned up
71
+ - How to resume (if applicable)
72
+
73
+ ## Implementation
74
+
75
+ Run the cancel skill which contains the full bash implementation for intelligent mode detection and cleanup.
@@ -0,0 +1,231 @@
1
+ ---
2
+ description: Sequential agent chaining with data passing between stages
3
+ aliases: [pipe, chain]
4
+ ---
5
+
6
+ # Pipeline Command
7
+
8
+ [PIPELINE MODE ACTIVATED]
9
+
10
+ Chain multiple agents together in sequential workflows where output from one agent flows to the next. Like Unix pipes for AI agents.
11
+
12
+ ## User's Request
13
+
14
+ {{ARGUMENTS}}
15
+
16
+ ## Mission
17
+
18
+ Execute a pipeline of agents where each stage receives context from previous stages and passes refined output to the next.
19
+
20
+ ## Usage Patterns
21
+
22
+ ### Built-in Presets
23
+
24
+ Use predefined pipelines for common workflows:
25
+
26
+ ```
27
+ /oh-my-claudecode:pipeline review <task>
28
+ /oh-my-claudecode:pipeline implement <task>
29
+ /oh-my-claudecode:pipeline debug <issue>
30
+ /oh-my-claudecode:pipeline research <topic>
31
+ /oh-my-claudecode:pipeline refactor <target>
32
+ /oh-my-claudecode:pipeline security <scope>
33
+ ```
34
+
35
+ ### Custom Pipelines
36
+
37
+ Define your own agent sequence:
38
+
39
+ ```
40
+ /oh-my-claudecode:pipeline explore -> architect -> executor "add authentication"
41
+ /oh-my-claudecode:pipeline explore:haiku -> architect:opus -> executor:sonnet "optimize performance"
42
+ ```
43
+
44
+ ### With Parallel Stages
45
+
46
+ Run agents in parallel then merge:
47
+
48
+ ```
49
+ /oh-my-claudecode:pipeline [explore, researcher] -> architect -> executor "implement OAuth"
50
+ ```
51
+
52
+ ## Built-in Pipeline Definitions
53
+
54
+ ### Review Pipeline
55
+ **Stages:** explore → architect → critic → executor
56
+ **Use for:** Comprehensive code review and implementation
57
+
58
+ ### Implement Pipeline
59
+ **Stages:** planner → executor → tdd-guide
60
+ **Use for:** New features with clear requirements
61
+
62
+ ### Debug Pipeline
63
+ **Stages:** explore → architect → build-fixer
64
+ **Use for:** Bugs, build errors, test failures
65
+
66
+ ### Research Pipeline
67
+ **Stages:** parallel(researcher, explore) → architect → writer
68
+ **Use for:** Technology decisions, API integrations
69
+
70
+ ### Refactor Pipeline
71
+ **Stages:** explore → architect-medium → executor-high → qa-tester
72
+ **Use for:** Architectural changes, API redesigns
73
+
74
+ ### Security Pipeline
75
+ **Stages:** explore → security-reviewer → executor → security-reviewer-low
76
+ **Use for:** Security audits and vulnerability fixes
77
+
78
+ ## Pipeline State
79
+
80
+ Pipelines maintain state in `.omc/pipeline-state.json`:
81
+
82
+ ```json
83
+ {
84
+ "pipeline_id": "uuid",
85
+ "name": "review",
86
+ "active": true,
87
+ "current_stage": 2,
88
+ "stages": [
89
+ {
90
+ "name": "explore",
91
+ "status": "completed",
92
+ "output": "..."
93
+ },
94
+ {
95
+ "name": "architect",
96
+ "status": "in_progress"
97
+ },
98
+ {
99
+ "name": "executor",
100
+ "status": "pending"
101
+ }
102
+ ]
103
+ }
104
+ ```
105
+
106
+ ## Data Passing Protocol
107
+
108
+ Each agent receives structured context:
109
+
110
+ ```json
111
+ {
112
+ "pipeline_context": {
113
+ "original_task": "user's request",
114
+ "previous_stages": [
115
+ {
116
+ "agent": "explore",
117
+ "findings": "...",
118
+ "files_identified": ["src/auth.ts"]
119
+ }
120
+ ],
121
+ "current_stage": "architect",
122
+ "next_stage": "executor"
123
+ }
124
+ }
125
+ ```
126
+
127
+ ## Workflow
128
+
129
+ ### 1. Parse Pipeline Definition
130
+
131
+ Extract:
132
+ - Pipeline name (preset) or custom agent sequence
133
+ - Model specifications for each stage
134
+ - Task description
135
+
136
+ ### 2. Initialize State
137
+
138
+ Create `.omc/pipeline-state.json` with:
139
+ - Unique pipeline ID
140
+ - Stage definitions
141
+ - Status tracking
142
+
143
+ ### 3. Execute Stages Sequentially
144
+
145
+ For each stage:
146
+ 1. Spawn agent via Task tool
147
+ 2. Pass context from previous stages
148
+ 3. Collect output
149
+ 4. Update pipeline state
150
+ 5. Move to next stage
151
+
152
+ ### 4. Handle Parallel Stages
153
+
154
+ When parallel stages detected (e.g., `[explore, researcher]`):
155
+ 1. Spawn multiple agents with `run_in_background: true`
156
+ 2. Wait for all to complete
157
+ 3. Merge outputs (concat or summarize)
158
+ 4. Pass merged output to next stage
159
+
160
+ ### 5. Verify and Complete
161
+
162
+ Before completion:
163
+ - All stages marked "completed"
164
+ - Output from final stage addresses original task
165
+ - No unhandled errors
166
+ - Modified files pass lsp_diagnostics
167
+ - Tests pass (if applicable)
168
+
169
+ ## Error Handling
170
+
171
+ When a stage fails:
172
+ - **Retry** - Re-run same agent (up to 3 times)
173
+ - **Fallback** - Route to higher-tier agent
174
+ - **Abort** - Stop entire pipeline
175
+
176
+ Configuration:
177
+ ```
178
+ /pipeline explore -> architect -> executor --retry=3 --on-error=abort
179
+ ```
180
+
181
+ ## Cancellation
182
+
183
+ Stop active pipeline:
184
+ ```
185
+ /oh-my-claudecode:cancel
186
+ ```
187
+
188
+ The unified cancel command auto-detects active pipeline and cleans up state.
189
+
190
+ ## Examples
191
+
192
+ ### Example 1: Feature Implementation
193
+ ```
194
+ /oh-my-claudecode:pipeline review "add rate limiting to API"
195
+ ```
196
+ Triggers: explore → architect → critic → executor
197
+
198
+ ### Example 2: Bug Fix
199
+ ```
200
+ /oh-my-claudecode:pipeline debug "login fails with OAuth"
201
+ ```
202
+ Triggers: explore → architect → build-fixer
203
+
204
+ ### Example 3: Custom Chain
205
+ ```
206
+ /oh-my-claudecode:pipeline explore:haiku -> architect:opus -> executor:sonnet -> tdd-guide:sonnet "refactor auth module"
207
+ ```
208
+
209
+ ### Example 4: Research-Driven Implementation
210
+ ```
211
+ /oh-my-claudecode:pipeline research "implement GraphQL subscriptions"
212
+ ```
213
+ Triggers: parallel(researcher, explore) → architect → writer
214
+
215
+ ## Best Practices
216
+
217
+ 1. **Start with presets** - Use built-in pipelines before custom ones
218
+ 2. **Match model to complexity** - haiku for simple, opus for complex
219
+ 3. **Keep stages focused** - One clear responsibility per agent
220
+ 4. **Use parallel stages** - Run independent work simultaneously
221
+ 5. **Verify at checkpoints** - Use architect or critic to verify progress
222
+ 6. **Document custom pipelines** - Save successful patterns for reuse
223
+
224
+ ## Output
225
+
226
+ Report when complete:
227
+ - Pipeline name and stages executed
228
+ - Output from each stage
229
+ - Final result
230
+ - Verification status
231
+ - Total time elapsed
@@ -0,0 +1,174 @@
1
+ ---
2
+ description: Strategic planning consultant with interview workflow
3
+ aliases: [planning, plan-interview]
4
+ ---
5
+
6
+ # Planner Command
7
+
8
+ [PLANNER MODE ACTIVATED - INTERVIEW WORKFLOW]
9
+
10
+ You are activating the Planner agent, a strategic planning consultant who creates comprehensive work plans through interview-style interaction.
11
+
12
+ ## User's Request
13
+
14
+ {{ARGUMENTS}}
15
+
16
+ ## What Planner Does
17
+
18
+ The Planner guides users through planning by:
19
+
20
+ 1. **Interview Phase** - Asks clarifying questions about requirements, constraints, goals
21
+ 2. **Analysis Phase** - Consults Analyst for hidden requirements and risk analysis
22
+ 3. **Plan Creation** - Creates detailed, actionable work plans
23
+
24
+ ## How It's Different from `/plan`
25
+
26
+ | Command | Workflow | Use When |
27
+ |---------|----------|----------|
28
+ | `/planner` | Full interview workflow | Requirements unclear, complex project |
29
+ | `/plan` | Quick planning, no interview | Requirements clear, simple task |
30
+
31
+ ## Interview Protocol
32
+
33
+ The Planner follows strict interview discipline:
34
+
35
+ ### Single Question at a Time
36
+
37
+ **NEVER** ask multiple questions in one message.
38
+
39
+ **Good:**
40
+ ```
41
+ What's the primary scope for this feature?
42
+ ```
43
+
44
+ **Bad:**
45
+ ```
46
+ What's the scope? And the timeline? And who's the audience?
47
+ ```
48
+
49
+ ### Question Categories
50
+
51
+ The Planner asks about:
52
+ - **Goals** - What success looks like
53
+ - **Constraints** - Time, budget, technical limits
54
+ - **Context** - Existing systems, dependencies
55
+ - **Risks** - What could go wrong
56
+ - **Preferences** - Trade-offs (speed vs quality)
57
+
58
+ ### Using AskUserQuestion Tool
59
+
60
+ For preference questions, the Planner uses `AskUserQuestion` tool to provide clickable UI:
61
+
62
+ **Question types requiring AskUserQuestion:**
63
+ - Preference (speed vs quality)
64
+ - Requirement (deadline)
65
+ - Scope (include feature Y?)
66
+ - Constraint (performance needs)
67
+ - Risk tolerance (refactoring acceptable?)
68
+
69
+ **Example:**
70
+ ```
71
+ AskUserQuestion(
72
+ question="For performance, what matters more - latency or throughput?",
73
+ type="preference",
74
+ options=["Latency", "Throughput", "Both equally"]
75
+ )
76
+ ```
77
+
78
+ ## Plan Quality Criteria
79
+
80
+ Planner ensures:
81
+ - 80%+ claims cite file/line references
82
+ - 90%+ acceptance criteria are testable
83
+ - No vague terms without metrics
84
+ - All risks have mitigations
85
+
86
+ ## Transition to Plan Creation
87
+
88
+ Planner creates the plan when user says:
89
+ - "Create the plan"
90
+ - "Make it into a work plan"
91
+ - "I'm ready to plan"
92
+ - "Let's create the plan"
93
+
94
+ ## Plan Structure
95
+
96
+ The final plan includes:
97
+
98
+ 1. **Requirements Summary** - What was gathered from interview
99
+ 2. **Acceptance Criteria** - Testable conditions for completion
100
+ 3. **Implementation Steps** - With file references
101
+ 4. **Risks & Mitigations** - What could go wrong and how to handle
102
+ 5. **Verification Steps** - How to verify completion
103
+
104
+ ## Delegation to Planner Agent
105
+
106
+ This command delegates to the `planner` agent (Opus model) which follows the full interview workflow.
107
+
108
+ ```
109
+ Task(
110
+ subagent_type="oh-my-claudecode:planner",
111
+ model="opus",
112
+ prompt="PLANNING REQUEST: {{ARGUMENTS}}
113
+
114
+ Follow the interview workflow:
115
+ 1. Ask clarifying questions (one at a time)
116
+ 2. Use AskUserQuestion for preference questions
117
+ 3. Consult Analyst when ready
118
+ 4. Create plan when user confirms
119
+
120
+ Quality requirements:
121
+ - 80%+ claims cite file/line
122
+ - 90%+ criteria testable
123
+ - All risks have mitigations"
124
+ )
125
+ ```
126
+
127
+ ## When to Use Planner vs Plan
128
+
129
+ **Use `/planner` when:**
130
+ - Requirements are vague or unclear
131
+ - Complex project with many unknowns
132
+ - Need to explore trade-offs
133
+ - User needs guidance on what to consider
134
+
135
+ **Use `/plan` when:**
136
+ - Requirements are clear and specific
137
+ - Simple, well-defined task
138
+ - Just need structured task breakdown
139
+ - No need for extensive questioning
140
+
141
+ ## Example Workflow
142
+
143
+ ```
144
+ User: /oh-my-claudecode:planner add user authentication
145
+
146
+ Planner: What's the primary scope for this authentication feature?
147
+
148
+ User: JWT-based auth for our REST API
149
+
150
+ Planner: For JWT implementation, what matters more - ease of integration or maximum security?
151
+
152
+ User: Maximum security
153
+
154
+ Planner: Should we support refresh tokens for long-lived sessions?
155
+
156
+ User: Yes
157
+
158
+ Planner: [Consults Analyst for hidden requirements]
159
+
160
+ Planner: Ready to create the plan. I've identified 3 key risks. Shall I proceed?
161
+
162
+ User: Yes, create the plan
163
+
164
+ Planner: [Creates detailed plan with all sections]
165
+ ```
166
+
167
+ ## Output
168
+
169
+ The Planner will:
170
+ 1. Conduct interview (as many questions as needed)
171
+ 2. Consult Analyst for analysis
172
+ 3. Create comprehensive plan document
173
+ 4. Save to `.omc/plans/` directory
174
+ 5. Report plan location and summary