oh-my-claudecode-opencode 0.2.1 → 0.3.0

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 (69) hide show
  1. package/assets/agents/analyst.md +85 -0
  2. package/assets/agents/architect-low.md +88 -0
  3. package/assets/agents/architect-medium.md +147 -0
  4. package/assets/agents/architect.md +147 -0
  5. package/assets/agents/build-fixer-low.md +83 -0
  6. package/assets/agents/build-fixer.md +160 -0
  7. package/assets/agents/code-reviewer-low.md +82 -0
  8. package/assets/agents/code-reviewer.md +155 -0
  9. package/assets/agents/critic.md +131 -0
  10. package/assets/agents/designer-high.md +113 -0
  11. package/assets/agents/designer-low.md +89 -0
  12. package/assets/agents/designer.md +80 -0
  13. package/assets/agents/executor-high.md +139 -0
  14. package/assets/agents/executor-low.md +94 -0
  15. package/assets/agents/executor.md +78 -0
  16. package/assets/agents/explore-medium.md +113 -0
  17. package/assets/agents/explore.md +86 -0
  18. package/assets/agents/planner.md +299 -0
  19. package/assets/agents/qa-tester.md +109 -0
  20. package/assets/agents/researcher-low.md +84 -0
  21. package/assets/agents/researcher.md +70 -0
  22. package/assets/agents/scientist-high.md +1023 -0
  23. package/assets/agents/scientist-low.md +258 -0
  24. package/assets/agents/scientist.md +1302 -0
  25. package/assets/agents/security-reviewer-low.md +83 -0
  26. package/assets/agents/security-reviewer.md +186 -0
  27. package/assets/agents/tdd-guide-low.md +81 -0
  28. package/assets/agents/tdd-guide.md +191 -0
  29. package/assets/agents/vision.md +39 -0
  30. package/assets/agents/writer.md +152 -0
  31. package/assets/skills/analyze.md +64 -0
  32. package/assets/skills/autopilot.md +168 -0
  33. package/assets/skills/cancel-autopilot.md +53 -0
  34. package/assets/skills/cancel-ralph.md +43 -0
  35. package/assets/skills/cancel-ultraqa.md +29 -0
  36. package/assets/skills/cancel-ultrawork.md +42 -0
  37. package/assets/skills/deepinit.md +321 -0
  38. package/assets/skills/deepsearch.md +39 -0
  39. package/assets/skills/doctor.md +192 -0
  40. package/assets/skills/frontend-ui-ux.md +53 -0
  41. package/assets/skills/git-master.md +58 -0
  42. package/assets/skills/help.md +66 -0
  43. package/assets/skills/hud.md +239 -0
  44. package/assets/skills/learner.md +136 -0
  45. package/assets/skills/mcp-setup.md +196 -0
  46. package/assets/skills/note.md +63 -0
  47. package/assets/skills/omc-default-global.md +75 -0
  48. package/assets/skills/omc-default.md +78 -0
  49. package/assets/skills/omc-setup.md +245 -0
  50. package/assets/skills/orchestrate.md +409 -0
  51. package/assets/skills/plan.md +38 -0
  52. package/assets/skills/planner.md +106 -0
  53. package/assets/skills/ralph-init.md +61 -0
  54. package/assets/skills/ralph.md +136 -0
  55. package/assets/skills/ralplan.md +272 -0
  56. package/assets/skills/release.md +84 -0
  57. package/assets/skills/research.md +511 -0
  58. package/assets/skills/review.md +37 -0
  59. package/assets/skills/tdd.md +80 -0
  60. package/assets/skills/ultraqa.md +123 -0
  61. package/assets/skills/ultrawork.md +93 -0
  62. package/dist/agents/index.d.ts +14 -1
  63. package/dist/agents/loader.d.ts +13 -0
  64. package/dist/agents/types.d.ts +14 -0
  65. package/dist/index.js +7269 -131
  66. package/dist/skills/index.d.ts +14 -0
  67. package/dist/skills/loader.d.ts +9 -0
  68. package/dist/skills/types.d.ts +9 -0
  69. package/package.json +6 -3
@@ -0,0 +1,75 @@
1
+ ---
2
+ name: omc-default-global
3
+ description: Configure OMC globally in ~/.claude/CLAUDE.md
4
+ user-invocable: true
5
+ ---
6
+
7
+ # OMC Default Global
8
+
9
+ ## Task: Configure OMC Default Mode (Global)
10
+
11
+ **CRITICAL**: This skill ALWAYS downloads fresh CLAUDE.md from GitHub to your global config. DO NOT use the Write tool - use bash curl exclusively.
12
+
13
+ ### Step 1: Download Fresh CLAUDE.md (MANDATORY)
14
+
15
+ Execute this bash command to erase and download fresh CLAUDE.md to global config:
16
+
17
+ ```bash
18
+ # Remove existing CLAUDE.md and download fresh from GitHub
19
+ rm -f ~/.claude/CLAUDE.md && \
20
+ curl -fsSL "https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claudecode/main/docs/CLAUDE.md" -o ~/.claude/CLAUDE.md && \
21
+ echo "✅ CLAUDE.md downloaded successfully to ~/.claude/CLAUDE.md" || \
22
+ echo "❌ Failed to download CLAUDE.md"
23
+ ```
24
+
25
+ **MANDATORY**: Always run this command. Do NOT skip. Do NOT use Write tool.
26
+
27
+ **FALLBACK** if curl fails:
28
+ Tell user to manually download from:
29
+ https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claudecode/main/docs/CLAUDE.md
30
+
31
+ ### Step 2: Clean Up Legacy Hooks (if present)
32
+
33
+ Check if old manual hooks exist and remove them to prevent duplicates:
34
+
35
+ ```bash
36
+ # Remove legacy bash hook scripts (now handled by plugin system)
37
+ rm -f ~/.claude/hooks/keyword-detector.sh
38
+ rm -f ~/.claude/hooks/stop-continuation.sh
39
+ rm -f ~/.claude/hooks/persistent-mode.sh
40
+ rm -f ~/.claude/hooks/session-start.sh
41
+ ```
42
+
43
+ Check `~/.claude/settings.json` for manual hook entries. If the "hooks" key exists with UserPromptSubmit, Stop, or SessionStart entries pointing to bash scripts, inform the user:
44
+
45
+ > **Note**: Found legacy hooks in settings.json. These should be removed since the plugin now provides hooks automatically. Remove the "hooks" section from ~/.claude/settings.json to prevent duplicate hook execution.
46
+
47
+ ### Step 3: Verify Plugin Installation
48
+
49
+ The oh-my-claudecode plugin provides all hooks automatically via the plugin system. Verify the plugin is enabled:
50
+
51
+ ```bash
52
+ grep -q "oh-my-claudecode" ~/.claude/settings.json && echo "Plugin enabled" || echo "Plugin NOT enabled"
53
+ ```
54
+
55
+ If plugin is not enabled, instruct user:
56
+ > Run: `claude /install-plugin oh-my-claudecode` to enable the plugin.
57
+
58
+ ### Step 4: Confirm Success
59
+
60
+ After completing all steps, report:
61
+
62
+ ✅ **OMC Global Configuration Complete**
63
+ - CLAUDE.md: Updated with latest configuration from GitHub at ~/.claude/CLAUDE.md
64
+ - Scope: **GLOBAL** - applies to all Claude Code sessions
65
+ - Hooks: Provided by plugin (no manual installation needed)
66
+ - Agents: 19+ available (base + tiered variants)
67
+ - Model routing: Haiku/Sonnet/Opus based on task complexity
68
+
69
+ **Note**: Hooks are now managed by the plugin system automatically. No manual hook installation required.
70
+
71
+ ---
72
+
73
+ ## Keeping Up to Date
74
+
75
+ After installing oh-my-claudecode updates (via npm or plugin update), run `/omc-default-global` again to get the latest CLAUDE.md configuration. This ensures you have the newest features and agent configurations.
@@ -0,0 +1,78 @@
1
+ ---
2
+ name: omc-default
3
+ description: Configure OMC in local project (.claude/CLAUDE.md)
4
+ user-invocable: true
5
+ ---
6
+
7
+ # OMC Default (Project-Scoped)
8
+
9
+ ## Task: Configure OMC Default Mode (Project-Scoped)
10
+
11
+ **CRITICAL**: This skill ALWAYS downloads fresh CLAUDE.md from GitHub to your local project. DO NOT use the Write tool - use bash curl exclusively.
12
+
13
+ ### Step 1: Create Local .claude Directory
14
+
15
+ Ensure the local project has a .claude directory:
16
+
17
+ ```bash
18
+ # Create .claude directory in current project
19
+ mkdir -p .claude && echo "✅ .claude directory created" || echo "❌ Failed to create .claude directory"
20
+ ```
21
+
22
+ ### Step 2: Download Fresh CLAUDE.md (MANDATORY)
23
+
24
+ Execute this bash command to download fresh CLAUDE.md to local project config:
25
+
26
+ ```bash
27
+ # Download fresh CLAUDE.md to project-local .claude/
28
+ curl -fsSL "https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claudecode/main/docs/CLAUDE.md" -o .claude/CLAUDE.md && \
29
+ echo "✅ CLAUDE.md downloaded successfully to .claude/CLAUDE.md" || \
30
+ echo "❌ Failed to download CLAUDE.md"
31
+ ```
32
+
33
+ **Note**: The downloaded CLAUDE.md includes Context Persistence instructions with `<remember>` tags for surviving conversation compaction.
34
+
35
+ **MANDATORY**: Always run this command. Do NOT skip. Do NOT use Write tool.
36
+
37
+ **FALLBACK** if curl fails:
38
+ Tell user to manually download from:
39
+ https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claudecode/main/docs/CLAUDE.md
40
+
41
+ ### Step 3: Verify Plugin Installation
42
+
43
+ The oh-my-claudecode plugin provides all hooks automatically via the plugin system. Verify the plugin is enabled:
44
+
45
+ ```bash
46
+ grep -q "oh-my-claudecode" ~/.claude/settings.json && echo "Plugin enabled" || echo "Plugin NOT enabled"
47
+ ```
48
+
49
+ If plugin is not enabled, instruct user:
50
+ > Run: `claude /install-plugin oh-my-claudecode` to enable the plugin.
51
+
52
+ ### Step 4: Confirm Success
53
+
54
+ After completing all steps, report:
55
+
56
+ ✅ **OMC Project Configuration Complete**
57
+ - CLAUDE.md: Updated with latest configuration from GitHub at ./.claude/CLAUDE.md
58
+ - Scope: **PROJECT** - applies only to this project
59
+ - Hooks: Provided by plugin (no manual installation needed)
60
+ - Agents: 19+ available (base + tiered variants)
61
+ - Model routing: Haiku/Sonnet/Opus based on task complexity
62
+
63
+ **Note**: This configuration is project-specific and won't affect other projects or global settings.
64
+
65
+ ---
66
+
67
+ ## Keeping Up to Date
68
+
69
+ After installing oh-my-claudecode updates (via npm or plugin update), run `/omc-default` again in your project to get the latest CLAUDE.md configuration. This ensures you have the newest features and agent configurations.
70
+
71
+ ---
72
+
73
+ ## Global vs Project Configuration
74
+
75
+ - **`/omc-default`** (this command): Creates `./.claude/CLAUDE.md` in your current project
76
+ - **`/omc-default-global`**: Creates `~/.claude/CLAUDE.md` for all projects
77
+
78
+ Project-scoped configuration takes precedence over global configuration.
@@ -0,0 +1,245 @@
1
+ ---
2
+ name: omc-setup
3
+ description: One-time setup for oh-my-claudecode (the ONLY command you need to learn)
4
+ user-invocable: true
5
+ ---
6
+
7
+ # OMC Setup
8
+
9
+ This is the **only command you need to learn**. After running this, everything else is automatic.
10
+
11
+ ## Step 1: Ask User Preference
12
+
13
+ Use the AskUserQuestion tool to prompt the user:
14
+
15
+ **Question:** "Where should I configure oh-my-claudecode?"
16
+
17
+ **Options:**
18
+ 1. **Local (this project)** - Creates `.claude/CLAUDE.md` in current project directory. Best for project-specific configurations.
19
+ 2. **Global (all projects)** - Creates `~/.claude/CLAUDE.md` for all Claude Code sessions. Best for consistent behavior everywhere.
20
+
21
+ ## Step 2: Execute Based on Choice
22
+
23
+ ### If User Chooses LOCAL:
24
+
25
+ ```bash
26
+ # Create .claude directory in current project
27
+ mkdir -p .claude
28
+
29
+ # Extract old version before download
30
+ OLD_VERSION=$(grep -m1 "^# oh-my-claudecode" .claude/CLAUDE.md 2>/dev/null | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' || echo "none")
31
+
32
+ # Download fresh CLAUDE.md from GitHub
33
+ curl -fsSL "https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claudecode/main/docs/CLAUDE.md" -o .claude/CLAUDE.md && \
34
+ echo "Downloaded CLAUDE.md to .claude/CLAUDE.md"
35
+
36
+ # Extract new version and report
37
+ NEW_VERSION=$(grep -m1 "^# oh-my-claudecode" .claude/CLAUDE.md 2>/dev/null | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' || echo "unknown")
38
+ if [ "$OLD_VERSION" = "none" ]; then
39
+ echo "Installed CLAUDE.md: $NEW_VERSION"
40
+ elif [ "$OLD_VERSION" = "$NEW_VERSION" ]; then
41
+ echo "CLAUDE.md unchanged: $NEW_VERSION"
42
+ else
43
+ echo "Updated CLAUDE.md: $OLD_VERSION -> $NEW_VERSION"
44
+ fi
45
+ ```
46
+
47
+ ### If User Chooses GLOBAL:
48
+
49
+ ```bash
50
+ # Extract old version before download
51
+ OLD_VERSION=$(grep -m1 "^# oh-my-claudecode" ~/.claude/CLAUDE.md 2>/dev/null | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' || echo "none")
52
+
53
+ # Download fresh CLAUDE.md to global config
54
+ curl -fsSL "https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claudecode/main/docs/CLAUDE.md" -o ~/.claude/CLAUDE.md && \
55
+ echo "Downloaded CLAUDE.md to ~/.claude/CLAUDE.md"
56
+
57
+ # Extract new version and report
58
+ NEW_VERSION=$(grep -m1 "^# oh-my-claudecode" ~/.claude/CLAUDE.md 2>/dev/null | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' || echo "unknown")
59
+ if [ "$OLD_VERSION" = "none" ]; then
60
+ echo "Installed CLAUDE.md: $NEW_VERSION"
61
+ elif [ "$OLD_VERSION" = "$NEW_VERSION" ]; then
62
+ echo "CLAUDE.md unchanged: $NEW_VERSION"
63
+ else
64
+ echo "Updated CLAUDE.md: $OLD_VERSION -> $NEW_VERSION"
65
+ fi
66
+ ```
67
+
68
+ ## Step 3: Setup HUD Statusline
69
+
70
+ The HUD shows real-time status in Claude Code's status bar. **Invoke the hud skill** to set up and configure:
71
+
72
+ Use the Skill tool to invoke: `hud` with args: `setup`
73
+
74
+ This will:
75
+ 1. Install the HUD wrapper script to `~/.claude/hud/omc-hud.mjs`
76
+ 2. Configure `statusLine` in `~/.claude/settings.json`
77
+ 3. Report status and prompt to restart if needed
78
+
79
+ ## Step 3.5: Clear Stale Plugin Cache
80
+
81
+ Clear old cached plugin versions to avoid conflicts:
82
+
83
+ ```bash
84
+ # Clear stale plugin cache versions
85
+ CACHE_DIR="$HOME/.claude/plugins/cache/omc/oh-my-claudecode"
86
+ if [ -d "$CACHE_DIR" ]; then
87
+ LATEST=$(ls -1 "$CACHE_DIR" | sort -V | tail -1)
88
+ CLEARED=0
89
+ for dir in "$CACHE_DIR"/*; do
90
+ if [ "$(basename "$dir")" != "$LATEST" ]; then
91
+ rm -rf "$dir"
92
+ CLEARED=$((CLEARED + 1))
93
+ fi
94
+ done
95
+ [ $CLEARED -gt 0 ] && echo "Cleared $CLEARED stale cache version(s)" || echo "Cache is clean"
96
+ else
97
+ echo "No cache directory found (normal for new installs)"
98
+ fi
99
+ ```
100
+
101
+ ## Step 3.6: Check for Updates
102
+
103
+ Notify user if a newer version is available:
104
+
105
+ ```bash
106
+ # Detect installed version
107
+ INSTALLED_VERSION=""
108
+
109
+ # Try cache directory first
110
+ if [ -d "$HOME/.claude/plugins/cache/omc/oh-my-claudecode" ]; then
111
+ INSTALLED_VERSION=$(ls -1 "$HOME/.claude/plugins/cache/omc/oh-my-claudecode" | sort -V | tail -1)
112
+ fi
113
+
114
+ # Try .omc-version.json second
115
+ if [ -z "$INSTALLED_VERSION" ] && [ -f ".omc-version.json" ]; then
116
+ INSTALLED_VERSION=$(grep -oE '"version":\s*"[^"]+' .omc-version.json | cut -d'"' -f4)
117
+ fi
118
+
119
+ # Try CLAUDE.md header third (local first, then global)
120
+ if [ -z "$INSTALLED_VERSION" ]; then
121
+ if [ -f ".claude/CLAUDE.md" ]; then
122
+ INSTALLED_VERSION=$(grep -m1 "^# oh-my-claudecode" .claude/CLAUDE.md 2>/dev/null | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | sed 's/^v//')
123
+ elif [ -f "$HOME/.claude/CLAUDE.md" ]; then
124
+ INSTALLED_VERSION=$(grep -m1 "^# oh-my-claudecode" "$HOME/.claude/CLAUDE.md" 2>/dev/null | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | sed 's/^v//')
125
+ fi
126
+ fi
127
+
128
+ # Check npm for latest version
129
+ LATEST_VERSION=$(npm view oh-my-claude-sisyphus version 2>/dev/null)
130
+
131
+ if [ -n "$INSTALLED_VERSION" ] && [ -n "$LATEST_VERSION" ]; then
132
+ # Simple version comparison (assumes semantic versioning)
133
+ if [ "$INSTALLED_VERSION" != "$LATEST_VERSION" ]; then
134
+ echo ""
135
+ echo "UPDATE AVAILABLE:"
136
+ echo " Installed: v$INSTALLED_VERSION"
137
+ echo " Latest: v$LATEST_VERSION"
138
+ echo ""
139
+ echo "To update, run: claude /install-plugin oh-my-claudecode"
140
+ else
141
+ echo "You're on the latest version: v$INSTALLED_VERSION"
142
+ fi
143
+ elif [ -n "$LATEST_VERSION" ]; then
144
+ echo "Latest version available: v$LATEST_VERSION"
145
+ fi
146
+ ```
147
+
148
+ ## Step 4: Verify Plugin Installation
149
+
150
+ ```bash
151
+ grep -q "oh-my-claudecode" ~/.claude/settings.json && echo "Plugin verified" || echo "Plugin NOT found - run: claude /install-plugin oh-my-claudecode"
152
+ ```
153
+
154
+ ## Step 5: Offer MCP Server Configuration
155
+
156
+ MCP servers extend Claude Code with additional tools (web search, GitHub, etc.).
157
+
158
+ Ask user: "Would you like to configure MCP servers for enhanced capabilities? (Context7, Exa search, GitHub, etc.)"
159
+
160
+ If yes, invoke the mcp-setup skill:
161
+ ```
162
+ /oh-my-claudecode:mcp-setup
163
+ ```
164
+
165
+ If no, skip to next step.
166
+
167
+ ## Step 6: Detect Upgrade from 2.x
168
+
169
+ Check if user has existing configuration:
170
+ ```bash
171
+ # Check for existing 2.x artifacts
172
+ ls ~/.claude/commands/ralph-loop.md 2>/dev/null || ls ~/.claude/commands/ultrawork.md 2>/dev/null
173
+ ```
174
+
175
+ If found, this is an upgrade from 2.x.
176
+
177
+ ## Step 7: Show Welcome Message
178
+
179
+ ### For New Users:
180
+
181
+ ```
182
+ OMC Setup Complete!
183
+
184
+ You don't need to learn any commands. I now have intelligent behaviors that activate automatically.
185
+
186
+ WHAT HAPPENS AUTOMATICALLY:
187
+ - Complex tasks -> I parallelize and delegate to specialists
188
+ - "plan this" -> I start a planning interview
189
+ - "don't stop until done" -> I persist until verified complete
190
+ - "stop" or "cancel" -> I intelligently stop current operation
191
+
192
+ MAGIC KEYWORDS (optional power-user shortcuts):
193
+ Just include these words naturally in your request:
194
+
195
+ | Keyword | Effect | Example |
196
+ |---------|--------|---------|
197
+ | ralph | Persistence mode | "ralph: fix the auth bug" |
198
+ | ralplan | Iterative planning | "ralplan this feature" |
199
+ | ulw | Max parallelism | "ulw refactor the API" |
200
+ | plan | Planning interview | "plan the new endpoints" |
201
+
202
+ Combine them: "ralph ulw: migrate the database"
203
+
204
+ MCP SERVERS:
205
+ Run /oh-my-claudecode:mcp-setup to add tools like web search, GitHub, etc.
206
+
207
+ HUD STATUSLINE:
208
+ The status bar now shows OMC state. Restart Claude Code to see it.
209
+
210
+ That's it! Just use Claude Code normally.
211
+ ```
212
+
213
+ ### For Users Upgrading from 2.x:
214
+
215
+ ```
216
+ OMC Setup Complete! (Upgraded from 2.x)
217
+
218
+ GOOD NEWS: Your existing commands still work!
219
+ - /ralph, /ultrawork, /planner, etc. all still function
220
+
221
+ WHAT'S NEW in 3.0:
222
+ You no longer NEED those commands. Everything is automatic now:
223
+ - Just say "don't stop until done" instead of /ralph
224
+ - Just say "fast" or "parallel" instead of /ultrawork
225
+ - Just say "plan this" instead of /planner
226
+ - Just say "stop" instead of /cancel-ralph
227
+
228
+ MAGIC KEYWORDS (power-user shortcuts):
229
+ | Keyword | Same as old... | Example |
230
+ |---------|----------------|---------|
231
+ | ralph | /ralph | "ralph: fix the bug" |
232
+ | ralplan | /ralplan | "ralplan this feature" |
233
+ | ulw | /ultrawork | "ulw refactor API" |
234
+ | plan | /planner | "plan the endpoints" |
235
+
236
+ HUD STATUSLINE:
237
+ The status bar now shows OMC state. Restart Claude Code to see it.
238
+
239
+ Your workflow won't break - it just got easier!
240
+ ```
241
+
242
+ ## Fallback
243
+
244
+ If curl fails, tell user to manually download from:
245
+ https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claudecode/main/docs/CLAUDE.md