oh-my-claudecode-opencode 0.2.1 → 0.4.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.
- package/assets/AGENTS.md +20 -20
- package/assets/agents/analyst.md +85 -0
- package/assets/agents/architect-low.md +88 -0
- package/assets/agents/architect-medium.md +147 -0
- package/assets/agents/architect.md +147 -0
- package/assets/agents/build-fixer-low.md +83 -0
- package/assets/agents/build-fixer.md +160 -0
- package/assets/agents/code-reviewer-low.md +82 -0
- package/assets/agents/code-reviewer.md +155 -0
- package/assets/agents/critic.md +131 -0
- package/assets/agents/designer-high.md +113 -0
- package/assets/agents/designer-low.md +89 -0
- package/assets/agents/designer.md +80 -0
- package/assets/agents/executor-high.md +139 -0
- package/assets/agents/executor-low.md +94 -0
- package/assets/agents/executor.md +78 -0
- package/assets/agents/explore-medium.md +113 -0
- package/assets/agents/explore.md +86 -0
- package/assets/agents/planner.md +299 -0
- package/assets/agents/qa-tester.md +109 -0
- package/assets/agents/researcher-low.md +84 -0
- package/assets/agents/researcher.md +70 -0
- package/assets/agents/scientist-high.md +1023 -0
- package/assets/agents/scientist-low.md +258 -0
- package/assets/agents/scientist.md +1302 -0
- package/assets/agents/security-reviewer-low.md +83 -0
- package/assets/agents/security-reviewer.md +186 -0
- package/assets/agents/tdd-guide-low.md +81 -0
- package/assets/agents/tdd-guide.md +191 -0
- package/assets/agents/vision.md +39 -0
- package/assets/agents/writer.md +152 -0
- package/assets/omco.schema.json +3 -3
- package/assets/skills/analyze.md +64 -0
- package/assets/skills/autopilot.md +168 -0
- package/assets/skills/cancel-autopilot.md +53 -0
- package/assets/skills/cancel-ralph.md +43 -0
- package/assets/skills/cancel-ultraqa.md +29 -0
- package/assets/skills/cancel-ultrawork.md +42 -0
- package/assets/skills/deepinit.md +321 -0
- package/assets/skills/deepsearch.md +39 -0
- package/assets/skills/doctor.md +192 -0
- package/assets/skills/frontend-ui-ux.md +53 -0
- package/assets/skills/git-master.md +58 -0
- package/assets/skills/help.md +66 -0
- package/assets/skills/hud.md +239 -0
- package/assets/skills/learner.md +136 -0
- package/assets/skills/mcp-setup.md +196 -0
- package/assets/skills/note.md +63 -0
- package/assets/skills/omc-default-global.md +75 -0
- package/assets/skills/omc-default.md +78 -0
- package/assets/skills/omc-setup.md +245 -0
- package/assets/skills/orchestrate.md +409 -0
- package/assets/skills/plan.md +38 -0
- package/assets/skills/planner.md +106 -0
- package/assets/skills/ralph-init.md +61 -0
- package/assets/skills/ralph.md +136 -0
- package/assets/skills/ralplan.md +272 -0
- package/assets/skills/release.md +84 -0
- package/assets/skills/research.md +511 -0
- package/assets/skills/review.md +37 -0
- package/assets/skills/tdd.md +80 -0
- package/assets/skills/ultraqa.md +123 -0
- package/assets/skills/ultrawork.md +93 -0
- package/dist/agents/index.d.ts +14 -1
- package/dist/agents/loader.d.ts +13 -0
- package/dist/agents/types.d.ts +14 -0
- package/dist/config/index.d.ts +1 -1
- package/dist/index.js +7307 -166
- package/dist/skills/index.d.ts +14 -0
- package/dist/skills/loader.d.ts +9 -0
- package/dist/skills/types.d.ts +9 -0
- package/package.json +6 -3
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deepinit
|
|
3
|
+
description: Deep codebase initialization with hierarchical AGENTS.md documentation
|
|
4
|
+
user-invocable: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Deep Init Skill
|
|
8
|
+
|
|
9
|
+
Creates comprehensive, hierarchical AGENTS.md documentation across the entire codebase.
|
|
10
|
+
|
|
11
|
+
## Core Concept
|
|
12
|
+
|
|
13
|
+
AGENTS.md files serve as **AI-readable documentation** that helps agents understand:
|
|
14
|
+
- What each directory contains
|
|
15
|
+
- How components relate to each other
|
|
16
|
+
- Special instructions for working in that area
|
|
17
|
+
- Dependencies and relationships
|
|
18
|
+
|
|
19
|
+
## Hierarchical Tagging System
|
|
20
|
+
|
|
21
|
+
Every AGENTS.md (except root) includes a parent reference tag:
|
|
22
|
+
|
|
23
|
+
```markdown
|
|
24
|
+
<!-- Parent: ../AGENTS.md -->
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This creates a navigable hierarchy:
|
|
28
|
+
```
|
|
29
|
+
/AGENTS.md ← Root (no parent tag)
|
|
30
|
+
├── src/AGENTS.md ← <!-- Parent: ../AGENTS.md -->
|
|
31
|
+
│ ├── src/components/AGENTS.md ← <!-- Parent: ../AGENTS.md -->
|
|
32
|
+
│ └── src/utils/AGENTS.md ← <!-- Parent: ../AGENTS.md -->
|
|
33
|
+
└── docs/AGENTS.md ← <!-- Parent: ../AGENTS.md -->
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## AGENTS.md Template
|
|
37
|
+
|
|
38
|
+
```markdown
|
|
39
|
+
<!-- Parent: {relative_path_to_parent}/AGENTS.md -->
|
|
40
|
+
<!-- Generated: {timestamp} | Updated: {timestamp} -->
|
|
41
|
+
|
|
42
|
+
# {Directory Name}
|
|
43
|
+
|
|
44
|
+
## Purpose
|
|
45
|
+
{One-paragraph description of what this directory contains and its role}
|
|
46
|
+
|
|
47
|
+
## Key Files
|
|
48
|
+
{List each significant file with a one-line description}
|
|
49
|
+
|
|
50
|
+
| File | Description |
|
|
51
|
+
|------|-------------|
|
|
52
|
+
| `file.ts` | Brief description of purpose |
|
|
53
|
+
|
|
54
|
+
## Subdirectories
|
|
55
|
+
{List each subdirectory with brief purpose}
|
|
56
|
+
|
|
57
|
+
| Directory | Purpose |
|
|
58
|
+
|-----------|---------|
|
|
59
|
+
| `subdir/` | What it contains (see `subdir/AGENTS.md`) |
|
|
60
|
+
|
|
61
|
+
## For AI Agents
|
|
62
|
+
|
|
63
|
+
### Working In This Directory
|
|
64
|
+
{Special instructions for AI agents modifying files here}
|
|
65
|
+
|
|
66
|
+
### Testing Requirements
|
|
67
|
+
{How to test changes in this directory}
|
|
68
|
+
|
|
69
|
+
### Common Patterns
|
|
70
|
+
{Code patterns or conventions used here}
|
|
71
|
+
|
|
72
|
+
## Dependencies
|
|
73
|
+
|
|
74
|
+
### Internal
|
|
75
|
+
{References to other parts of the codebase this depends on}
|
|
76
|
+
|
|
77
|
+
### External
|
|
78
|
+
{Key external packages/libraries used}
|
|
79
|
+
|
|
80
|
+
<!-- MANUAL: Any manually added notes below this line are preserved on regeneration -->
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Execution Workflow
|
|
84
|
+
|
|
85
|
+
### Step 1: Map Directory Structure
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
Task(subagent_type="explore", model="haiku",
|
|
89
|
+
prompt="List all directories recursively. Exclude: node_modules, .git, dist, build, __pycache__, .venv, coverage, .next, .nuxt")
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Step 2: Create Work Plan
|
|
93
|
+
|
|
94
|
+
Generate todo items for each directory, organized by depth level:
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
Level 0: / (root)
|
|
98
|
+
Level 1: /src, /docs, /tests
|
|
99
|
+
Level 2: /src/components, /src/utils, /docs/api
|
|
100
|
+
...
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Step 3: Generate Level by Level
|
|
104
|
+
|
|
105
|
+
**IMPORTANT**: Generate parent levels before child levels to ensure parent references are valid.
|
|
106
|
+
|
|
107
|
+
For each directory:
|
|
108
|
+
1. Read all files in the directory
|
|
109
|
+
2. Analyze purpose and relationships
|
|
110
|
+
3. Generate AGENTS.md content
|
|
111
|
+
4. Write file with proper parent reference
|
|
112
|
+
|
|
113
|
+
### Step 4: Compare and Update (if exists)
|
|
114
|
+
|
|
115
|
+
When AGENTS.md already exists:
|
|
116
|
+
|
|
117
|
+
1. **Read existing content**
|
|
118
|
+
2. **Identify sections**:
|
|
119
|
+
- Auto-generated sections (can be updated)
|
|
120
|
+
- Manual sections (`<!-- MANUAL -->` preserved)
|
|
121
|
+
3. **Compare**:
|
|
122
|
+
- New files added?
|
|
123
|
+
- Files removed?
|
|
124
|
+
- Structure changed?
|
|
125
|
+
4. **Merge**:
|
|
126
|
+
- Update auto-generated content
|
|
127
|
+
- Preserve manual annotations
|
|
128
|
+
- Update timestamp
|
|
129
|
+
|
|
130
|
+
### Step 5: Validate Hierarchy
|
|
131
|
+
|
|
132
|
+
After generation, run validation checks:
|
|
133
|
+
|
|
134
|
+
| Check | How to Verify | Corrective Action |
|
|
135
|
+
|-------|--------------|-------------------|
|
|
136
|
+
| Parent references resolve | Read each AGENTS.md, check `<!-- Parent: -->` path exists | Fix path or remove orphan |
|
|
137
|
+
| No orphaned AGENTS.md | Compare AGENTS.md locations to directory structure | Delete orphaned files |
|
|
138
|
+
| Completeness | List all directories, check for AGENTS.md | Generate missing files |
|
|
139
|
+
| Timestamps current | Check `<!-- Generated: -->` dates | Regenerate outdated files |
|
|
140
|
+
|
|
141
|
+
Validation script pattern:
|
|
142
|
+
```bash
|
|
143
|
+
# Find all AGENTS.md files
|
|
144
|
+
find . -name "AGENTS.md" -type f
|
|
145
|
+
|
|
146
|
+
# Check parent references
|
|
147
|
+
grep -r "<!-- Parent:" --include="AGENTS.md" .
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Smart Delegation
|
|
151
|
+
|
|
152
|
+
| Task | Agent |
|
|
153
|
+
|------|-------|
|
|
154
|
+
| Directory mapping | `explore` |
|
|
155
|
+
| File analysis | `architect-low` |
|
|
156
|
+
| Content generation | `writer` |
|
|
157
|
+
| AGENTS.md writes | `writer` |
|
|
158
|
+
|
|
159
|
+
## Empty Directory Handling
|
|
160
|
+
|
|
161
|
+
When encountering empty or near-empty directories:
|
|
162
|
+
|
|
163
|
+
| Condition | Action |
|
|
164
|
+
|-----------|--------|
|
|
165
|
+
| No files, no subdirectories | **Skip** - do not create AGENTS.md |
|
|
166
|
+
| No files, has subdirectories | Create minimal AGENTS.md with subdirectory listing only |
|
|
167
|
+
| Has only generated files (*.min.js, *.map) | Skip or minimal AGENTS.md |
|
|
168
|
+
| Has only config files | Create AGENTS.md describing configuration purpose |
|
|
169
|
+
|
|
170
|
+
Example minimal AGENTS.md for directory-only containers:
|
|
171
|
+
```markdown
|
|
172
|
+
<!-- Parent: ../AGENTS.md -->
|
|
173
|
+
# {Directory Name}
|
|
174
|
+
|
|
175
|
+
## Purpose
|
|
176
|
+
Container directory for organizing related modules.
|
|
177
|
+
|
|
178
|
+
## Subdirectories
|
|
179
|
+
| Directory | Purpose |
|
|
180
|
+
|-----------|---------|
|
|
181
|
+
| `subdir/` | Description (see `subdir/AGENTS.md`) |
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
## Parallelization Rules
|
|
185
|
+
|
|
186
|
+
1. **Same-level directories**: Process in parallel
|
|
187
|
+
2. **Different levels**: Sequential (parent first)
|
|
188
|
+
3. **Large directories**: Spawn dedicated agent per directory
|
|
189
|
+
4. **Small directories**: Batch multiple into one agent
|
|
190
|
+
|
|
191
|
+
## Quality Standards
|
|
192
|
+
|
|
193
|
+
### Must Include
|
|
194
|
+
- [ ] Accurate file descriptions
|
|
195
|
+
- [ ] Correct parent references
|
|
196
|
+
- [ ] Subdirectory links
|
|
197
|
+
- [ ] AI agent instructions
|
|
198
|
+
|
|
199
|
+
### Must Avoid
|
|
200
|
+
- [ ] Generic boilerplate
|
|
201
|
+
- [ ] Incorrect file names
|
|
202
|
+
- [ ] Broken parent references
|
|
203
|
+
- [ ] Missing important files
|
|
204
|
+
|
|
205
|
+
## Example Output
|
|
206
|
+
|
|
207
|
+
### Root AGENTS.md
|
|
208
|
+
```markdown
|
|
209
|
+
<!-- Generated: 2024-01-15 | Updated: 2024-01-15 -->
|
|
210
|
+
|
|
211
|
+
# my-project
|
|
212
|
+
|
|
213
|
+
## Purpose
|
|
214
|
+
A web application for managing user tasks with real-time collaboration features.
|
|
215
|
+
|
|
216
|
+
## Key Files
|
|
217
|
+
| File | Description |
|
|
218
|
+
|------|-------------|
|
|
219
|
+
| `package.json` | Project dependencies and scripts |
|
|
220
|
+
| `tsconfig.json` | TypeScript configuration |
|
|
221
|
+
| `.env.example` | Environment variable template |
|
|
222
|
+
|
|
223
|
+
## Subdirectories
|
|
224
|
+
| Directory | Purpose |
|
|
225
|
+
|-----------|---------|
|
|
226
|
+
| `src/` | Application source code (see `src/AGENTS.md`) |
|
|
227
|
+
| `docs/` | Documentation (see `docs/AGENTS.md`) |
|
|
228
|
+
| `tests/` | Test suites (see `tests/AGENTS.md`) |
|
|
229
|
+
|
|
230
|
+
## For AI Agents
|
|
231
|
+
|
|
232
|
+
### Working In This Directory
|
|
233
|
+
- Always run `npm install` after modifying package.json
|
|
234
|
+
- Use TypeScript strict mode
|
|
235
|
+
- Follow ESLint rules
|
|
236
|
+
|
|
237
|
+
### Testing Requirements
|
|
238
|
+
- Run `npm test` before committing
|
|
239
|
+
- Ensure >80% coverage
|
|
240
|
+
|
|
241
|
+
### Common Patterns
|
|
242
|
+
- Use barrel exports (index.ts)
|
|
243
|
+
- Prefer functional components
|
|
244
|
+
|
|
245
|
+
## Dependencies
|
|
246
|
+
|
|
247
|
+
### External
|
|
248
|
+
- React 18.x - UI framework
|
|
249
|
+
- TypeScript 5.x - Type safety
|
|
250
|
+
- Vite - Build tool
|
|
251
|
+
|
|
252
|
+
<!-- MANUAL: Custom project notes can be added below -->
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Nested AGENTS.md
|
|
256
|
+
```markdown
|
|
257
|
+
<!-- Parent: ../AGENTS.md -->
|
|
258
|
+
<!-- Generated: 2024-01-15 | Updated: 2024-01-15 -->
|
|
259
|
+
|
|
260
|
+
# components
|
|
261
|
+
|
|
262
|
+
## Purpose
|
|
263
|
+
Reusable React components organized by feature and complexity.
|
|
264
|
+
|
|
265
|
+
## Key Files
|
|
266
|
+
| File | Description |
|
|
267
|
+
|------|-------------|
|
|
268
|
+
| `index.ts` | Barrel export for all components |
|
|
269
|
+
| `Button.tsx` | Primary button component |
|
|
270
|
+
| `Modal.tsx` | Modal dialog component |
|
|
271
|
+
|
|
272
|
+
## Subdirectories
|
|
273
|
+
| Directory | Purpose |
|
|
274
|
+
|-----------|---------|
|
|
275
|
+
| `forms/` | Form-related components (see `forms/AGENTS.md`) |
|
|
276
|
+
| `layout/` | Layout components (see `layout/AGENTS.md`) |
|
|
277
|
+
|
|
278
|
+
## For AI Agents
|
|
279
|
+
|
|
280
|
+
### Working In This Directory
|
|
281
|
+
- Each component has its own file
|
|
282
|
+
- Use CSS modules for styling
|
|
283
|
+
- Export via index.ts
|
|
284
|
+
|
|
285
|
+
### Testing Requirements
|
|
286
|
+
- Unit tests in `__tests__/` subdirectory
|
|
287
|
+
- Use React Testing Library
|
|
288
|
+
|
|
289
|
+
### Common Patterns
|
|
290
|
+
- Props interfaces defined above component
|
|
291
|
+
- Use forwardRef for DOM-exposing components
|
|
292
|
+
|
|
293
|
+
## Dependencies
|
|
294
|
+
|
|
295
|
+
### Internal
|
|
296
|
+
- `src/hooks/` - Custom hooks used by components
|
|
297
|
+
- `src/utils/` - Utility functions
|
|
298
|
+
|
|
299
|
+
### External
|
|
300
|
+
- `clsx` - Conditional class names
|
|
301
|
+
- `lucide-react` - Icons
|
|
302
|
+
|
|
303
|
+
<!-- MANUAL: -->
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
## Triggering Update Mode
|
|
307
|
+
|
|
308
|
+
When running on an existing codebase with AGENTS.md files:
|
|
309
|
+
|
|
310
|
+
1. Detect existing files first
|
|
311
|
+
2. Read and parse existing content
|
|
312
|
+
3. Analyze current directory state
|
|
313
|
+
4. Generate diff between existing and current
|
|
314
|
+
5. Apply updates while preserving manual sections
|
|
315
|
+
|
|
316
|
+
## Performance Considerations
|
|
317
|
+
|
|
318
|
+
- **Cache directory listings** - Don't re-scan same directories
|
|
319
|
+
- **Batch small directories** - Process multiple at once
|
|
320
|
+
- **Skip unchanged** - If directory hasn't changed, skip regeneration
|
|
321
|
+
- **Parallel writes** - Multiple agents writing different files simultaneously
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deepsearch
|
|
3
|
+
description: Thorough codebase search
|
|
4
|
+
user-invocable: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Deep Search Mode
|
|
8
|
+
|
|
9
|
+
[DEEPSEARCH MODE ACTIVATED]
|
|
10
|
+
|
|
11
|
+
## Objective
|
|
12
|
+
|
|
13
|
+
Perform thorough search of the codebase for the specified query, pattern, or concept.
|
|
14
|
+
|
|
15
|
+
## Search Strategy
|
|
16
|
+
|
|
17
|
+
1. **Broad Search**
|
|
18
|
+
- Search for exact matches
|
|
19
|
+
- Search for related terms and variations
|
|
20
|
+
- Check common locations (components, utils, services, hooks)
|
|
21
|
+
|
|
22
|
+
2. **Deep Dive**
|
|
23
|
+
- Read files with matches
|
|
24
|
+
- Check imports/exports to find connections
|
|
25
|
+
- Follow the trail (what imports this? what does this import?)
|
|
26
|
+
|
|
27
|
+
3. **Synthesize**
|
|
28
|
+
- Map out where the concept is used
|
|
29
|
+
- Identify the main implementation
|
|
30
|
+
- Note related functionality
|
|
31
|
+
|
|
32
|
+
## Output Format
|
|
33
|
+
|
|
34
|
+
- **Primary Locations** (main implementations)
|
|
35
|
+
- **Related Files** (dependencies, consumers)
|
|
36
|
+
- **Usage Patterns** (how it's used across the codebase)
|
|
37
|
+
- **Key Insights** (patterns, conventions, gotchas)
|
|
38
|
+
|
|
39
|
+
Focus on being comprehensive but concise. Cite file paths and line numbers.
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: doctor
|
|
3
|
+
description: Diagnose and fix oh-my-claudecode installation issues
|
|
4
|
+
user-invocable: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Doctor Skill
|
|
8
|
+
|
|
9
|
+
## Task: Run Installation Diagnostics
|
|
10
|
+
|
|
11
|
+
You are the OMC Doctor - diagnose and fix installation issues.
|
|
12
|
+
|
|
13
|
+
### Step 1: Check Plugin Version
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Get installed version
|
|
17
|
+
INSTALLED=$(ls ~/.claude/plugins/cache/omc/oh-my-claudecode/ 2>/dev/null | sort -V | tail -1)
|
|
18
|
+
echo "Installed: $INSTALLED"
|
|
19
|
+
|
|
20
|
+
# Get latest from npm
|
|
21
|
+
LATEST=$(npm view oh-my-claudecode version 2>/dev/null)
|
|
22
|
+
echo "Latest: $LATEST"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Diagnosis**:
|
|
26
|
+
- If no version installed: CRITICAL - plugin not installed
|
|
27
|
+
- If INSTALLED != LATEST: WARN - outdated plugin
|
|
28
|
+
- If multiple versions exist: WARN - stale cache
|
|
29
|
+
|
|
30
|
+
### Step 2: Check for Legacy Hooks in settings.json
|
|
31
|
+
|
|
32
|
+
Read `~/.claude/settings.json` and check if there's a `"hooks"` key with entries like:
|
|
33
|
+
- `bash $HOME/.claude/hooks/keyword-detector.sh`
|
|
34
|
+
- `bash $HOME/.claude/hooks/persistent-mode.sh`
|
|
35
|
+
- `bash $HOME/.claude/hooks/session-start.sh`
|
|
36
|
+
|
|
37
|
+
**Diagnosis**:
|
|
38
|
+
- If found: CRITICAL - legacy hooks causing duplicates
|
|
39
|
+
|
|
40
|
+
### Step 3: Check for Legacy Bash Hook Scripts
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
ls -la ~/.claude/hooks/*.sh 2>/dev/null
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Diagnosis**:
|
|
47
|
+
- If `keyword-detector.sh`, `persistent-mode.sh`, `session-start.sh`, or `stop-continuation.sh` exist: WARN - legacy scripts (can cause confusion)
|
|
48
|
+
|
|
49
|
+
### Step 4: Check CLAUDE.md
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# Check if CLAUDE.md exists
|
|
53
|
+
ls -la ~/.claude/CLAUDE.md 2>/dev/null
|
|
54
|
+
|
|
55
|
+
# Check for OMC marker
|
|
56
|
+
grep -q "oh-my-claudecode Multi-Agent System" ~/.claude/CLAUDE.md 2>/dev/null && echo "Has OMC config" || echo "Missing OMC config"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Diagnosis**:
|
|
60
|
+
- If missing: CRITICAL - CLAUDE.md not configured
|
|
61
|
+
- If missing OMC marker: WARN - outdated CLAUDE.md
|
|
62
|
+
|
|
63
|
+
### Step 5: Check for Stale Plugin Cache
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Count versions in cache
|
|
67
|
+
ls ~/.claude/plugins/cache/omc/oh-my-claudecode/ 2>/dev/null | wc -l
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**Diagnosis**:
|
|
71
|
+
- If > 1 version: WARN - multiple cached versions (cleanup recommended)
|
|
72
|
+
|
|
73
|
+
### Step 6: Check for Legacy Curl-Installed Content
|
|
74
|
+
|
|
75
|
+
Check for legacy agents, commands, and skills installed via curl (before plugin system):
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# Check for legacy agents directory
|
|
79
|
+
ls -la ~/.claude/agents/ 2>/dev/null
|
|
80
|
+
|
|
81
|
+
# Check for legacy commands directory
|
|
82
|
+
ls -la ~/.claude/commands/ 2>/dev/null
|
|
83
|
+
|
|
84
|
+
# Check for legacy skills directory
|
|
85
|
+
ls -la ~/.claude/skills/ 2>/dev/null
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Diagnosis**:
|
|
89
|
+
- If `~/.claude/agents/` exists with oh-my-claudecode-related files: WARN - legacy agents (now provided by plugin)
|
|
90
|
+
- If `~/.claude/commands/` exists with oh-my-claudecode-related files: WARN - legacy commands (now provided by plugin)
|
|
91
|
+
- If `~/.claude/skills/` exists with oh-my-claudecode-related files: WARN - legacy skills (now provided by plugin)
|
|
92
|
+
|
|
93
|
+
Look for files like:
|
|
94
|
+
- `architect.md`, `researcher.md`, `explore.md`, `executor.md`, etc. in agents/
|
|
95
|
+
- `ultrawork.md`, `omc-default.md`, `omc-default-global.md`, `deepsearch.md`, etc. in commands/
|
|
96
|
+
- Any oh-my-claudecode-related `.md` files in skills/
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Report Format
|
|
101
|
+
|
|
102
|
+
After running all checks, output a report:
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
## OMC Doctor Report
|
|
106
|
+
|
|
107
|
+
### Summary
|
|
108
|
+
[HEALTHY / ISSUES FOUND]
|
|
109
|
+
|
|
110
|
+
### Checks
|
|
111
|
+
|
|
112
|
+
| Check | Status | Details |
|
|
113
|
+
|-------|--------|---------|
|
|
114
|
+
| Plugin Version | OK/WARN/CRITICAL | ... |
|
|
115
|
+
| Legacy Hooks (settings.json) | OK/CRITICAL | ... |
|
|
116
|
+
| Legacy Scripts (~/.claude/hooks/) | OK/WARN | ... |
|
|
117
|
+
| CLAUDE.md | OK/WARN/CRITICAL | ... |
|
|
118
|
+
| Plugin Cache | OK/WARN | ... |
|
|
119
|
+
| Legacy Agents (~/.claude/agents/) | OK/WARN | ... |
|
|
120
|
+
| Legacy Commands (~/.claude/commands/) | OK/WARN | ... |
|
|
121
|
+
| Legacy Skills (~/.claude/skills/) | OK/WARN | ... |
|
|
122
|
+
|
|
123
|
+
### Issues Found
|
|
124
|
+
1. [Issue description]
|
|
125
|
+
2. [Issue description]
|
|
126
|
+
|
|
127
|
+
### Recommended Fixes
|
|
128
|
+
[List fixes based on issues]
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Auto-Fix (if user confirms)
|
|
134
|
+
|
|
135
|
+
If issues found, ask user: "Would you like me to fix these issues automatically?"
|
|
136
|
+
|
|
137
|
+
If yes, apply fixes:
|
|
138
|
+
|
|
139
|
+
### Fix: Legacy Hooks in settings.json
|
|
140
|
+
Remove the `"hooks"` section from `~/.claude/settings.json` (keep other settings intact)
|
|
141
|
+
|
|
142
|
+
### Fix: Legacy Bash Scripts
|
|
143
|
+
```bash
|
|
144
|
+
rm -f ~/.claude/hooks/keyword-detector.sh
|
|
145
|
+
rm -f ~/.claude/hooks/persistent-mode.sh
|
|
146
|
+
rm -f ~/.claude/hooks/session-start.sh
|
|
147
|
+
rm -f ~/.claude/hooks/stop-continuation.sh
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Fix: Outdated Plugin
|
|
151
|
+
```bash
|
|
152
|
+
rm -rf ~/.claude/plugins/cache/oh-my-claudecode
|
|
153
|
+
echo "Plugin cache cleared. Restart Claude Code to fetch latest version."
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Fix: Stale Cache (multiple versions)
|
|
157
|
+
```bash
|
|
158
|
+
# Keep only latest version
|
|
159
|
+
cd ~/.claude/plugins/cache/omc/oh-my-claudecode/
|
|
160
|
+
ls | sort -V | head -n -1 | xargs rm -rf
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Fix: Missing/Outdated CLAUDE.md
|
|
164
|
+
Fetch latest from GitHub and write to `~/.claude/CLAUDE.md`:
|
|
165
|
+
```
|
|
166
|
+
WebFetch(url: "https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claudecode/main/docs/CLAUDE.md", prompt: "Return the complete raw markdown content exactly as-is")
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Fix: Legacy Curl-Installed Content
|
|
170
|
+
|
|
171
|
+
Remove legacy agents, commands, and skills directories (now provided by plugin):
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
# Backup first (optional - ask user)
|
|
175
|
+
# mv ~/.claude/agents ~/.claude/agents.bak
|
|
176
|
+
# mv ~/.claude/commands ~/.claude/commands.bak
|
|
177
|
+
# mv ~/.claude/skills ~/.claude/skills.bak
|
|
178
|
+
|
|
179
|
+
# Or remove directly
|
|
180
|
+
rm -rf ~/.claude/agents
|
|
181
|
+
rm -rf ~/.claude/commands
|
|
182
|
+
rm -rf ~/.claude/skills
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**Note**: Only remove if these contain oh-my-claudecode-related files. If user has custom agents/commands/skills, warn them and ask before removing.
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Post-Fix
|
|
190
|
+
|
|
191
|
+
After applying fixes, inform user:
|
|
192
|
+
> Fixes applied. **Restart Claude Code** for changes to take effect.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: frontend-ui-ux
|
|
3
|
+
description: Designer-turned-developer who crafts stunning UI/UX even without design mockups
|
|
4
|
+
user-invocable: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Frontend UI/UX Skill
|
|
8
|
+
|
|
9
|
+
You are a designer who learned to code. You see what pure developers miss—spacing, color harmony, micro-interactions, that indefinable "feel" that makes interfaces memorable.
|
|
10
|
+
|
|
11
|
+
## Design Process
|
|
12
|
+
|
|
13
|
+
Before coding, commit to a **BOLD aesthetic direction**:
|
|
14
|
+
|
|
15
|
+
1. **Purpose**: What problem does this solve? Who uses it?
|
|
16
|
+
2. **Tone**: Pick an extreme:
|
|
17
|
+
- Brutally minimal
|
|
18
|
+
- Maximalist chaos
|
|
19
|
+
- Retro-futuristic
|
|
20
|
+
- Organic/natural
|
|
21
|
+
- Luxury/refined
|
|
22
|
+
- Playful/toy-like
|
|
23
|
+
- Editorial/magazine
|
|
24
|
+
- Brutalist/raw
|
|
25
|
+
- Art deco/geometric
|
|
26
|
+
- Soft/pastel
|
|
27
|
+
- Industrial/utilitarian
|
|
28
|
+
3. **Constraints**: Technical requirements (framework, performance, accessibility)
|
|
29
|
+
4. **Differentiation**: What's the ONE thing someone will remember?
|
|
30
|
+
|
|
31
|
+
## Aesthetic Guidelines
|
|
32
|
+
|
|
33
|
+
### Typography
|
|
34
|
+
Choose distinctive fonts. **Avoid**: Arial, Inter, Roboto, system fonts, Space Grotesk.
|
|
35
|
+
|
|
36
|
+
### Color
|
|
37
|
+
Commit to a cohesive palette. Use CSS variables. **Avoid**: purple gradients on white (AI slop).
|
|
38
|
+
|
|
39
|
+
### Motion
|
|
40
|
+
Focus on high-impact moments. One well-orchestrated page load > scattered micro-interactions. Use CSS-only where possible.
|
|
41
|
+
|
|
42
|
+
### Spatial Composition
|
|
43
|
+
Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements.
|
|
44
|
+
|
|
45
|
+
### Visual Details
|
|
46
|
+
Create atmosphere—gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows.
|
|
47
|
+
|
|
48
|
+
## Anti-Patterns (NEVER)
|
|
49
|
+
|
|
50
|
+
- Generic fonts (Inter, Roboto, Arial)
|
|
51
|
+
- Cliched color schemes (purple gradients on white)
|
|
52
|
+
- Predictable layouts
|
|
53
|
+
- Cookie-cutter design
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: git-master
|
|
3
|
+
description: Git expert for atomic commits, rebasing, and history management with style detection
|
|
4
|
+
user-invocable: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Git Master Skill
|
|
8
|
+
|
|
9
|
+
You are a Git expert combining three specializations:
|
|
10
|
+
1. **Commit Architect**: Atomic commits, dependency ordering, style detection
|
|
11
|
+
2. **Rebase Surgeon**: History rewriting, conflict resolution, branch cleanup
|
|
12
|
+
3. **History Archaeologist**: Finding when/where specific changes were introduced
|
|
13
|
+
|
|
14
|
+
## Core Principle: Multiple Commits by Default
|
|
15
|
+
|
|
16
|
+
**ONE COMMIT = AUTOMATIC FAILURE**
|
|
17
|
+
|
|
18
|
+
Hard rules:
|
|
19
|
+
- 3+ files changed -> MUST be 2+ commits
|
|
20
|
+
- 5+ files changed -> MUST be 3+ commits
|
|
21
|
+
- 10+ files changed -> MUST be 5+ commits
|
|
22
|
+
|
|
23
|
+
## Style Detection (First Step)
|
|
24
|
+
|
|
25
|
+
Before committing, analyze the last 30 commits:
|
|
26
|
+
```bash
|
|
27
|
+
git log -30 --oneline
|
|
28
|
+
git log -30 --pretty=format:"%s"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Detect:
|
|
32
|
+
- **Language**: Korean vs English (use majority)
|
|
33
|
+
- **Style**: SEMANTIC (feat:, fix:) vs PLAIN vs SHORT
|
|
34
|
+
|
|
35
|
+
## Commit Splitting Rules
|
|
36
|
+
|
|
37
|
+
| Criterion | Action |
|
|
38
|
+
|-----------|--------|
|
|
39
|
+
| Different directories/modules | SPLIT |
|
|
40
|
+
| Different component types | SPLIT |
|
|
41
|
+
| Can be reverted independently | SPLIT |
|
|
42
|
+
| Different concerns (UI/logic/config/test) | SPLIT |
|
|
43
|
+
| New file vs modification | SPLIT |
|
|
44
|
+
|
|
45
|
+
## History Search Commands
|
|
46
|
+
|
|
47
|
+
| Goal | Command |
|
|
48
|
+
|------|---------|
|
|
49
|
+
| When was "X" added? | `git log -S "X" --oneline` |
|
|
50
|
+
| What commits touched "X"? | `git log -G "X" --oneline` |
|
|
51
|
+
| Who wrote line N? | `git blame -L N,N file.py` |
|
|
52
|
+
| When did bug start? | `git bisect start && git bisect bad && git bisect good <tag>` |
|
|
53
|
+
|
|
54
|
+
## Rebase Safety
|
|
55
|
+
|
|
56
|
+
- **NEVER** rebase main/master
|
|
57
|
+
- Use `--force-with-lease` (never `--force`)
|
|
58
|
+
- Stash dirty files before rebasing
|