oh-my-claude-sisyphus 3.0.9 → 3.0.10
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/README.md +1 -1
- package/commands/analyze.md +42 -0
- package/commands/cancel-ralph.md +41 -0
- package/commands/cancel-ultraqa.md +27 -0
- package/commands/cancel-ultrawork.md +40 -0
- package/commands/deepinit.md +319 -0
- package/commands/deepsearch.md +34 -0
- package/commands/doctor.md +190 -0
- package/commands/help.md +64 -0
- package/commands/hud.md +232 -0
- package/commands/learner.md +134 -0
- package/commands/note.md +61 -0
- package/commands/omc-setup.md +132 -0
- package/commands/plan.md +32 -0
- package/commands/ralph-init.md +59 -0
- package/commands/ralph.md +96 -0
- package/commands/ralplan.md +214 -0
- package/commands/release.md +82 -0
- package/commands/review.md +32 -0
- package/commands/ultraqa.md +118 -0
- package/commands/ultrawork.md +84 -0
- package/docs/CLAUDE.md +3 -3
- package/docs/MIGRATION-v3.md +1 -1
- package/docs/MIGRATION.md +1 -1
- package/package.json +1 -1
- package/scripts/install.sh +1 -1
- package/skills/help/SKILL.md +1 -1
- package/commands/planner.md +0 -3
- package/commands/setup.md +0 -3
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: One-time setup for oh-my-claudecode (the ONLY command you need to learn)
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# OMC Setup
|
|
6
|
+
|
|
7
|
+
This is the **only command you need to learn**. After running this, everything else is automatic.
|
|
8
|
+
|
|
9
|
+
## Step 1: Ask User Preference
|
|
10
|
+
|
|
11
|
+
Use the AskUserQuestion tool to prompt the user:
|
|
12
|
+
|
|
13
|
+
**Question:** "Where should I configure oh-my-claudecode?"
|
|
14
|
+
|
|
15
|
+
**Options:**
|
|
16
|
+
1. **Local (this project)** - Creates `.claude/CLAUDE.md` in current project directory. Best for project-specific configurations.
|
|
17
|
+
2. **Global (all projects)** - Creates `~/.claude/CLAUDE.md` for all Claude Code sessions. Best for consistent behavior everywhere.
|
|
18
|
+
|
|
19
|
+
## Step 2: Execute Based on Choice
|
|
20
|
+
|
|
21
|
+
### If User Chooses LOCAL:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# Create .claude directory in current project
|
|
25
|
+
mkdir -p .claude
|
|
26
|
+
|
|
27
|
+
# Download fresh CLAUDE.md from GitHub
|
|
28
|
+
curl -fsSL "https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claudecode/main/docs/CLAUDE.md" -o .claude/CLAUDE.md && \
|
|
29
|
+
echo "Downloaded CLAUDE.md to .claude/CLAUDE.md"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### If User Chooses GLOBAL:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Download fresh CLAUDE.md to global config
|
|
36
|
+
curl -fsSL "https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claudecode/main/docs/CLAUDE.md" -o ~/.claude/CLAUDE.md && \
|
|
37
|
+
echo "Downloaded CLAUDE.md to ~/.claude/CLAUDE.md"
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Step 3: Setup HUD Statusline
|
|
41
|
+
|
|
42
|
+
The HUD shows real-time status in Claude Code's status bar. **Invoke the hud skill** to set up and configure:
|
|
43
|
+
|
|
44
|
+
Use the Skill tool to invoke: `hud` with args: `setup`
|
|
45
|
+
|
|
46
|
+
This will:
|
|
47
|
+
1. Install the HUD wrapper script to `~/.claude/hud/omc-hud.mjs`
|
|
48
|
+
2. Configure `statusLine` in `~/.claude/settings.json`
|
|
49
|
+
3. Report status and prompt to restart if needed
|
|
50
|
+
|
|
51
|
+
## Step 4: Verify Plugin Installation
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
grep -q "oh-my-claudecode" ~/.claude/settings.json && echo "Plugin verified" || echo "Plugin NOT found - run: claude /install-plugin oh-my-claudecode"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Step 5: Detect Upgrade from 2.x
|
|
58
|
+
|
|
59
|
+
Check if user has existing configuration:
|
|
60
|
+
```bash
|
|
61
|
+
# Check for existing 2.x artifacts
|
|
62
|
+
ls ~/.claude/commands/ralph-loop.md 2>/dev/null || ls ~/.claude/commands/ultrawork.md 2>/dev/null
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
If found, this is an upgrade from 2.x.
|
|
66
|
+
|
|
67
|
+
## Step 6: Show Welcome Message
|
|
68
|
+
|
|
69
|
+
### For New Users:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
OMC Setup Complete!
|
|
73
|
+
|
|
74
|
+
You don't need to learn any commands. I now have intelligent behaviors that activate automatically.
|
|
75
|
+
|
|
76
|
+
WHAT HAPPENS AUTOMATICALLY:
|
|
77
|
+
- Complex tasks -> I parallelize and delegate to specialists
|
|
78
|
+
- "plan this" -> I start a planning interview
|
|
79
|
+
- "don't stop until done" -> I persist until verified complete
|
|
80
|
+
- "stop" or "cancel" -> I intelligently stop current operation
|
|
81
|
+
|
|
82
|
+
MAGIC KEYWORDS (optional power-user shortcuts):
|
|
83
|
+
Just include these words naturally in your request:
|
|
84
|
+
|
|
85
|
+
| Keyword | Effect | Example |
|
|
86
|
+
|---------|--------|---------|
|
|
87
|
+
| ralph | Persistence mode | "ralph: fix the auth bug" |
|
|
88
|
+
| ralplan | Iterative planning | "ralplan this feature" |
|
|
89
|
+
| ulw | Max parallelism | "ulw refactor the API" |
|
|
90
|
+
| plan | Planning interview | "plan the new endpoints" |
|
|
91
|
+
|
|
92
|
+
Combine them: "ralph ulw: migrate the database"
|
|
93
|
+
|
|
94
|
+
HUD STATUSLINE:
|
|
95
|
+
The status bar now shows OMC state. Restart Claude Code to see it.
|
|
96
|
+
|
|
97
|
+
That's it! Just use Claude Code normally.
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### For Users Upgrading from 2.x:
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
OMC Setup Complete! (Upgraded from 2.x)
|
|
104
|
+
|
|
105
|
+
GOOD NEWS: Your existing commands still work!
|
|
106
|
+
- /ralph, /ultrawork, /planner, etc. all still function
|
|
107
|
+
|
|
108
|
+
WHAT'S NEW in 3.0:
|
|
109
|
+
You no longer NEED those commands. Everything is automatic now:
|
|
110
|
+
- Just say "don't stop until done" instead of /ralph
|
|
111
|
+
- Just say "fast" or "parallel" instead of /ultrawork
|
|
112
|
+
- Just say "plan this" instead of /planner
|
|
113
|
+
- Just say "stop" instead of /cancel-ralph
|
|
114
|
+
|
|
115
|
+
MAGIC KEYWORDS (power-user shortcuts):
|
|
116
|
+
| Keyword | Same as old... | Example |
|
|
117
|
+
|---------|----------------|---------|
|
|
118
|
+
| ralph | /ralph | "ralph: fix the bug" |
|
|
119
|
+
| ralplan | /ralplan | "ralplan this feature" |
|
|
120
|
+
| ulw | /ultrawork | "ulw refactor API" |
|
|
121
|
+
| plan | /planner | "plan the endpoints" |
|
|
122
|
+
|
|
123
|
+
HUD STATUSLINE:
|
|
124
|
+
The status bar now shows OMC state. Restart Claude Code to see it.
|
|
125
|
+
|
|
126
|
+
Your workflow won't break - it just got easier!
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Fallback
|
|
130
|
+
|
|
131
|
+
If curl fails, tell user to manually download from:
|
|
132
|
+
https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claudecode/main/docs/CLAUDE.md
|
package/commands/plan.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Start a planning session with Planner
|
|
3
3
|
---
|
|
4
|
+
|
|
5
|
+
# Plan Skill
|
|
6
|
+
|
|
7
|
+
[PLANNING MODE ACTIVATED]
|
|
8
|
+
|
|
9
|
+
## Planning Session with Planner
|
|
10
|
+
|
|
11
|
+
You are now in planning mode with Planner, the strategic planning consultant.
|
|
12
|
+
|
|
13
|
+
### Current Phase: Interview Mode
|
|
14
|
+
|
|
15
|
+
I will ask clarifying questions to fully understand your requirements before creating a plan.
|
|
16
|
+
|
|
17
|
+
### What Happens Next
|
|
18
|
+
1. **Interview** - I'll ask questions about your goals, constraints, and preferences
|
|
19
|
+
2. **Analysis** - Analyst will analyze for hidden requirements and risks
|
|
20
|
+
3. **Planning** - I'll create a comprehensive work plan
|
|
21
|
+
4. **Review** (optional) - Critic can review the plan for quality
|
|
22
|
+
|
|
23
|
+
### Transition Commands
|
|
24
|
+
Say one of these when you're ready to generate the plan:
|
|
25
|
+
- "Make it into a work plan!"
|
|
26
|
+
- "Create the plan"
|
|
27
|
+
- "I'm ready to plan"
|
|
28
|
+
|
|
29
|
+
### Plan Storage
|
|
30
|
+
- Drafts are saved to `.omc/drafts/`
|
|
31
|
+
- Final plans are saved to `.omc/plans/`
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
Let's begin. Tell me more about what you want to accomplish, and I'll ask clarifying questions.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Initialize a PRD (Product Requirements Document) for structured ralph-loop execution
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Ralph Init Skill
|
|
6
|
+
|
|
7
|
+
[RALPH-INIT - PRD CREATION MODE]
|
|
8
|
+
|
|
9
|
+
## What is PRD?
|
|
10
|
+
|
|
11
|
+
A PRD (Product Requirements Document) structures your task into discrete user stories for ralph-loop.
|
|
12
|
+
|
|
13
|
+
## Your Task
|
|
14
|
+
|
|
15
|
+
Create `.omc/prd.json` and `.omc/progress.txt` based on the task description.
|
|
16
|
+
|
|
17
|
+
### prd.json Structure
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"project": "[Project Name]",
|
|
22
|
+
"branchName": "ralph/[feature-name]",
|
|
23
|
+
"description": "[Feature description]",
|
|
24
|
+
"userStories": [
|
|
25
|
+
{
|
|
26
|
+
"id": "US-001",
|
|
27
|
+
"title": "[Short title]",
|
|
28
|
+
"description": "As a [user], I want to [action] so that [benefit].",
|
|
29
|
+
"acceptanceCriteria": ["Criterion 1", "Typecheck passes"],
|
|
30
|
+
"priority": 1,
|
|
31
|
+
"passes": false
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### progress.txt Structure
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
# Ralph Progress Log
|
|
41
|
+
Started: [ISO timestamp]
|
|
42
|
+
|
|
43
|
+
## Codebase Patterns
|
|
44
|
+
(No patterns discovered yet)
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Guidelines
|
|
50
|
+
|
|
51
|
+
1. **Right-sized stories**: Each completable in one focused session
|
|
52
|
+
2. **Verifiable criteria**: Include "Typecheck passes", "Tests pass"
|
|
53
|
+
3. **Independent stories**: Minimize dependencies between stories
|
|
54
|
+
4. **Priority order**: Foundational work (DB, types) before UI
|
|
55
|
+
|
|
56
|
+
After creating files, report summary and suggest running `/ralph-loop` to start.
|
|
57
|
+
|
|
58
|
+
Task to break down:
|
|
59
|
+
{{ARGUMENTS}}
|
package/commands/ralph.md
CHANGED
|
@@ -1,3 +1,99 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Self-referential loop until task completion with architect verification
|
|
3
3
|
---
|
|
4
|
+
|
|
5
|
+
# Ralph Skill
|
|
6
|
+
|
|
7
|
+
[RALPH + ULTRAWORK - ITERATION {{ITERATION}}/{{MAX}}]
|
|
8
|
+
|
|
9
|
+
Your previous attempt did not output the completion promise. Continue working on the task.
|
|
10
|
+
|
|
11
|
+
## ULTRAWORK MODE (AUTO-ACTIVATED)
|
|
12
|
+
|
|
13
|
+
Ralph automatically activates Ultrawork for maximum parallel execution. You MUST follow these rules:
|
|
14
|
+
|
|
15
|
+
### Parallel Execution Rules
|
|
16
|
+
- **PARALLEL**: Fire independent calls simultaneously - NEVER wait sequentially
|
|
17
|
+
- **BACKGROUND FIRST**: Use Task(run_in_background=true) for long operations (10+ concurrent)
|
|
18
|
+
- **DELEGATE**: Route tasks to specialist agents immediately
|
|
19
|
+
|
|
20
|
+
### Smart Model Routing (SAVE TOKENS)
|
|
21
|
+
|
|
22
|
+
| Task Complexity | Tier | Examples |
|
|
23
|
+
|-----------------|------|----------|
|
|
24
|
+
| Simple lookups | LOW (haiku) | "What does this function return?", "Find where X is defined" |
|
|
25
|
+
| Standard work | MEDIUM (sonnet) | "Add error handling", "Implement this feature" |
|
|
26
|
+
| Complex analysis | HIGH (opus) | "Debug this race condition", "Refactor auth module" |
|
|
27
|
+
|
|
28
|
+
### Available Agents by Tier
|
|
29
|
+
|
|
30
|
+
| Domain | LOW (Haiku) | MEDIUM (Sonnet) | HIGH (Opus) |
|
|
31
|
+
|--------|-------------|-----------------|-------------|
|
|
32
|
+
| **Analysis** | `architect-low` | `architect-medium` | `architect` |
|
|
33
|
+
| **Execution** | `executor-low` | `executor` | `executor-high` |
|
|
34
|
+
| **Search** | `explore` | `explore-medium` | - |
|
|
35
|
+
| **Research** | `researcher-low` | `researcher` | - |
|
|
36
|
+
| **Frontend** | `designer-low` | `designer` | `designer-high` |
|
|
37
|
+
| **Docs** | `writer` | - | - |
|
|
38
|
+
|
|
39
|
+
**CRITICAL: Always pass `model` parameter explicitly!**
|
|
40
|
+
```
|
|
41
|
+
Task(subagent_type="oh-my-claudecode:architect-low", model="haiku", prompt="...")
|
|
42
|
+
Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="...")
|
|
43
|
+
Task(subagent_type="oh-my-claudecode:architect", model="opus", prompt="...")
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Background Execution Rules
|
|
47
|
+
|
|
48
|
+
**Run in Background** (set `run_in_background: true`):
|
|
49
|
+
- Package installation: npm install, pip install, cargo build
|
|
50
|
+
- Build processes: npm run build, make, tsc
|
|
51
|
+
- Test suites: npm test, pytest, cargo test
|
|
52
|
+
- Docker operations: docker build, docker pull
|
|
53
|
+
|
|
54
|
+
**Run Blocking** (foreground):
|
|
55
|
+
- Quick status checks: git status, ls, pwd
|
|
56
|
+
- File reads, edits
|
|
57
|
+
- Simple commands
|
|
58
|
+
|
|
59
|
+
## COMPLETION REQUIREMENTS
|
|
60
|
+
|
|
61
|
+
Before claiming completion, you MUST:
|
|
62
|
+
1. Verify ALL requirements from the original task are met
|
|
63
|
+
2. Ensure no partial implementations
|
|
64
|
+
3. Check that code compiles/runs without errors
|
|
65
|
+
4. Verify tests pass (if applicable)
|
|
66
|
+
5. TODO LIST: Zero pending/in_progress tasks
|
|
67
|
+
|
|
68
|
+
## ARCHITECT VERIFICATION (MANDATORY)
|
|
69
|
+
|
|
70
|
+
When you believe the task is complete:
|
|
71
|
+
1. **First**, spawn Architect to verify your work (ALWAYS pass model explicitly!):
|
|
72
|
+
```
|
|
73
|
+
Task(subagent_type="oh-my-claudecode:architect", model="opus", prompt="Verify this implementation is complete: [describe what you did]")
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
2. **Wait for Architect's assessment**
|
|
77
|
+
|
|
78
|
+
3. **If Architect approves**: Output `<promise>{{PROMISE}}</promise>`
|
|
79
|
+
4. **If Architect finds issues**: Fix them, then repeat verification
|
|
80
|
+
|
|
81
|
+
DO NOT output the completion promise without Architect verification.
|
|
82
|
+
|
|
83
|
+
## ZERO TOLERANCE
|
|
84
|
+
|
|
85
|
+
- NO Scope Reduction - deliver FULL implementation
|
|
86
|
+
- NO Partial Completion - finish 100%
|
|
87
|
+
- NO Premature Stopping - ALL TODOs must be complete
|
|
88
|
+
- NO TEST DELETION - fix code, not tests
|
|
89
|
+
|
|
90
|
+
## INSTRUCTIONS
|
|
91
|
+
|
|
92
|
+
- Review your progress so far
|
|
93
|
+
- Continue from where you left off
|
|
94
|
+
- Use parallel execution and background tasks
|
|
95
|
+
- When FULLY complete AND Architect verified, output: <promise>{{PROMISE}}</promise>
|
|
96
|
+
- Do not stop until the task is truly done
|
|
97
|
+
|
|
98
|
+
Original task:
|
|
99
|
+
{{PROMPT}}
|
package/commands/ralplan.md
CHANGED
|
@@ -1,3 +1,217 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Iterative planning with Planner, Architect, and Critic until consensus
|
|
3
3
|
---
|
|
4
|
+
|
|
5
|
+
# Ralplan Skill
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
Ralplan orchestrates three specialized agents—Planner, Architect, and Critic—in an iterative loop until consensus is reached on a comprehensive work plan. This skill ensures plans are strategically sound, architecturally valid, and thoroughly reviewed before execution.
|
|
10
|
+
|
|
11
|
+
## The Planning Triad
|
|
12
|
+
|
|
13
|
+
Three agents collaborate in structured phases to validate and refine work plans:
|
|
14
|
+
|
|
15
|
+
| Agent | Role | Output |
|
|
16
|
+
|-------|------|--------|
|
|
17
|
+
| **Planner** | Strategic Planner | Creates/refines the work plan |
|
|
18
|
+
| **Architect** | Strategic Advisor | Answers questions, validates architecture |
|
|
19
|
+
| **Critic** | Ruthless Reviewer | Critiques and identifies gaps |
|
|
20
|
+
|
|
21
|
+
## The Iteration Loop
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
25
|
+
│ RALPLAN LOOP │
|
|
26
|
+
│ │
|
|
27
|
+
│ ┌──────────────┐ │
|
|
28
|
+
│ │ PLANNER │◄────────────────────────────────┐ │
|
|
29
|
+
│ │ (Plans) │ │ │
|
|
30
|
+
│ └──────┬───────┘ │ │
|
|
31
|
+
│ │ │ │
|
|
32
|
+
│ ▼ │ │
|
|
33
|
+
│ ┌──────────────┐ Questions? ┌───────────┐ │ │
|
|
34
|
+
│ │ Has open │─────────────────► │ ARCHITECT │ │ │
|
|
35
|
+
│ │ questions? │ │ (Advises) │ │ │
|
|
36
|
+
│ └──────┬───────┘ └─────┬─────┘ │ │
|
|
37
|
+
│ │ │ │ │
|
|
38
|
+
│ │ No questions │ │ │
|
|
39
|
+
│ ▼ ▼ │ │
|
|
40
|
+
│ ┌──────────────┐ ┌──────────┐ │ │
|
|
41
|
+
│ │ CRITIC │◄─────────────────│ Answers │ │ │
|
|
42
|
+
│ │ (Reviews) │ └──────────┘ │ │
|
|
43
|
+
│ └──────┬───────┘ │ │
|
|
44
|
+
│ │ │ │
|
|
45
|
+
│ ▼ │ │
|
|
46
|
+
│ ┌──────────────┐ REJECT ┌──────────────┐│ │
|
|
47
|
+
│ │ Verdict? │─────────────────►│ Feedback ││ │
|
|
48
|
+
│ └──────┬───────┘ │ to Planner │┘ │
|
|
49
|
+
│ │ └─────────────┘ │
|
|
50
|
+
│ │ OKAY │
|
|
51
|
+
│ ▼ │
|
|
52
|
+
│ ┌──────────────────────────────────────────────────────────┐ │
|
|
53
|
+
│ │ PLAN APPROVED │ │
|
|
54
|
+
│ │ Ready for /ralph execution │ │
|
|
55
|
+
│ └──────────────────────────────────────────────────────────┘ │
|
|
56
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## State Management
|
|
60
|
+
|
|
61
|
+
Ralplan maintains persistent state in `.omc/ralplan-state.json` to track progress and enable recovery across interruptions:
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"active": true,
|
|
66
|
+
"mode": "ralplan",
|
|
67
|
+
"iteration": 1,
|
|
68
|
+
"max_iterations": 5,
|
|
69
|
+
"plan_path": ".omc/plans/[feature].md",
|
|
70
|
+
"current_phase": "planner_planning",
|
|
71
|
+
"started_at": "ISO-timestamp",
|
|
72
|
+
"task_description": "[original task]"
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Phases**: `planner_planning` → `architect_consultation` → `critic_review` → `handling_verdict` → `complete`
|
|
77
|
+
|
|
78
|
+
## Execution Protocol
|
|
79
|
+
|
|
80
|
+
### Initialization
|
|
81
|
+
|
|
82
|
+
The skill begins by establishing the planning environment:
|
|
83
|
+
|
|
84
|
+
1. Create `.omc/plans/` directory if it doesn't exist
|
|
85
|
+
2. Read task description from user input
|
|
86
|
+
3. Create `ralplan-state.json` with initial values:
|
|
87
|
+
- `active: true`
|
|
88
|
+
- `iteration: 0`
|
|
89
|
+
- `max_iterations: 5`
|
|
90
|
+
- `current_phase: "planner_planning"`
|
|
91
|
+
- `started_at`: Current ISO timestamp
|
|
92
|
+
- `task_description`: User's task description
|
|
93
|
+
|
|
94
|
+
### Planner Planning Phase
|
|
95
|
+
|
|
96
|
+
The Planner creates an initial plan based on task context:
|
|
97
|
+
|
|
98
|
+
- Invoke Planner in **direct planning mode** (bypassing interview since task context is pre-gathered)
|
|
99
|
+
- Planner receives task context directly without preliminary questioning
|
|
100
|
+
- Planner mandatorily consults with Metis for gap detection
|
|
101
|
+
- Planner generates plan directly to `.omc/plans/[feature-name].md`
|
|
102
|
+
- Plan includes: requirements summary, concrete acceptance criteria, specific implementation steps with file references, risk identification with mitigations, and verification steps
|
|
103
|
+
- Signal completion with `PLAN_READY: .omc/plans/[filename].md`
|
|
104
|
+
- Extract plan path from completion signal and update state
|
|
105
|
+
|
|
106
|
+
### Architect Consultation (Conditional)
|
|
107
|
+
|
|
108
|
+
The Architect provides strategic guidance in two scenarios:
|
|
109
|
+
|
|
110
|
+
1. **After Planner**: If Planner raises architectural questions needing strategic input
|
|
111
|
+
2. **After Critic rejection**: If Critic identifies questions requiring expert guidance
|
|
112
|
+
|
|
113
|
+
When invoked, the Architect receives file paths to read for analysis, not summaries. This enables thorough examination of the existing codebase context before providing recommendations.
|
|
114
|
+
|
|
115
|
+
### Critic Review
|
|
116
|
+
|
|
117
|
+
The Critic examines the plan against quality standards:
|
|
118
|
+
|
|
119
|
+
- Critic receives the plan file path (per its design)
|
|
120
|
+
- Critic conducts thorough review of plan completeness and feasibility
|
|
121
|
+
- Critic emits verdict: either `OKAY` (approval) or `REJECT` with specific issues
|
|
122
|
+
|
|
123
|
+
### Verdict Handling and Iteration
|
|
124
|
+
|
|
125
|
+
Based on Critic's verdict, the skill either approves the plan or continues iteration:
|
|
126
|
+
|
|
127
|
+
**If verdict is OKAY:**
|
|
128
|
+
- Mark plan as approved
|
|
129
|
+
- Log approval with iteration count
|
|
130
|
+
- Prepare plan for execution with `/ralph` or manual orchestration
|
|
131
|
+
- Set state `active: false, current_phase: "complete"`
|
|
132
|
+
|
|
133
|
+
**If verdict is REJECT:**
|
|
134
|
+
- Extract Critic feedback with specific issues
|
|
135
|
+
- Increment iteration counter
|
|
136
|
+
- If `iteration >= max_iterations` (5):
|
|
137
|
+
- Force approval with warning about unresolved concerns
|
|
138
|
+
- Recommend manual review before execution
|
|
139
|
+
- Otherwise:
|
|
140
|
+
- Feed Critic feedback back to Planner
|
|
141
|
+
- Return to Planner Planning phase for refinement
|
|
142
|
+
|
|
143
|
+
## Iteration Rules
|
|
144
|
+
|
|
145
|
+
| Rule | Description |
|
|
146
|
+
|------|-------------|
|
|
147
|
+
| **Max 5 iterations** | Safety limit prevents infinite loops |
|
|
148
|
+
| **Planner owns plan** | Only Planner writes to plan file |
|
|
149
|
+
| **Architect provides wisdom** | Architect reads and advises, never modifies |
|
|
150
|
+
| **Critic has final say** | Plan approved only when Critic signals OKAY |
|
|
151
|
+
| **Feedback is specific** | Each rejection includes actionable improvements |
|
|
152
|
+
| **State persists** | Progress survives session interruptions |
|
|
153
|
+
|
|
154
|
+
## Quality Gates
|
|
155
|
+
|
|
156
|
+
The orchestrator must verify these gates before invoking Critic for each review:
|
|
157
|
+
|
|
158
|
+
1. **Plan file exists** at the path specified in state
|
|
159
|
+
2. **File references are valid** - Verify all mentioned files exist in codebase
|
|
160
|
+
3. **Acceptance criteria are concrete** - No vague "improve" or "optimize" without measurable metrics
|
|
161
|
+
4. **No ambiguous language** - Each task clearly specifies what to do
|
|
162
|
+
|
|
163
|
+
If any gate fails, return to Planner with specific failure feedback for remediation.
|
|
164
|
+
|
|
165
|
+
## Agent Communication Protocol
|
|
166
|
+
|
|
167
|
+
### Planner to Architect Questions
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
ARCHITECT_QUESTION:
|
|
171
|
+
- Topic: [Architecture/Performance/Security/Pattern]
|
|
172
|
+
- Context: [What we're planning]
|
|
173
|
+
- Files to examine: [specific paths]
|
|
174
|
+
- Specific Question: [What we need answered]
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Architect to Planner Answers
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
ARCHITECT_ANSWER:
|
|
181
|
+
- Topic: [Matching topic]
|
|
182
|
+
- Analysis: [What Architect found after reading files]
|
|
183
|
+
- Recommendation: [Specific guidance]
|
|
184
|
+
- Trade-offs: [What to consider]
|
|
185
|
+
- References: [file:line citations from codebase]
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Critic to Planner Feedback
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
CRITIC_FEEDBACK:
|
|
192
|
+
- Verdict: REJECT
|
|
193
|
+
- Critical Issues:
|
|
194
|
+
1. [Issue with specific fix required]
|
|
195
|
+
2. [Issue with specific fix required]
|
|
196
|
+
- Minor Issues:
|
|
197
|
+
1. [Nice to fix]
|
|
198
|
+
- Questions for Architect (if any):
|
|
199
|
+
1. [Architectural question needing expert input]
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## Cancellation
|
|
203
|
+
|
|
204
|
+
To stop an active ralplan session:
|
|
205
|
+
|
|
206
|
+
- Use `/cancel-ralph` (automatically detects ralplan via state file)
|
|
207
|
+
- Or manually delete `.omc/ralplan-state.json`
|
|
208
|
+
|
|
209
|
+
## Skill Workflow
|
|
210
|
+
|
|
211
|
+
1. **Initialize state** and log: `[RALPLAN Iteration 0/5] Initializing...`
|
|
212
|
+
2. **Parse task** from user input
|
|
213
|
+
3. **Spawn Planner** in direct planning mode
|
|
214
|
+
4. **Iterate** through planning loop with observability logging at each phase
|
|
215
|
+
5. **Complete** when Critic approves or max iterations reached with warnings
|
|
216
|
+
|
|
217
|
+
The iterative loop refines the plan until it meets the rigorous standards of all three agents, ensuring comprehensive, architecturally sound work plans ready for execution.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Automated release workflow for oh-my-claudecode
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Release Skill
|
|
6
|
+
|
|
7
|
+
Automate the release process for oh-my-claudecode.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/release <version>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Example: `/release 2.4.0` or `/release patch` or `/release minor`
|
|
16
|
+
|
|
17
|
+
## Release Checklist
|
|
18
|
+
|
|
19
|
+
Execute these steps in order:
|
|
20
|
+
|
|
21
|
+
### 1. Version Bump
|
|
22
|
+
Update version in all locations:
|
|
23
|
+
- `package.json`
|
|
24
|
+
- `src/installer/index.ts` (VERSION constant)
|
|
25
|
+
- `src/__tests__/installer.test.ts` (expected version)
|
|
26
|
+
- `.claude-plugin/plugin.json`
|
|
27
|
+
- `README.md` (version badge and title)
|
|
28
|
+
|
|
29
|
+
### 2. Run Tests
|
|
30
|
+
```bash
|
|
31
|
+
npm run test:run
|
|
32
|
+
```
|
|
33
|
+
All 231+ tests must pass before proceeding.
|
|
34
|
+
|
|
35
|
+
### 3. Commit Version Bump
|
|
36
|
+
```bash
|
|
37
|
+
git add -A
|
|
38
|
+
git commit -m "chore: Bump version to <version>"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### 4. Create & Push Tag
|
|
42
|
+
```bash
|
|
43
|
+
git tag v<version>
|
|
44
|
+
git push origin main
|
|
45
|
+
git push origin v<version>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 5. Publish to npm
|
|
49
|
+
```bash
|
|
50
|
+
npm publish --access public
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### 6. Create GitHub Release
|
|
54
|
+
```bash
|
|
55
|
+
gh release create v<version> --title "v<version> - <title>" --notes "<release notes>"
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### 7. Verify
|
|
59
|
+
- [ ] npm: https://www.npmjs.com/package/oh-my-claudecode
|
|
60
|
+
- [ ] GitHub: https://github.com/Yeachan-Heo/oh-my-claudecode/releases
|
|
61
|
+
|
|
62
|
+
## Version Files Reference
|
|
63
|
+
|
|
64
|
+
| File | Field/Line |
|
|
65
|
+
|------|------------|
|
|
66
|
+
| `package.json` | `"version": "X.Y.Z"` |
|
|
67
|
+
| `src/installer/index.ts` | `export const VERSION = 'X.Y.Z'` |
|
|
68
|
+
| `src/__tests__/installer.test.ts` | `expect(VERSION).toBe('X.Y.Z')` |
|
|
69
|
+
| `.claude-plugin/plugin.json` | `"version": "X.Y.Z"` |
|
|
70
|
+
| `README.md` | Title + version badge |
|
|
71
|
+
|
|
72
|
+
## Semantic Versioning
|
|
73
|
+
|
|
74
|
+
- **patch** (X.Y.Z+1): Bug fixes, minor improvements
|
|
75
|
+
- **minor** (X.Y+1.0): New features, backward compatible
|
|
76
|
+
- **major** (X+1.0.0): Breaking changes
|
|
77
|
+
|
|
78
|
+
## Notes
|
|
79
|
+
|
|
80
|
+
- Always run tests before publishing
|
|
81
|
+
- Create release notes summarizing changes
|
|
82
|
+
- Plugin marketplace syncs automatically from GitHub releases
|
package/commands/review.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Review a plan with Critic
|
|
3
3
|
---
|
|
4
|
+
|
|
5
|
+
# Review Skill
|
|
6
|
+
|
|
7
|
+
[PLAN REVIEW MODE ACTIVATED]
|
|
8
|
+
|
|
9
|
+
## Role
|
|
10
|
+
|
|
11
|
+
Critically evaluate plans using Critic. No plan passes without meeting rigorous standards.
|
|
12
|
+
|
|
13
|
+
## Review Criteria
|
|
14
|
+
|
|
15
|
+
| Criterion | Standard |
|
|
16
|
+
|-----------|----------|
|
|
17
|
+
| Clarity | 80%+ claims cite file/line |
|
|
18
|
+
| Testability | 90%+ criteria are concrete |
|
|
19
|
+
| Verification | All file refs exist |
|
|
20
|
+
| Specificity | No vague terms |
|
|
21
|
+
|
|
22
|
+
## Verdicts
|
|
23
|
+
|
|
24
|
+
**APPROVED** - Plan meets all criteria, ready for execution
|
|
25
|
+
**REVISE** - Plan has issues needing fixes (with specific feedback)
|
|
26
|
+
**REJECT** - Fundamental problems require replanning
|
|
27
|
+
|
|
28
|
+
## What Gets Checked
|
|
29
|
+
|
|
30
|
+
1. Are requirements clear and unambiguous?
|
|
31
|
+
2. Are acceptance criteria concrete and testable?
|
|
32
|
+
3. Do file references actually exist?
|
|
33
|
+
4. Are implementation steps specific?
|
|
34
|
+
5. Are risks identified with mitigations?
|
|
35
|
+
6. Are verification steps defined?
|