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 CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
  **Step 2:** Run setup
32
32
  ```
33
- /omc-setup
33
+ /oh-my-claudecode:omc-setup
34
34
  ```
35
35
 
36
36
  That's it. Everything else is automatic.
@@ -1,3 +1,45 @@
1
1
  ---
2
2
  description: Deep analysis and investigation
3
3
  ---
4
+
5
+ # Deep Analysis Mode
6
+
7
+ [ANALYSIS MODE ACTIVATED]
8
+
9
+ ## Objective
10
+
11
+ Conduct thorough analysis of the specified target (code, architecture, issue, bug, performance bottleneck, security concern).
12
+
13
+ ## Approach
14
+
15
+ 1. **Gather Context**
16
+ - Read relevant files
17
+ - Check git history if relevant
18
+ - Review related issues/PRs if applicable
19
+
20
+ 2. **Analyze Systematically**
21
+ - Identify patterns and antipatterns
22
+ - Trace execution flows
23
+ - Map dependencies and relationships
24
+ - Check for edge cases
25
+
26
+ 3. **Synthesize Findings**
27
+ - Root cause (for bugs)
28
+ - Design decisions and tradeoffs (for architecture)
29
+ - Bottlenecks and hotspots (for performance)
30
+ - Vulnerabilities and risks (for security)
31
+
32
+ 4. **Provide Recommendations**
33
+ - Concrete, actionable next steps
34
+ - Prioritized by impact
35
+ - Consider maintainability and technical debt
36
+
37
+ ## Output Format
38
+
39
+ Present findings clearly:
40
+ - **Summary** (2-3 sentences)
41
+ - **Key Findings** (bulleted list)
42
+ - **Analysis** (detailed explanation)
43
+ - **Recommendations** (prioritized)
44
+
45
+ Stay objective. Cite file paths and line numbers. No speculation without evidence.
@@ -0,0 +1,41 @@
1
+ ---
2
+ description: Cancel active Ralph (and linked ultrawork if auto-activated)
3
+ ---
4
+
5
+ # Cancel Ralph
6
+
7
+ [RALPH CANCELLED]
8
+
9
+ Ralph has been cancelled. You MUST now deactivate the state files.
10
+
11
+ ## MANDATORY ACTION
12
+
13
+ Execute this command to fully cancel ALL persistent modes:
14
+
15
+ ```bash
16
+ mkdir -p .omc ~/.claude && \
17
+ echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ralph"}' > .omc/ralph-state.json && \
18
+ echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ralph", "linked_to_ralph": false}' > .omc/ultrawork-state.json && \
19
+ echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ralph"}' > .omc/ralph-plan-state.json && \
20
+ echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ralph"}' > ~/.claude/ralph-state.json && \
21
+ echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ralph"}' > ~/.claude/ultrawork-state.json && \
22
+ rm -f .omc/ralph-verification.json
23
+ ```
24
+
25
+ After running this command, you are free to stop working. The persistent mode hook will no longer force continuation.
26
+
27
+ ## What Was Cancelled
28
+
29
+ - **Ralph**: Self-referential completion loop
30
+ - **Ultrawork**: Parallel execution mode (auto-activated with Ralph by default)
31
+ - **Ralph Plan**: Iterative planning loop (if active via /ralplan)
32
+ - **Verification State**: Any pending architect verification
33
+
34
+ ## Note on Linked Modes
35
+
36
+ Since v3.0, Ralph automatically activates Ultrawork for parallel execution. When you cancel Ralph, the linked Ultrawork is also cancelled. If you started Ultrawork separately (not via Ralph), use `/cancel-ultrawork` to cancel it independently.
37
+
38
+ ## To Start Fresh
39
+
40
+ - `/ralph "task"` - Start ralph with ultrawork (default)
41
+ - `/ultrawork "task"` - Start ultrawork only (standalone)
@@ -0,0 +1,27 @@
1
+ ---
2
+ description: Cancel active UltraQA cycling workflow
3
+ ---
4
+
5
+ # Cancel UltraQA
6
+
7
+ [ULTRAQA CANCELLED]
8
+
9
+ The UltraQA cycling workflow has been cancelled. Clearing state file.
10
+
11
+ ## MANDATORY ACTION
12
+
13
+ Execute this command to cancel UltraQA:
14
+
15
+ ```bash
16
+ mkdir -p .sisyphus && echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ultraqa"}' > .omc/ultraqa-state.json
17
+ ```
18
+
19
+ After running this command, the QA cycling will stop.
20
+
21
+ ## To Start Fresh
22
+
23
+ - `/ultraqa --tests` - Run until all tests pass
24
+ - `/ultraqa --build` - Run until build succeeds
25
+ - `/ultraqa --lint` - Run until no lint errors
26
+ - `/ultraqa --typecheck` - Run until no type errors
27
+ - `/ultraqa --custom "pattern"` - Run until pattern matches
@@ -0,0 +1,40 @@
1
+ ---
2
+ description: Cancel active Ultrawork mode
3
+ ---
4
+
5
+ # Cancel Ultrawork
6
+
7
+ [ULTRAWORK CANCELLED]
8
+
9
+ The Ultrawork mode has been cancelled. Clearing state files.
10
+
11
+ ## MANDATORY ACTION
12
+
13
+ **First**, check if ultrawork is linked to an active Ralph loop:
14
+
15
+ ```bash
16
+ cat .omc/ultrawork-state.json 2>/dev/null | jq -r '.linked_to_ralph // false'
17
+ ```
18
+
19
+ **If linked_to_ralph is true**: Use `/cancel-ralph` instead to cancel both Ralph and its linked Ultrawork.
20
+
21
+ **Otherwise**, execute this command to cancel Ultrawork:
22
+
23
+ ```bash
24
+ mkdir -p .omc && \
25
+ echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ultrawork"}' > .omc/ultrawork-state.json && \
26
+ echo '{"active": false, "cancelled_at": "'$(date -Iseconds)'", "reason": "User cancelled via /cancel-ultrawork"}' > ~/.claude/ultrawork-state.json
27
+ ```
28
+
29
+ After running this command, ultrawork mode will be deactivated and the HUD will update.
30
+
31
+ ## Note on Linked Modes
32
+
33
+ Since v3.0, Ralph automatically activates Ultrawork. If you see `linked_to_ralph: true` in the ultrawork state, it means Ultrawork was auto-activated by Ralph. In this case:
34
+ - Use `/cancel-ralph` to cancel both modes
35
+ - If you only cancel ultrawork, Ralph will continue but without parallel execution benefits
36
+
37
+ ## To Start Fresh
38
+
39
+ - `/ultrawork "task"` - Start ultrawork only (standalone)
40
+ - `/ralph "task"` - Start ralph with ultrawork (default)
@@ -0,0 +1,319 @@
1
+ ---
2
+ description: Deep codebase initialization with hierarchical AGENTS.md documentation
3
+ ---
4
+
5
+ # Deep Init Skill
6
+
7
+ Creates comprehensive, hierarchical AGENTS.md documentation across the entire codebase.
8
+
9
+ ## Core Concept
10
+
11
+ AGENTS.md files serve as **AI-readable documentation** that helps agents understand:
12
+ - What each directory contains
13
+ - How components relate to each other
14
+ - Special instructions for working in that area
15
+ - Dependencies and relationships
16
+
17
+ ## Hierarchical Tagging System
18
+
19
+ Every AGENTS.md (except root) includes a parent reference tag:
20
+
21
+ ```markdown
22
+ <!-- Parent: ../AGENTS.md -->
23
+ ```
24
+
25
+ This creates a navigable hierarchy:
26
+ ```
27
+ /AGENTS.md ← Root (no parent tag)
28
+ ├── src/AGENTS.md ← <!-- Parent: ../AGENTS.md -->
29
+ │ ├── src/components/AGENTS.md ← <!-- Parent: ../AGENTS.md -->
30
+ │ └── src/utils/AGENTS.md ← <!-- Parent: ../AGENTS.md -->
31
+ └── docs/AGENTS.md ← <!-- Parent: ../AGENTS.md -->
32
+ ```
33
+
34
+ ## AGENTS.md Template
35
+
36
+ ```markdown
37
+ <!-- Parent: {relative_path_to_parent}/AGENTS.md -->
38
+ <!-- Generated: {timestamp} | Updated: {timestamp} -->
39
+
40
+ # {Directory Name}
41
+
42
+ ## Purpose
43
+ {One-paragraph description of what this directory contains and its role}
44
+
45
+ ## Key Files
46
+ {List each significant file with a one-line description}
47
+
48
+ | File | Description |
49
+ |------|-------------|
50
+ | `file.ts` | Brief description of purpose |
51
+
52
+ ## Subdirectories
53
+ {List each subdirectory with brief purpose}
54
+
55
+ | Directory | Purpose |
56
+ |-----------|---------|
57
+ | `subdir/` | What it contains (see `subdir/AGENTS.md`) |
58
+
59
+ ## For AI Agents
60
+
61
+ ### Working In This Directory
62
+ {Special instructions for AI agents modifying files here}
63
+
64
+ ### Testing Requirements
65
+ {How to test changes in this directory}
66
+
67
+ ### Common Patterns
68
+ {Code patterns or conventions used here}
69
+
70
+ ## Dependencies
71
+
72
+ ### Internal
73
+ {References to other parts of the codebase this depends on}
74
+
75
+ ### External
76
+ {Key external packages/libraries used}
77
+
78
+ <!-- MANUAL: Any manually added notes below this line are preserved on regeneration -->
79
+ ```
80
+
81
+ ## Execution Workflow
82
+
83
+ ### Step 1: Map Directory Structure
84
+
85
+ ```
86
+ Task(subagent_type="explore", model="haiku",
87
+ prompt="List all directories recursively. Exclude: node_modules, .git, dist, build, __pycache__, .venv, coverage, .next, .nuxt")
88
+ ```
89
+
90
+ ### Step 2: Create Work Plan
91
+
92
+ Generate todo items for each directory, organized by depth level:
93
+
94
+ ```
95
+ Level 0: / (root)
96
+ Level 1: /src, /docs, /tests
97
+ Level 2: /src/components, /src/utils, /docs/api
98
+ ...
99
+ ```
100
+
101
+ ### Step 3: Generate Level by Level
102
+
103
+ **IMPORTANT**: Generate parent levels before child levels to ensure parent references are valid.
104
+
105
+ For each directory:
106
+ 1. Read all files in the directory
107
+ 2. Analyze purpose and relationships
108
+ 3. Generate AGENTS.md content
109
+ 4. Write file with proper parent reference
110
+
111
+ ### Step 4: Compare and Update (if exists)
112
+
113
+ When AGENTS.md already exists:
114
+
115
+ 1. **Read existing content**
116
+ 2. **Identify sections**:
117
+ - Auto-generated sections (can be updated)
118
+ - Manual sections (`<!-- MANUAL -->` preserved)
119
+ 3. **Compare**:
120
+ - New files added?
121
+ - Files removed?
122
+ - Structure changed?
123
+ 4. **Merge**:
124
+ - Update auto-generated content
125
+ - Preserve manual annotations
126
+ - Update timestamp
127
+
128
+ ### Step 5: Validate Hierarchy
129
+
130
+ After generation, run validation checks:
131
+
132
+ | Check | How to Verify | Corrective Action |
133
+ |-------|--------------|-------------------|
134
+ | Parent references resolve | Read each AGENTS.md, check `<!-- Parent: -->` path exists | Fix path or remove orphan |
135
+ | No orphaned AGENTS.md | Compare AGENTS.md locations to directory structure | Delete orphaned files |
136
+ | Completeness | List all directories, check for AGENTS.md | Generate missing files |
137
+ | Timestamps current | Check `<!-- Generated: -->` dates | Regenerate outdated files |
138
+
139
+ Validation script pattern:
140
+ ```bash
141
+ # Find all AGENTS.md files
142
+ find . -name "AGENTS.md" -type f
143
+
144
+ # Check parent references
145
+ grep -r "<!-- Parent:" --include="AGENTS.md" .
146
+ ```
147
+
148
+ ## Smart Delegation
149
+
150
+ | Task | Agent |
151
+ |------|-------|
152
+ | Directory mapping | `explore` |
153
+ | File analysis | `architect-low` |
154
+ | Content generation | `writer` |
155
+ | Multi-file writes | `executor` |
156
+
157
+ ## Empty Directory Handling
158
+
159
+ When encountering empty or near-empty directories:
160
+
161
+ | Condition | Action |
162
+ |-----------|--------|
163
+ | No files, no subdirectories | **Skip** - do not create AGENTS.md |
164
+ | No files, has subdirectories | Create minimal AGENTS.md with subdirectory listing only |
165
+ | Has only generated files (*.min.js, *.map) | Skip or minimal AGENTS.md |
166
+ | Has only config files | Create AGENTS.md describing configuration purpose |
167
+
168
+ Example minimal AGENTS.md for directory-only containers:
169
+ ```markdown
170
+ <!-- Parent: ../AGENTS.md -->
171
+ # {Directory Name}
172
+
173
+ ## Purpose
174
+ Container directory for organizing related modules.
175
+
176
+ ## Subdirectories
177
+ | Directory | Purpose |
178
+ |-----------|---------|
179
+ | `subdir/` | Description (see `subdir/AGENTS.md`) |
180
+ ```
181
+
182
+ ## Parallelization Rules
183
+
184
+ 1. **Same-level directories**: Process in parallel
185
+ 2. **Different levels**: Sequential (parent first)
186
+ 3. **Large directories**: Spawn dedicated agent per directory
187
+ 4. **Small directories**: Batch multiple into one agent
188
+
189
+ ## Quality Standards
190
+
191
+ ### Must Include
192
+ - [ ] Accurate file descriptions
193
+ - [ ] Correct parent references
194
+ - [ ] Subdirectory links
195
+ - [ ] AI agent instructions
196
+
197
+ ### Must Avoid
198
+ - [ ] Generic boilerplate
199
+ - [ ] Incorrect file names
200
+ - [ ] Broken parent references
201
+ - [ ] Missing important files
202
+
203
+ ## Example Output
204
+
205
+ ### Root AGENTS.md
206
+ ```markdown
207
+ <!-- Generated: 2024-01-15 | Updated: 2024-01-15 -->
208
+
209
+ # my-project
210
+
211
+ ## Purpose
212
+ A web application for managing user tasks with real-time collaboration features.
213
+
214
+ ## Key Files
215
+ | File | Description |
216
+ |------|-------------|
217
+ | `package.json` | Project dependencies and scripts |
218
+ | `tsconfig.json` | TypeScript configuration |
219
+ | `.env.example` | Environment variable template |
220
+
221
+ ## Subdirectories
222
+ | Directory | Purpose |
223
+ |-----------|---------|
224
+ | `src/` | Application source code (see `src/AGENTS.md`) |
225
+ | `docs/` | Documentation (see `docs/AGENTS.md`) |
226
+ | `tests/` | Test suites (see `tests/AGENTS.md`) |
227
+
228
+ ## For AI Agents
229
+
230
+ ### Working In This Directory
231
+ - Always run `npm install` after modifying package.json
232
+ - Use TypeScript strict mode
233
+ - Follow ESLint rules
234
+
235
+ ### Testing Requirements
236
+ - Run `npm test` before committing
237
+ - Ensure >80% coverage
238
+
239
+ ### Common Patterns
240
+ - Use barrel exports (index.ts)
241
+ - Prefer functional components
242
+
243
+ ## Dependencies
244
+
245
+ ### External
246
+ - React 18.x - UI framework
247
+ - TypeScript 5.x - Type safety
248
+ - Vite - Build tool
249
+
250
+ <!-- MANUAL: Custom project notes can be added below -->
251
+ ```
252
+
253
+ ### Nested AGENTS.md
254
+ ```markdown
255
+ <!-- Parent: ../AGENTS.md -->
256
+ <!-- Generated: 2024-01-15 | Updated: 2024-01-15 -->
257
+
258
+ # components
259
+
260
+ ## Purpose
261
+ Reusable React components organized by feature and complexity.
262
+
263
+ ## Key Files
264
+ | File | Description |
265
+ |------|-------------|
266
+ | `index.ts` | Barrel export for all components |
267
+ | `Button.tsx` | Primary button component |
268
+ | `Modal.tsx` | Modal dialog component |
269
+
270
+ ## Subdirectories
271
+ | Directory | Purpose |
272
+ |-----------|---------|
273
+ | `forms/` | Form-related components (see `forms/AGENTS.md`) |
274
+ | `layout/` | Layout components (see `layout/AGENTS.md`) |
275
+
276
+ ## For AI Agents
277
+
278
+ ### Working In This Directory
279
+ - Each component has its own file
280
+ - Use CSS modules for styling
281
+ - Export via index.ts
282
+
283
+ ### Testing Requirements
284
+ - Unit tests in `__tests__/` subdirectory
285
+ - Use React Testing Library
286
+
287
+ ### Common Patterns
288
+ - Props interfaces defined above component
289
+ - Use forwardRef for DOM-exposing components
290
+
291
+ ## Dependencies
292
+
293
+ ### Internal
294
+ - `src/hooks/` - Custom hooks used by components
295
+ - `src/utils/` - Utility functions
296
+
297
+ ### External
298
+ - `clsx` - Conditional class names
299
+ - `lucide-react` - Icons
300
+
301
+ <!-- MANUAL: -->
302
+ ```
303
+
304
+ ## Triggering Update Mode
305
+
306
+ When running on an existing codebase with AGENTS.md files:
307
+
308
+ 1. Detect existing files first
309
+ 2. Read and parse existing content
310
+ 3. Analyze current directory state
311
+ 4. Generate diff between existing and current
312
+ 5. Apply updates while preserving manual sections
313
+
314
+ ## Performance Considerations
315
+
316
+ - **Cache directory listings** - Don't re-scan same directories
317
+ - **Batch small directories** - Process multiple at once
318
+ - **Skip unchanged** - If directory hasn't changed, skip regeneration
319
+ - **Parallel writes** - Multiple agents writing different files simultaneously
@@ -1,3 +1,37 @@
1
1
  ---
2
2
  description: Thorough codebase search
3
3
  ---
4
+
5
+ # Deep Search Mode
6
+
7
+ [DEEPSEARCH MODE ACTIVATED]
8
+
9
+ ## Objective
10
+
11
+ Perform thorough search of the codebase for the specified query, pattern, or concept.
12
+
13
+ ## Search Strategy
14
+
15
+ 1. **Broad Search**
16
+ - Search for exact matches
17
+ - Search for related terms and variations
18
+ - Check common locations (components, utils, services, hooks)
19
+
20
+ 2. **Deep Dive**
21
+ - Read files with matches
22
+ - Check imports/exports to find connections
23
+ - Follow the trail (what imports this? what does this import?)
24
+
25
+ 3. **Synthesize**
26
+ - Map out where the concept is used
27
+ - Identify the main implementation
28
+ - Note related functionality
29
+
30
+ ## Output Format
31
+
32
+ - **Primary Locations** (main implementations)
33
+ - **Related Files** (dependencies, consumers)
34
+ - **Usage Patterns** (how it's used across the codebase)
35
+ - **Key Insights** (patterns, conventions, gotchas)
36
+
37
+ Focus on being comprehensive but concise. Cite file paths and line numbers.