oh-my-claude-sisyphus 3.5.1 → 3.5.5
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/commands/doctor.md +1 -1
- package/commands/ecomode.md +1 -2
- package/commands/help.md +1 -1
- package/commands/hud.md +21 -5
- package/commands/learn-about-omc.md +5 -0
- package/commands/mcp-setup.md +64 -75
- package/commands/omc-setup.md +38 -4
- package/commands/ralplan.md +1 -1
- package/commands/research.md +2 -2
- package/commands/ultraqa.md +1 -1
- package/dist/__tests__/analytics/transcript-token-extractor.test.js +4 -2
- package/dist/__tests__/analytics/transcript-token-extractor.test.js.map +1 -1
- package/dist/__tests__/delegation-enforcer-integration.test.d.ts +4 -0
- package/dist/__tests__/delegation-enforcer-integration.test.d.ts.map +1 -1
- package/dist/__tests__/delegation-enforcer-integration.test.js +5 -1
- package/dist/__tests__/delegation-enforcer-integration.test.js.map +1 -1
- package/dist/__tests__/hud/analytics-display.test.d.ts +2 -0
- package/dist/__tests__/hud/analytics-display.test.d.ts.map +1 -0
- package/dist/__tests__/hud/analytics-display.test.js +101 -0
- package/dist/__tests__/hud/analytics-display.test.js.map +1 -0
- package/dist/__tests__/skills.test.js +17 -19
- package/dist/__tests__/skills.test.js.map +1 -1
- package/dist/cli/analytics.js +1 -26
- package/dist/cli/analytics.js.map +1 -1
- package/dist/hooks/auto-slash-command/constants.d.ts.map +1 -1
- package/dist/hooks/auto-slash-command/constants.js +1 -4
- package/dist/hooks/auto-slash-command/constants.js.map +1 -1
- package/dist/hooks/ralph/loop.js +1 -1
- package/dist/hooks/ralph/loop.js.map +1 -1
- package/dist/hooks/ultraqa/index.js +1 -1
- package/dist/hooks/ultraqa/index.js.map +1 -1
- package/dist/hud/analytics-display.d.ts.map +1 -1
- package/dist/hud/analytics-display.js +5 -6
- package/dist/hud/analytics-display.js.map +1 -1
- package/dist/hud/index.js +94 -37
- package/dist/hud/index.js.map +1 -1
- package/dist/hud/render.js +1 -1
- package/dist/hud/render.js.map +1 -1
- package/dist/installer/index.d.ts.map +1 -1
- package/dist/installer/index.js +21 -3
- package/dist/installer/index.js.map +1 -1
- package/docs/CLAUDE.md +9 -16
- package/docs/FULL-README.md +49 -56
- package/docs/MIGRATION.md +96 -1
- package/hooks/keyword-detector.sh +1 -1
- package/package.json +1 -1
- package/scripts/install.sh +8 -217
- package/scripts/keyword-detector.mjs +1 -1
- package/scripts/persistent-mode.mjs +1 -1
- package/scripts/test-mutual-exclusion.ts +4 -4
- package/scripts/test-remember-tags.ts +6 -6
- package/scripts/test-session-injection.ts +4 -4
- package/scripts/uninstall.sh +0 -4
- package/skills/autopilot/SKILL.md +1 -1
- package/skills/cancel/SKILL.md +35 -0
- package/skills/doctor/SKILL.md +1 -1
- package/skills/help/SKILL.md +2 -2
- package/skills/hud/SKILL.md +21 -5
- package/skills/learn-about-omc/SKILL.md +128 -0
- package/skills/omc-setup/SKILL.md +9 -34
- package/skills/ralplan/SKILL.md +19 -250
- package/skills/research/SKILL.md +2 -2
- package/skills/ultrapilot/SKILL.md +1 -1
- package/skills/ultraqa/SKILL.md +1 -1
- package/commands/cancel-autopilot.md +0 -35
- package/commands/cancel-ecomode.md +0 -71
- package/commands/cancel-ralph.md +0 -41
- package/commands/cancel-ultraqa.md +0 -27
- package/commands/cancel-ultrawork.md +0 -40
- package/commands/planner.md +0 -174
- package/skills/cancel-autopilot/SKILL.md +0 -52
- package/skills/cancel-ecomode/SKILL.md +0 -41
- package/skills/cancel-ralph/SKILL.md +0 -42
- package/skills/cancel-ultraqa/SKILL.md +0 -28
- package/skills/cancel-ultrawork/SKILL.md +0 -41
- package/skills/omc-default/SKILL.md +0 -77
- package/skills/omc-default-global/SKILL.md +0 -74
- package/skills/planner/SKILL.md +0 -105
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: learn-about-omc
|
|
3
|
+
description: Analyze your OMC usage patterns and get personalized recommendations
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Learn About OMC
|
|
7
|
+
|
|
8
|
+
Analyzes your oh-my-claudecode usage and provides tailored recommendations to improve your workflow.
|
|
9
|
+
|
|
10
|
+
## What It Does
|
|
11
|
+
|
|
12
|
+
1. Reads token tracking from `~/.omc/state/token-tracking.jsonl`
|
|
13
|
+
2. Reads session history from `.omc/state/session-history.json`
|
|
14
|
+
3. Analyzes agent usage patterns
|
|
15
|
+
4. Identifies underutilized features
|
|
16
|
+
5. Recommends configuration changes
|
|
17
|
+
|
|
18
|
+
## Implementation
|
|
19
|
+
|
|
20
|
+
### Step 1: Gather Data
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# Check for token tracking data
|
|
24
|
+
TOKEN_FILE="$HOME/.omc/state/token-tracking.jsonl"
|
|
25
|
+
SESSION_FILE=".omc/state/session-history.json"
|
|
26
|
+
CONFIG_FILE="$HOME/.claude/.omc-config.json"
|
|
27
|
+
|
|
28
|
+
echo "📊 Analyzing OMC Usage..."
|
|
29
|
+
echo ""
|
|
30
|
+
|
|
31
|
+
# Check what data is available
|
|
32
|
+
HAS_TOKENS=false
|
|
33
|
+
HAS_SESSIONS=false
|
|
34
|
+
HAS_CONFIG=false
|
|
35
|
+
|
|
36
|
+
if [[ -f "$TOKEN_FILE" ]]; then
|
|
37
|
+
HAS_TOKENS=true
|
|
38
|
+
TOKEN_COUNT=$(wc -l < "$TOKEN_FILE")
|
|
39
|
+
echo "Token records found: $TOKEN_COUNT"
|
|
40
|
+
fi
|
|
41
|
+
|
|
42
|
+
if [[ -f "$SESSION_FILE" ]]; then
|
|
43
|
+
HAS_SESSIONS=true
|
|
44
|
+
SESSION_COUNT=$(cat "$SESSION_FILE" | jq '.sessions | length' 2>/dev/null || echo "0")
|
|
45
|
+
echo "Sessions found: $SESSION_COUNT"
|
|
46
|
+
fi
|
|
47
|
+
|
|
48
|
+
if [[ -f "$CONFIG_FILE" ]]; then
|
|
49
|
+
HAS_CONFIG=true
|
|
50
|
+
DEFAULT_MODE=$(cat "$CONFIG_FILE" | jq -r '.defaultExecutionMode // "not set"')
|
|
51
|
+
echo "Default execution mode: $DEFAULT_MODE"
|
|
52
|
+
fi
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Step 2: Analyze Agent Usage (if token data exists)
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
if [[ "$HAS_TOKENS" == "true" ]]; then
|
|
59
|
+
echo ""
|
|
60
|
+
echo "TOP AGENTS BY USAGE:"
|
|
61
|
+
cat "$TOKEN_FILE" | jq -r '.agentName // "main"' | sort | uniq -c | sort -rn | head -10
|
|
62
|
+
|
|
63
|
+
echo ""
|
|
64
|
+
echo "MODEL DISTRIBUTION:"
|
|
65
|
+
cat "$TOKEN_FILE" | jq -r '.modelName' | sort | uniq -c | sort -rn
|
|
66
|
+
fi
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Step 3: Generate Recommendations
|
|
70
|
+
|
|
71
|
+
Based on patterns found, output recommendations:
|
|
72
|
+
|
|
73
|
+
**If high Opus usage (>40%) and no ecomode:**
|
|
74
|
+
- "Consider using ecomode for routine tasks to save tokens"
|
|
75
|
+
|
|
76
|
+
**If no pipeline usage:**
|
|
77
|
+
- "Try /pipeline for code review workflows"
|
|
78
|
+
|
|
79
|
+
**If no security-reviewer usage:**
|
|
80
|
+
- "Use security-reviewer after auth/API changes"
|
|
81
|
+
|
|
82
|
+
**If defaultExecutionMode not set:**
|
|
83
|
+
- "Set defaultExecutionMode in /omc-setup for consistent behavior"
|
|
84
|
+
|
|
85
|
+
### Step 4: Output Report
|
|
86
|
+
|
|
87
|
+
Format a nice summary with:
|
|
88
|
+
- Token summary (total, by model)
|
|
89
|
+
- Top agents used
|
|
90
|
+
- Underutilized features
|
|
91
|
+
- Personalized recommendations
|
|
92
|
+
|
|
93
|
+
### Graceful Degradation
|
|
94
|
+
|
|
95
|
+
If no data found:
|
|
96
|
+
```
|
|
97
|
+
📊 Limited Usage Data Available
|
|
98
|
+
|
|
99
|
+
No token tracking found. To enable tracking:
|
|
100
|
+
1. Ensure ~/.omc/state/ directory exists
|
|
101
|
+
2. Run any OMC command to start tracking
|
|
102
|
+
|
|
103
|
+
Tip: Run /omc-setup to configure OMC properly.
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Example Output
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
📊 Your OMC Usage Analysis
|
|
110
|
+
|
|
111
|
+
TOKEN SUMMARY:
|
|
112
|
+
- Total records: 1,234
|
|
113
|
+
- By Model: opus 45%, sonnet 40%, haiku 15%
|
|
114
|
+
|
|
115
|
+
TOP AGENTS:
|
|
116
|
+
1. executor (234 uses)
|
|
117
|
+
2. architect (89 uses)
|
|
118
|
+
3. explore (67 uses)
|
|
119
|
+
|
|
120
|
+
UNDERUTILIZED FEATURES:
|
|
121
|
+
- ecomode: 0 uses (could save ~30% on routine tasks)
|
|
122
|
+
- pipeline: 0 uses (great for review workflows)
|
|
123
|
+
|
|
124
|
+
RECOMMENDATIONS:
|
|
125
|
+
1. Set defaultExecutionMode: "ecomode" to save tokens
|
|
126
|
+
2. Try /pipeline review for PR reviews
|
|
127
|
+
3. Use explore agent before architect to save context
|
|
128
|
+
```
|
|
@@ -266,30 +266,13 @@ echo "Default execution mode set to: USER_CHOICE"
|
|
|
266
266
|
|
|
267
267
|
**Note**: This preference ONLY affects generic keywords ("fast", "parallel"). Explicit keywords ("ulw", "eco") always override this preference.
|
|
268
268
|
|
|
269
|
-
## Step 4:
|
|
270
|
-
|
|
271
|
-
The analytics CLI requires additional dependencies for beautiful output formatting.
|
|
272
|
-
|
|
273
|
-
```bash
|
|
274
|
-
# Check if we're in the oh-my-claudecode directory
|
|
275
|
-
if [ -f "package.json" ] && grep -q "oh-my-claude-sisyphus" package.json 2>/dev/null; then
|
|
276
|
-
echo "Installing analytics CLI dependencies..."
|
|
277
|
-
npm install --silent 2>&1 | grep -v "npm WARN" || echo "Dependencies installed"
|
|
278
|
-
echo "Analytics CLI ready: omc"
|
|
279
|
-
else
|
|
280
|
-
echo "Skipping analytics dependencies (not in oh-my-claudecode directory)"
|
|
281
|
-
fi
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
**Note:** This step only runs when setup is executed from within the oh-my-claudecode project directory.
|
|
285
|
-
|
|
286
|
-
## Step 5: Verify Plugin Installation
|
|
269
|
+
## Step 4: Verify Plugin Installation
|
|
287
270
|
|
|
288
271
|
```bash
|
|
289
272
|
grep -q "oh-my-claudecode" ~/.claude/settings.json && echo "Plugin verified" || echo "Plugin NOT found - run: claude /install-plugin oh-my-claudecode"
|
|
290
273
|
```
|
|
291
274
|
|
|
292
|
-
## Step
|
|
275
|
+
## Step 5: Offer MCP Server Configuration
|
|
293
276
|
|
|
294
277
|
MCP servers extend Claude Code with additional tools (web search, GitHub, etc.).
|
|
295
278
|
|
|
@@ -302,7 +285,7 @@ If yes, invoke the mcp-setup skill:
|
|
|
302
285
|
|
|
303
286
|
If no, skip to next step.
|
|
304
287
|
|
|
305
|
-
## Step
|
|
288
|
+
## Step 6: Detect Upgrade from 2.x
|
|
306
289
|
|
|
307
290
|
Check if user has existing configuration:
|
|
308
291
|
```bash
|
|
@@ -312,7 +295,7 @@ ls ~/.claude/commands/ralph-loop.md 2>/dev/null || ls ~/.claude/commands/ultrawo
|
|
|
312
295
|
|
|
313
296
|
If found, this is an upgrade from 2.x.
|
|
314
297
|
|
|
315
|
-
## Step
|
|
298
|
+
## Step 7: Show Welcome Message
|
|
316
299
|
|
|
317
300
|
### For New Users:
|
|
318
301
|
|
|
@@ -343,10 +326,6 @@ Combine them: "ralph ulw: migrate the database"
|
|
|
343
326
|
MCP SERVERS:
|
|
344
327
|
Run /oh-my-claudecode:mcp-setup to add tools like web search, GitHub, etc.
|
|
345
328
|
|
|
346
|
-
ANALYTICS CLI:
|
|
347
|
-
Track token usage and costs with: omc | omc stats | omc cost | omc sessions | omc agents
|
|
348
|
-
Run 'omc' alone to see everything (session stats, cost, agents, cache efficiency)
|
|
349
|
-
|
|
350
329
|
HUD STATUSLINE:
|
|
351
330
|
The status bar now shows OMC state. Restart Claude Code to see it.
|
|
352
331
|
|
|
@@ -359,14 +338,14 @@ That's it! Just use Claude Code normally.
|
|
|
359
338
|
OMC Setup Complete! (Upgraded from 2.x)
|
|
360
339
|
|
|
361
340
|
GOOD NEWS: Your existing commands still work!
|
|
362
|
-
- /ralph, /ultrawork, /
|
|
341
|
+
- /ralph, /ultrawork, /plan, etc. all still function
|
|
363
342
|
|
|
364
343
|
WHAT'S NEW in 3.0:
|
|
365
344
|
You no longer NEED those commands. Everything is automatic now:
|
|
366
345
|
- Just say "don't stop until done" instead of /ralph
|
|
367
346
|
- Just say "fast" or "parallel" instead of /ultrawork
|
|
368
|
-
- Just say "plan this" instead of /
|
|
369
|
-
- Just say "stop" instead of /cancel
|
|
347
|
+
- Just say "plan this" instead of /plan
|
|
348
|
+
- Just say "stop" instead of /cancel
|
|
370
349
|
|
|
371
350
|
MAGIC KEYWORDS (power-user shortcuts):
|
|
372
351
|
| Keyword | Same as old... | Example |
|
|
@@ -375,11 +354,7 @@ MAGIC KEYWORDS (power-user shortcuts):
|
|
|
375
354
|
| ralplan | /ralplan | "ralplan this feature" |
|
|
376
355
|
| ulw | /ultrawork | "ulw refactor API" |
|
|
377
356
|
| eco | (new!) | "eco fix all errors" |
|
|
378
|
-
| plan | /
|
|
379
|
-
|
|
380
|
-
ANALYTICS CLI:
|
|
381
|
-
Track token usage and costs with: omc | omc stats | omc cost | omc sessions | omc agents
|
|
382
|
-
Run 'omc' alone to see everything (session stats, cost, agents, cache efficiency)
|
|
357
|
+
| plan | /plan | "plan the endpoints" |
|
|
383
358
|
|
|
384
359
|
HUD STATUSLINE:
|
|
385
360
|
The status bar now shows OMC state. Restart Claude Code to see it.
|
|
@@ -387,7 +362,7 @@ The status bar now shows OMC state. Restart Claude Code to see it.
|
|
|
387
362
|
Your workflow won't break - it just got easier!
|
|
388
363
|
```
|
|
389
364
|
|
|
390
|
-
## Step
|
|
365
|
+
## Step 8: Ask About Starring Repository
|
|
391
366
|
|
|
392
367
|
First, check if `gh` CLI is available and authenticated:
|
|
393
368
|
|
package/skills/ralplan/SKILL.md
CHANGED
|
@@ -3,269 +3,38 @@ name: ralplan
|
|
|
3
3
|
description: Iterative planning with Planner, Architect, and Critic until consensus
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Ralplan
|
|
6
|
+
# Ralplan Command
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
**This is an alias for `/plan --consensus`**
|
|
9
9
|
|
|
10
|
-
Ralplan orchestrates three specialized agents—Planner, Architect, and Critic—in an iterative loop until consensus is reached on a comprehensive work plan.
|
|
10
|
+
Ralplan orchestrates three specialized agents—Planner, Architect, and Critic—in an iterative loop until consensus is reached on a comprehensive work plan.
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Usage
|
|
13
13
|
|
|
14
|
-
Three agents collaborate in structured phases to validate and refine work plans:
|
|
15
|
-
|
|
16
|
-
| Agent | Role | Output |
|
|
17
|
-
|-------|------|--------|
|
|
18
|
-
| **Planner** | Strategic Planner | Creates/refines the work plan |
|
|
19
|
-
| **Architect** | Strategic Advisor | Answers questions, validates architecture |
|
|
20
|
-
| **Critic** | Ruthless Reviewer | Critiques and identifies gaps |
|
|
21
|
-
|
|
22
|
-
## The Iteration Loop
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
┌─────────────────────────────────────────────────────────────────┐
|
|
26
|
-
│ RALPLAN LOOP │
|
|
27
|
-
│ │
|
|
28
|
-
│ ┌──────────────┐ │
|
|
29
|
-
│ │ PLANNER │◄────────────────────────────────┐ │
|
|
30
|
-
│ │ (Plans) │ │ │
|
|
31
|
-
│ └──────┬───────┘ │ │
|
|
32
|
-
│ │ │ │
|
|
33
|
-
│ ▼ │ │
|
|
34
|
-
│ ┌──────────────┐ Questions? ┌───────────┐ │ │
|
|
35
|
-
│ │ Has open │─────────────────► │ ARCHITECT │ │ │
|
|
36
|
-
│ │ questions? │ │ (Advises) │ │ │
|
|
37
|
-
│ └──────┬───────┘ └─────┬─────┘ │ │
|
|
38
|
-
│ │ │ │ │
|
|
39
|
-
│ │ No questions │ │ │
|
|
40
|
-
│ ▼ ▼ │ │
|
|
41
|
-
│ ┌──────────────┐ ┌──────────┐ │ │
|
|
42
|
-
│ │ CRITIC │◄─────────────────│ Answers │ │ │
|
|
43
|
-
│ │ (Reviews) │ └──────────┘ │ │
|
|
44
|
-
│ └──────┬───────┘ │ │
|
|
45
|
-
│ │ │ │
|
|
46
|
-
│ ▼ │ │
|
|
47
|
-
│ ┌──────────────┐ REJECT ┌──────────────┐│ │
|
|
48
|
-
│ │ Verdict? │─────────────────►│ Feedback ││ │
|
|
49
|
-
│ └──────┬───────┘ │ to Planner │┘ │
|
|
50
|
-
│ │ └─────────────┘ │
|
|
51
|
-
│ │ OKAY │
|
|
52
|
-
│ ▼ │
|
|
53
|
-
│ ┌──────────────────────────────────────────────────────────┐ │
|
|
54
|
-
│ │ PLAN APPROVED │ │
|
|
55
|
-
│ │ Ready for /ralph execution │ │
|
|
56
|
-
│ └──────────────────────────────────────────────────────────┘ │
|
|
57
|
-
└─────────────────────────────────────────────────────────────────┘
|
|
58
14
|
```
|
|
59
|
-
|
|
60
|
-
## State Management
|
|
61
|
-
|
|
62
|
-
Ralplan maintains persistent state in `.omc/ralplan-state.json` to track progress and enable recovery across interruptions:
|
|
63
|
-
|
|
64
|
-
```json
|
|
65
|
-
{
|
|
66
|
-
"active": true,
|
|
67
|
-
"mode": "ralplan",
|
|
68
|
-
"iteration": 1,
|
|
69
|
-
"max_iterations": 5,
|
|
70
|
-
"plan_path": ".omc/plans/[feature].md",
|
|
71
|
-
"current_phase": "planner_planning",
|
|
72
|
-
"started_at": "ISO-timestamp",
|
|
73
|
-
"task_description": "[original task]"
|
|
74
|
-
}
|
|
15
|
+
/oh-my-claudecode:ralplan [task]
|
|
75
16
|
```
|
|
76
17
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
## Plan Mode Interaction (CRITICAL)
|
|
80
|
-
|
|
81
|
-
**When ralplan is invoked while Plan mode is active:**
|
|
82
|
-
|
|
83
|
-
The Planner agent has a PHASE 3.5 (CONFIRMATION) that normally requires user confirmation before proceeding. **This MUST be bypassed within ralplan because the Critic serves as the reviewer, not the user.**
|
|
84
|
-
|
|
85
|
-
### Mandatory Constraints
|
|
86
|
-
|
|
87
|
-
| Constraint | Rationale |
|
|
88
|
-
|------------|-----------|
|
|
89
|
-
| **Planner MUST skip PHASE 3.5 confirmation** | Critic reviews the plan, not the user |
|
|
90
|
-
| **Critic MUST run before any plan approval** | No plan is approved without Critic verdict |
|
|
91
|
-
| **DO NOT exit plan mode until Critic has rendered verdict** | Premature exit skips the review step |
|
|
92
|
-
| **Log `[RALPLAN] Critic review required before approval`** | Observability for debugging |
|
|
93
|
-
|
|
94
|
-
### Flow When Plan Mode Is Active
|
|
95
|
-
|
|
96
|
-
```
|
|
97
|
-
1. Orchestrator invokes ralplan skill
|
|
98
|
-
2. Log: [RALPLAN] Starting - Critic review will be required
|
|
99
|
-
3. Spawn Planner in DIRECT PLANNING MODE (no interview, no confirmation)
|
|
100
|
-
4. Planner outputs PLAN_READY: <path>
|
|
101
|
-
5. Log: [RALPLAN] Plan ready, invoking Critic for review
|
|
102
|
-
6. Spawn Critic with plan path <-- MUST HAPPEN
|
|
103
|
-
7. Critic renders OKAY or REJECT
|
|
104
|
-
8. ONLY THEN can plan be approved or refined
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
**CRITICAL: The Critic invocation is MANDATORY. If the Planner completes and signals plan ready, the orchestrator MUST invoke the Critic before any form of plan approval or user confirmation.**
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## Execution Protocol
|
|
112
|
-
|
|
113
|
-
### Initialization
|
|
114
|
-
|
|
115
|
-
The skill begins by establishing the planning environment:
|
|
116
|
-
|
|
117
|
-
1. Create `.omc/plans/` directory if it doesn't exist
|
|
118
|
-
2. Read task description from user input
|
|
119
|
-
3. Create `ralplan-state.json` with initial values:
|
|
120
|
-
- `active: true`
|
|
121
|
-
- `iteration: 0`
|
|
122
|
-
- `max_iterations: 5`
|
|
123
|
-
- `current_phase: "planner_planning"`
|
|
124
|
-
- `started_at`: Current ISO timestamp
|
|
125
|
-
- `task_description`: User's task description
|
|
126
|
-
|
|
127
|
-
### Planner Planning Phase
|
|
128
|
-
|
|
129
|
-
The Planner creates an initial plan based on task context:
|
|
130
|
-
|
|
131
|
-
- Invoke Planner in **direct planning mode** (bypassing interview since task context is pre-gathered)
|
|
132
|
-
- **CRITICAL: Planner MUST skip PHASE 3.5 (CONFIRMATION)** - the Critic will review, not the user
|
|
133
|
-
- Planner receives task context directly without preliminary questioning
|
|
134
|
-
- Planner mandatorily consults with Metis for gap detection
|
|
135
|
-
- Planner generates plan directly to `.omc/plans/[feature-name].md`
|
|
136
|
-
- Plan includes: requirements summary, concrete acceptance criteria, specific implementation steps with file references, risk identification with mitigations, and verification steps
|
|
137
|
-
- Signal completion with `PLAN_READY: .omc/plans/[filename].md`
|
|
138
|
-
- **After PLAN_READY: DO NOT approve or confirm the plan. Proceed to Critic Review.**
|
|
139
|
-
- Extract plan path from completion signal and update state
|
|
140
|
-
- Log: `[RALPLAN] Critic review required before approval`
|
|
141
|
-
|
|
142
|
-
### Architect Consultation (Conditional)
|
|
143
|
-
|
|
144
|
-
The Architect provides strategic guidance in two scenarios:
|
|
145
|
-
|
|
146
|
-
1. **After Planner**: If Planner raises architectural questions needing strategic input
|
|
147
|
-
2. **After Critic rejection**: If Critic identifies questions requiring expert guidance
|
|
18
|
+
## What It Does
|
|
148
19
|
|
|
149
|
-
|
|
20
|
+
Invokes the plan skill with --consensus mode, which:
|
|
21
|
+
1. Creates initial plan with Planner agent
|
|
22
|
+
2. Consults Architect for architectural questions
|
|
23
|
+
3. Reviews with Critic agent
|
|
24
|
+
4. Iterates until Critic approves (max 5 iterations)
|
|
150
25
|
|
|
151
|
-
|
|
26
|
+
## Implementation
|
|
152
27
|
|
|
153
|
-
|
|
28
|
+
When this skill is invoked, immediately invoke the plan skill with consensus mode:
|
|
154
29
|
|
|
155
|
-
Log at start: `[RALPLAN] Invoking Critic for plan review`
|
|
156
|
-
|
|
157
|
-
The Critic examines the plan against quality standards:
|
|
158
|
-
|
|
159
|
-
- Critic receives the plan file path (per its design)
|
|
160
|
-
- Critic conducts thorough review of plan completeness and feasibility
|
|
161
|
-
- Critic emits verdict: either `OKAY` (approval) or `REJECT` with specific issues
|
|
162
|
-
|
|
163
|
-
**Enforcement Rules:**
|
|
164
|
-
1. If Planner signals PLAN_READY, Critic MUST be invoked immediately
|
|
165
|
-
2. DO NOT exit ralplan loop before Critic verdict
|
|
166
|
-
3. DO NOT request user confirmation before Critic verdict
|
|
167
|
-
4. DO NOT trigger any plan mode exit behavior before Critic verdict
|
|
168
|
-
|
|
169
|
-
Log after Critic completes: `[RALPLAN] Critic verdict: <OKAY|REJECT>`
|
|
170
|
-
|
|
171
|
-
### Verdict Handling and Iteration
|
|
172
|
-
|
|
173
|
-
Based on Critic's verdict, the skill either approves the plan or continues iteration:
|
|
174
|
-
|
|
175
|
-
**If verdict is OKAY:**
|
|
176
|
-
- Mark plan as approved
|
|
177
|
-
- Log approval with iteration count
|
|
178
|
-
- Prepare plan for execution with `/oh-my-claudecode:ralph` or manual orchestration
|
|
179
|
-
- Set state `active: false, current_phase: "complete"`
|
|
180
|
-
|
|
181
|
-
**If verdict is REJECT:**
|
|
182
|
-
- Extract Critic feedback with specific issues
|
|
183
|
-
- Increment iteration counter
|
|
184
|
-
- If `iteration >= max_iterations` (5):
|
|
185
|
-
- Force approval with warning about unresolved concerns
|
|
186
|
-
- Recommend manual review before execution
|
|
187
|
-
- Otherwise:
|
|
188
|
-
- Feed Critic feedback back to Planner
|
|
189
|
-
- Return to Planner Planning phase for refinement
|
|
190
|
-
|
|
191
|
-
## Iteration Rules
|
|
192
|
-
|
|
193
|
-
| Rule | Description |
|
|
194
|
-
|------|-------------|
|
|
195
|
-
| **Max 5 iterations** | Safety limit prevents infinite loops |
|
|
196
|
-
| **Planner owns plan** | Only Planner writes to plan file |
|
|
197
|
-
| **Architect provides wisdom** | Architect reads and advises, never modifies |
|
|
198
|
-
| **Critic has final say** | Plan approved only when Critic signals OKAY |
|
|
199
|
-
| **Feedback is specific** | Each rejection includes actionable improvements |
|
|
200
|
-
| **State persists** | Progress survives session interruptions |
|
|
201
|
-
|
|
202
|
-
## Quality Gates
|
|
203
|
-
|
|
204
|
-
The orchestrator must verify these gates before invoking Critic for each review:
|
|
205
|
-
|
|
206
|
-
1. **Plan file exists** at the path specified in state
|
|
207
|
-
2. **File references are valid** - Verify all mentioned files exist in codebase
|
|
208
|
-
3. **Acceptance criteria are concrete** - No vague "improve" or "optimize" without measurable metrics
|
|
209
|
-
4. **No ambiguous language** - Each task clearly specifies what to do
|
|
210
|
-
|
|
211
|
-
If any gate fails, return to Planner with specific failure feedback for remediation.
|
|
212
|
-
|
|
213
|
-
## Agent Communication Protocol
|
|
214
|
-
|
|
215
|
-
### Planner to Architect Questions
|
|
216
|
-
|
|
217
|
-
```
|
|
218
|
-
ARCHITECT_QUESTION:
|
|
219
|
-
- Topic: [Architecture/Performance/Security/Pattern]
|
|
220
|
-
- Context: [What we're planning]
|
|
221
|
-
- Files to examine: [specific paths]
|
|
222
|
-
- Specific Question: [What we need answered]
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
### Architect to Planner Answers
|
|
226
|
-
|
|
227
|
-
```
|
|
228
|
-
ARCHITECT_ANSWER:
|
|
229
|
-
- Topic: [Matching topic]
|
|
230
|
-
- Analysis: [What Architect found after reading files]
|
|
231
|
-
- Recommendation: [Specific guidance]
|
|
232
|
-
- Trade-offs: [What to consider]
|
|
233
|
-
- References: [file:line citations from codebase]
|
|
234
30
|
```
|
|
235
|
-
|
|
236
|
-
### Critic to Planner Feedback
|
|
237
|
-
|
|
31
|
+
Invoke Skill: plan --consensus {{ARGUMENTS}}
|
|
238
32
|
```
|
|
239
|
-
CRITIC_FEEDBACK:
|
|
240
|
-
- Verdict: REJECT
|
|
241
|
-
- Critical Issues:
|
|
242
|
-
1. [Issue with specific fix required]
|
|
243
|
-
2. [Issue with specific fix required]
|
|
244
|
-
- Minor Issues:
|
|
245
|
-
1. [Nice to fix]
|
|
246
|
-
- Questions for Architect (if any):
|
|
247
|
-
1. [Architectural question needing expert input]
|
|
248
|
-
```
|
|
249
|
-
|
|
250
|
-
## Cancellation
|
|
251
|
-
|
|
252
|
-
To stop an active ralplan session:
|
|
253
|
-
|
|
254
|
-
- Use `/oh-my-claudecode:cancel-ralph` (automatically detects ralplan via state file)
|
|
255
|
-
- Or manually delete `.omc/ralplan-state.json`
|
|
256
|
-
|
|
257
|
-
## Skill Workflow
|
|
258
33
|
|
|
259
|
-
|
|
260
|
-
2. **Parse task** from user input
|
|
261
|
-
3. **Spawn Planner** in direct planning mode (SKIP Planner's PHASE 3.5 confirmation)
|
|
262
|
-
4. **Wait for PLAN_READY** signal from Planner
|
|
263
|
-
5. **Log:** `[RALPLAN] Critic review required before approval`
|
|
264
|
-
6. **Invoke Critic** with plan file path (MANDATORY - CANNOT BE SKIPPED)
|
|
265
|
-
7. **Log:** `[RALPLAN] Critic verdict: <verdict>`
|
|
266
|
-
8. **Handle verdict** - if REJECT, loop back to step 3 with feedback
|
|
267
|
-
9. **Complete** ONLY when Critic approves or max iterations reached with warnings
|
|
34
|
+
Pass all arguments to the plan skill. The plan skill handles all consensus logic, state management, and iteration.
|
|
268
35
|
|
|
269
|
-
|
|
36
|
+
## See Also
|
|
270
37
|
|
|
271
|
-
|
|
38
|
+
- `/plan` - Base planning skill with all modes
|
|
39
|
+
- `/plan --consensus` - Direct invocation of consensus mode
|
|
40
|
+
- `/cancel` - Cancel active planning session
|
package/skills/research/SKILL.md
CHANGED
|
@@ -145,7 +145,7 @@ Pending stages: {{PENDING_STAGES}}
|
|
|
145
145
|
1. **Max Iterations:** 10 (configurable)
|
|
146
146
|
2. **Continue until:** Promise tag emitted OR max iterations
|
|
147
147
|
3. **State tracking:** Persist after each stage completion
|
|
148
|
-
4. **Cancellation:** `/cancel
|
|
148
|
+
4. **Cancellation:** `/oh-my-claudecode:cancel` or "stop", "cancel"
|
|
149
149
|
|
|
150
150
|
### AUTO Mode Example
|
|
151
151
|
|
|
@@ -480,7 +480,7 @@ Optional settings in `.claude/settings.json`:
|
|
|
480
480
|
## Cancellation
|
|
481
481
|
|
|
482
482
|
```
|
|
483
|
-
/oh-my-claudecode:cancel
|
|
483
|
+
/oh-my-claudecode:cancel
|
|
484
484
|
```
|
|
485
485
|
|
|
486
486
|
Or say: "stop research", "cancel research", "abort"
|
package/skills/ultraqa/SKILL.md
CHANGED
|
@@ -107,7 +107,7 @@ Track state in `.omc/ultraqa-state.json`:
|
|
|
107
107
|
|
|
108
108
|
## Cancellation
|
|
109
109
|
|
|
110
|
-
User can cancel with `/oh-my-claudecode:cancel
|
|
110
|
+
User can cancel with `/oh-my-claudecode:cancel` which clears the state file.
|
|
111
111
|
|
|
112
112
|
## Important Rules
|
|
113
113
|
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Cancel active autopilot session
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Cancel Autopilot
|
|
6
|
-
|
|
7
|
-
[CANCELLING AUTOPILOT]
|
|
8
|
-
|
|
9
|
-
You are cancelling the active autopilot session.
|
|
10
|
-
|
|
11
|
-
## Action
|
|
12
|
-
|
|
13
|
-
1. Call the cancel function to clean up state
|
|
14
|
-
2. Report what was cancelled
|
|
15
|
-
3. Show preserved progress
|
|
16
|
-
|
|
17
|
-
## Steps
|
|
18
|
-
|
|
19
|
-
1. Check if autopilot is active
|
|
20
|
-
2. Clean up Ralph/UltraQA if active
|
|
21
|
-
3. Preserve autopilot state for resume
|
|
22
|
-
4. Report status
|
|
23
|
-
|
|
24
|
-
## Arguments
|
|
25
|
-
|
|
26
|
-
{{ARGUMENTS}}
|
|
27
|
-
|
|
28
|
-
If `--clear` is passed, completely clear all state instead of preserving.
|
|
29
|
-
|
|
30
|
-
## Output
|
|
31
|
-
|
|
32
|
-
Report:
|
|
33
|
-
- What phase was cancelled
|
|
34
|
-
- What modes were cleaned up
|
|
35
|
-
- How to resume
|
|
@@ -1,71 +0,0 @@
|
|
|
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.
|