oh-my-customcode 0.5.0 → 0.6.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/README.md +2 -2
- package/package.json +1 -1
- package/templates/.claude/rules/MUST-orchestrator-coordination.md +13 -16
- package/templates/.claude/rules/SHOULD-agent-teams.md +137 -0
- package/templates/.claude/rules/index.yaml +60 -36
- package/templates/CLAUDE.md.en +17 -1
- package/templates/CLAUDE.md.ko +17 -1
- package/templates/manifest.json +2 -2
package/README.md
CHANGED
|
@@ -138,7 +138,7 @@ Comprehensive reference documentation covering:
|
|
|
138
138
|
- Best practices and patterns
|
|
139
139
|
- Sub-agent orchestration
|
|
140
140
|
|
|
141
|
-
### Rules (
|
|
141
|
+
### Rules (18)
|
|
142
142
|
|
|
143
143
|
| Priority | Count | Purpose |
|
|
144
144
|
|----------|-------|---------|
|
|
@@ -170,7 +170,7 @@ After `omcustom init`:
|
|
|
170
170
|
your-project/
|
|
171
171
|
├── CLAUDE.md # Entry point for Claude
|
|
172
172
|
└── .claude/
|
|
173
|
-
├── rules/ # Behavior rules (
|
|
173
|
+
├── rules/ # Behavior rules (18 total)
|
|
174
174
|
├── hooks/ # Event hooks
|
|
175
175
|
├── contexts/ # Context files
|
|
176
176
|
├── agents/ # All agents (flat structure, 34 total)
|
package/package.json
CHANGED
|
@@ -426,36 +426,33 @@ CORRECT:
|
|
|
426
426
|
╚══════════════════════════════════════════════════════════════════╝
|
|
427
427
|
```
|
|
428
428
|
|
|
429
|
-
##
|
|
429
|
+
## Agent Teams Integration
|
|
430
430
|
|
|
431
431
|
```
|
|
432
432
|
╔══════════════════════════════════════════════════════════════════╗
|
|
433
|
-
║ AGENT TEAMS (
|
|
433
|
+
║ AGENT TEAMS (ACTIVE WHEN ENABLED) ║
|
|
434
434
|
║ ║
|
|
435
|
-
║
|
|
436
|
-
║
|
|
435
|
+
║ When CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 is set: ║
|
|
436
|
+
║ → Actively use Agent Teams for qualifying tasks ║
|
|
437
|
+
║ → See R018 (SHOULD-agent-teams.md) for decision matrix ║
|
|
437
438
|
║ ║
|
|
438
439
|
║ Agent Teams enable: ║
|
|
439
440
|
║ - Peer-to-peer messaging between agents ║
|
|
440
441
|
║ - Shared task lists ║
|
|
441
442
|
║ - Complex collaborative workflows ║
|
|
442
443
|
║ ║
|
|
443
|
-
║
|
|
444
|
-
║ -
|
|
445
|
-
║ -
|
|
446
|
-
║ -
|
|
444
|
+
║ WHEN Agent Teams IS ENABLED: ║
|
|
445
|
+
║ - Use for research, review, debugging tasks (3+ agents) ║
|
|
446
|
+
║ - Use for tasks requiring inter-agent communication ║
|
|
447
|
+
║ - Use for shared state management ║
|
|
447
448
|
║ ║
|
|
448
|
-
║ WHEN
|
|
449
|
-
║ -
|
|
450
|
-
║ - Agents need to communicate with each other ║
|
|
451
|
-
║ - Shared state management required ║
|
|
452
|
-
║ ║
|
|
453
|
-
║ WHEN TO KEEP Task tool (DEFAULT): ║
|
|
449
|
+
║ WHEN Agent Teams IS NOT ENABLED (or for simple tasks): ║
|
|
450
|
+
║ - Use Task tool + routing skills (stable default) ║
|
|
454
451
|
║ - Focused, independent sub-tasks ║
|
|
455
452
|
║ - Cost-sensitive operations ║
|
|
456
|
-
║ - Predictable execution flow ║
|
|
457
453
|
║ ║
|
|
458
|
-
║
|
|
454
|
+
║ Both approaches coexist. Agent Teams adds coordination ║
|
|
455
|
+
║ richness, not replacement of Task tool. ║
|
|
459
456
|
╚══════════════════════════════════════════════════════════════════╝
|
|
460
457
|
```
|
|
461
458
|
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# [SHOULD] Agent Teams Rules
|
|
2
|
+
|
|
3
|
+
> **Priority**: SHOULD - Actively use when available
|
|
4
|
+
> **ID**: R018
|
|
5
|
+
> **Condition**: Agent Teams feature is enabled locally
|
|
6
|
+
|
|
7
|
+
## Purpose
|
|
8
|
+
|
|
9
|
+
When Claude Code's Agent Teams feature is enabled on the local machine, actively leverage it for tasks that benefit from multi-agent collaboration, shared state, and peer-to-peer communication.
|
|
10
|
+
|
|
11
|
+
## Detection
|
|
12
|
+
|
|
13
|
+
Agent Teams availability is determined by:
|
|
14
|
+
- Environment variable: `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`
|
|
15
|
+
- The presence of TeamCreate, SendMessage, TaskCreate/TaskList (team variants) tools
|
|
16
|
+
|
|
17
|
+
When detected, Agent Teams becomes the **preferred coordination method** for qualifying tasks.
|
|
18
|
+
|
|
19
|
+
## Decision Matrix
|
|
20
|
+
|
|
21
|
+
| Scenario | Task Tool | Agent Teams | Preferred |
|
|
22
|
+
|----------|-----------|-------------|-----------|
|
|
23
|
+
| Simple independent subtasks | Low cost | Overkill | **Task Tool** |
|
|
24
|
+
| Multi-step with shared state | Limited | Native support | **Agent Teams** |
|
|
25
|
+
| Research requiring discussion | No peer comm | Peer messaging | **Agent Teams** |
|
|
26
|
+
| Cost-sensitive batch ops | Lower tokens | Higher tokens | **Task Tool** |
|
|
27
|
+
| Complex debugging across modules | Isolated context | Shared context | **Agent Teams** |
|
|
28
|
+
| Code review + fix cycle | Sequential | Collaborative | **Agent Teams** |
|
|
29
|
+
| Single file operations | Fast | Overhead | **Task Tool** |
|
|
30
|
+
|
|
31
|
+
## When to Use Agent Teams
|
|
32
|
+
|
|
33
|
+
### SHOULD Use Agent Teams For
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
Tasks requiring 3+ agents that need to coordinate
|
|
37
|
+
Research tasks where agents need to share findings
|
|
38
|
+
Debugging sessions spanning multiple modules
|
|
39
|
+
Review + implementation cycles
|
|
40
|
+
Any task where inter-agent communication adds value
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### SHOULD Keep Task Tool For
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
Independent parallel subtasks (no shared state)
|
|
47
|
+
Single-agent delegations
|
|
48
|
+
Cost-sensitive batch operations
|
|
49
|
+
Simple file operations
|
|
50
|
+
When Agent Teams is not available
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Team Composition Guidelines
|
|
54
|
+
|
|
55
|
+
### Standard Team Patterns
|
|
56
|
+
|
|
57
|
+
#### Research Team
|
|
58
|
+
```
|
|
59
|
+
TeamCreate("research-team")
|
|
60
|
+
+-- researcher-1: Explore codebase area A
|
|
61
|
+
+-- researcher-2: Explore codebase area B
|
|
62
|
+
+-- synthesizer: Aggregate findings
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
#### Development Team
|
|
66
|
+
```
|
|
67
|
+
TeamCreate("dev-team")
|
|
68
|
+
+-- implementer: Write code
|
|
69
|
+
+-- reviewer: Review changes
|
|
70
|
+
+-- tester: Validate changes
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
#### Debug Team
|
|
74
|
+
```
|
|
75
|
+
TeamCreate("debug-team")
|
|
76
|
+
+-- investigator-1: Trace issue in module A
|
|
77
|
+
+-- investigator-2: Trace issue in module B
|
|
78
|
+
+-- fixer: Apply fixes based on findings
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Team Lifecycle
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
1. TeamCreate -> Create team with purpose
|
|
85
|
+
2. TaskCreate -> Define tasks for team members
|
|
86
|
+
3. Task(team_name) -> Spawn team members
|
|
87
|
+
4. SendMessage -> Coordinate between members
|
|
88
|
+
5. TaskUpdate -> Track progress
|
|
89
|
+
6. SendMessage(shutdown_request) -> Graceful shutdown
|
|
90
|
+
7. TeamDelete -> Cleanup
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Fallback Behavior
|
|
94
|
+
|
|
95
|
+
When Agent Teams is NOT available:
|
|
96
|
+
- All team-qualifying tasks fall back to Task tool
|
|
97
|
+
- R009 (Parallel Execution) governs parallel spawning
|
|
98
|
+
- R010 (Orchestrator Coordination) governs delegation
|
|
99
|
+
- No degradation in capability, only in coordination richness
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
+------------------------------------------------------------------+
|
|
103
|
+
| GRACEFUL DEGRADATION |
|
|
104
|
+
| |
|
|
105
|
+
| Agent Teams Available: |
|
|
106
|
+
| Complex task -> TeamCreate -> coordinated agents |
|
|
107
|
+
| |
|
|
108
|
+
| Agent Teams NOT Available: |
|
|
109
|
+
| Complex task -> Task tool -> parallel independent agents |
|
|
110
|
+
| |
|
|
111
|
+
| Both approaches produce results. |
|
|
112
|
+
| Agent Teams adds coordination, not capability. |
|
|
113
|
+
+------------------------------------------------------------------+
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Integration with Existing Rules
|
|
117
|
+
|
|
118
|
+
| Rule | Integration |
|
|
119
|
+
|------|-------------|
|
|
120
|
+
| R009 (Parallel) | Task tool parallel = fallback when no Agent Teams |
|
|
121
|
+
| R010 (Orchestrator) | Agent Teams = alternative coordination model |
|
|
122
|
+
| R012 (HUD) | Team status displayed in HUD |
|
|
123
|
+
| R013 (Ecomode) | Team communications respect ecomode |
|
|
124
|
+
|
|
125
|
+
## Cost Awareness
|
|
126
|
+
|
|
127
|
+
Agent Teams consume more tokens due to:
|
|
128
|
+
- Full context per team member
|
|
129
|
+
- Inter-agent message passing
|
|
130
|
+
- Shared task list overhead
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
Rule of thumb:
|
|
134
|
+
If task takes < 3 minutes with Task tool -> Use Task tool
|
|
135
|
+
If task needs inter-agent communication -> Use Agent Teams
|
|
136
|
+
If unsure -> Start with Task tool, escalate to Agent Teams if needed
|
|
137
|
+
```
|
|
@@ -24,49 +24,26 @@ rules:
|
|
|
24
24
|
priority: MUST
|
|
25
25
|
scope: all
|
|
26
26
|
|
|
27
|
-
# SHOULD - Strongly recommended
|
|
28
|
-
- id: R003
|
|
29
|
-
name: interaction
|
|
30
|
-
title: Interaction Rules
|
|
31
|
-
path: ./SHOULD-interaction.md
|
|
32
|
-
priority: SHOULD
|
|
33
|
-
scope: all
|
|
34
|
-
|
|
35
|
-
- id: R004
|
|
36
|
-
name: error-handling
|
|
37
|
-
title: Error Handling Rules
|
|
38
|
-
path: ./SHOULD-error-handling.md
|
|
39
|
-
priority: SHOULD
|
|
40
|
-
scope: all
|
|
41
|
-
|
|
42
27
|
- id: R007
|
|
43
28
|
name: agent-identification
|
|
44
29
|
title: Agent Identification Rules
|
|
45
|
-
path: ./
|
|
46
|
-
priority:
|
|
30
|
+
path: ./MUST-agent-identification.md
|
|
31
|
+
priority: MUST
|
|
47
32
|
scope: all
|
|
48
33
|
|
|
49
34
|
- id: R008
|
|
50
35
|
name: tool-identification
|
|
51
36
|
title: Tool Usage Identification Rules
|
|
52
|
-
path: ./
|
|
53
|
-
priority:
|
|
54
|
-
scope: all
|
|
55
|
-
|
|
56
|
-
# MAY - Optional
|
|
57
|
-
- id: R005
|
|
58
|
-
name: optimization
|
|
59
|
-
title: Optimization Guide
|
|
60
|
-
path: ./MAY-optimization.md
|
|
61
|
-
priority: MAY
|
|
37
|
+
path: ./MUST-tool-identification.md
|
|
38
|
+
priority: MUST
|
|
62
39
|
scope: all
|
|
63
40
|
|
|
64
41
|
- id: R009
|
|
65
42
|
name: parallel-execution
|
|
66
43
|
title: Parallel Execution Rules
|
|
67
|
-
path: ./
|
|
68
|
-
priority:
|
|
69
|
-
scope:
|
|
44
|
+
path: ./MUST-parallel-execution.md
|
|
45
|
+
priority: MUST
|
|
46
|
+
scope: all
|
|
70
47
|
|
|
71
48
|
# Agent Design - MUST
|
|
72
49
|
- id: R006
|
|
@@ -84,6 +61,45 @@ rules:
|
|
|
84
61
|
priority: MUST
|
|
85
62
|
scope: agents
|
|
86
63
|
|
|
64
|
+
# Intent Transparency - MUST
|
|
65
|
+
- id: R015
|
|
66
|
+
name: intent-transparency
|
|
67
|
+
title: Intent Transparency Rules
|
|
68
|
+
path: ./MUST-intent-transparency.md
|
|
69
|
+
priority: MUST
|
|
70
|
+
scope: orchestrator
|
|
71
|
+
|
|
72
|
+
# Continuous Improvement - MUST
|
|
73
|
+
- id: R016
|
|
74
|
+
name: continuous-improvement
|
|
75
|
+
title: Continuous Improvement Rules
|
|
76
|
+
path: ./MUST-continuous-improvement.md
|
|
77
|
+
priority: MUST
|
|
78
|
+
scope: all
|
|
79
|
+
|
|
80
|
+
# Sync Verification - MUST
|
|
81
|
+
- id: R017
|
|
82
|
+
name: sync-verification
|
|
83
|
+
title: Sync Verification Rules
|
|
84
|
+
path: ./MUST-sync-verification.md
|
|
85
|
+
priority: MUST
|
|
86
|
+
scope: all
|
|
87
|
+
|
|
88
|
+
# SHOULD - Strongly recommended
|
|
89
|
+
- id: R003
|
|
90
|
+
name: interaction
|
|
91
|
+
title: Interaction Rules
|
|
92
|
+
path: ./SHOULD-interaction.md
|
|
93
|
+
priority: SHOULD
|
|
94
|
+
scope: all
|
|
95
|
+
|
|
96
|
+
- id: R004
|
|
97
|
+
name: error-handling
|
|
98
|
+
title: Error Handling Rules
|
|
99
|
+
path: ./SHOULD-error-handling.md
|
|
100
|
+
priority: SHOULD
|
|
101
|
+
scope: all
|
|
102
|
+
|
|
87
103
|
# Memory Integration - SHOULD
|
|
88
104
|
- id: R011
|
|
89
105
|
name: memory-integration
|
|
@@ -108,10 +124,18 @@ rules:
|
|
|
108
124
|
priority: SHOULD
|
|
109
125
|
scope: all
|
|
110
126
|
|
|
111
|
-
#
|
|
112
|
-
- id:
|
|
113
|
-
name:
|
|
114
|
-
title:
|
|
115
|
-
path: ./
|
|
116
|
-
priority:
|
|
127
|
+
# Agent Teams - SHOULD
|
|
128
|
+
- id: R018
|
|
129
|
+
name: agent-teams
|
|
130
|
+
title: Agent Teams Rules
|
|
131
|
+
path: ./SHOULD-agent-teams.md
|
|
132
|
+
priority: SHOULD
|
|
117
133
|
scope: orchestrator
|
|
134
|
+
|
|
135
|
+
# MAY - Optional
|
|
136
|
+
- id: R005
|
|
137
|
+
name: optimization
|
|
138
|
+
title: Optimization Guide
|
|
139
|
+
path: ./MAY-optimization.md
|
|
140
|
+
priority: MAY
|
|
141
|
+
scope: all
|
package/templates/CLAUDE.md.en
CHANGED
|
@@ -129,6 +129,7 @@ Flow:
|
|
|
129
129
|
| R012 | HUD Statusline | Real-time status display |
|
|
130
130
|
| R013 | Ecomode | Token efficiency for batch ops |
|
|
131
131
|
| R015 | Intent Transparency | **MUST** - Transparent agent routing |
|
|
132
|
+
| R018 | Agent Teams | Active use of Agent Teams when enabled |
|
|
132
133
|
|
|
133
134
|
### MAY (Optional)
|
|
134
135
|
| ID | Rule | Description |
|
|
@@ -169,7 +170,7 @@ project/
|
|
|
169
170
|
+-- .claude/
|
|
170
171
|
| +-- agents/ # Subagent definitions (34 files)
|
|
171
172
|
| +-- skills/ # Skills (41 directories)
|
|
172
|
-
| +-- rules/ # Global rules (R000-
|
|
173
|
+
| +-- rules/ # Global rules (R000-R018)
|
|
173
174
|
| +-- hooks/ # Hook scripts (memory, HUD)
|
|
174
175
|
| +-- contexts/ # Context files (ecomode)
|
|
175
176
|
+-- guides/ # Reference docs (13 topics)
|
|
@@ -200,6 +201,21 @@ The main conversation acts as the sole orchestrator. Subagents cannot spawn othe
|
|
|
200
201
|
| System | 2 | sys-memory-keeper, sys-naggy |
|
|
201
202
|
| **Total** | **34** | |
|
|
202
203
|
|
|
204
|
+
## Agent Teams
|
|
205
|
+
|
|
206
|
+
When Claude Code's Agent Teams feature is enabled (`CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`), actively use it for qualifying tasks.
|
|
207
|
+
|
|
208
|
+
| Feature | Subagents (Default) | Agent Teams |
|
|
209
|
+
|---------|---------------------|-------------|
|
|
210
|
+
| Communication | Results to caller only | Peer-to-peer mailbox |
|
|
211
|
+
| Coordination | Orchestrator manages | Shared task list |
|
|
212
|
+
| Best for | Focused tasks | Research, review, debugging |
|
|
213
|
+
| Token cost | Lower | Higher |
|
|
214
|
+
|
|
215
|
+
**When enabled, actively use Agent Teams for complex collaborative tasks.**
|
|
216
|
+
See R018 (SHOULD-agent-teams.md) for the decision matrix.
|
|
217
|
+
Task tool + routing skills remain the fallback for simple/cost-sensitive tasks.
|
|
218
|
+
|
|
203
219
|
## Quick Reference
|
|
204
220
|
|
|
205
221
|
```bash
|
package/templates/CLAUDE.md.ko
CHANGED
|
@@ -129,6 +129,7 @@ oh-my-customcode로 구동됩니다.
|
|
|
129
129
|
| R012 | HUD 상태줄 | 실시간 상태 표시 |
|
|
130
130
|
| R013 | Ecomode | 배치 작업 토큰 효율성 |
|
|
131
131
|
| R015 | 의도 투명성 | **필수** - 투명한 에이전트 라우팅 |
|
|
132
|
+
| R018 | Agent Teams | 활성화 시 Agent Teams 적극 사용 |
|
|
132
133
|
|
|
133
134
|
### MAY (선택)
|
|
134
135
|
| ID | 규칙 | 설명 |
|
|
@@ -169,7 +170,7 @@ project/
|
|
|
169
170
|
+-- .claude/
|
|
170
171
|
| +-- agents/ # 서브에이전트 정의 (34 파일)
|
|
171
172
|
| +-- skills/ # 스킬 (41 디렉토리)
|
|
172
|
-
| +-- rules/ # 전역 규칙 (R000-
|
|
173
|
+
| +-- rules/ # 전역 규칙 (R000-R018)
|
|
173
174
|
| +-- hooks/ # 훅 스크립트 (메모리, HUD)
|
|
174
175
|
| +-- contexts/ # 컨텍스트 파일 (ecomode)
|
|
175
176
|
+-- guides/ # 레퍼런스 문서 (13 토픽)
|
|
@@ -200,6 +201,21 @@ project/
|
|
|
200
201
|
| System | 2 | sys-memory-keeper, sys-naggy |
|
|
201
202
|
| **총계** | **34** | |
|
|
202
203
|
|
|
204
|
+
## Agent Teams
|
|
205
|
+
|
|
206
|
+
Claude Code의 Agent Teams 기능이 활성화되어 있으면 (`CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`), 적격한 작업에 적극적으로 사용합니다.
|
|
207
|
+
|
|
208
|
+
| 기능 | 서브에이전트 (기본) | Agent Teams |
|
|
209
|
+
|------|---------------------|-------------|
|
|
210
|
+
| 통신 | 호출자에게 결과만 반환 | 피어 투 피어 메시지 |
|
|
211
|
+
| 조율 | 오케스트레이터가 관리 | 공유 작업 목록 |
|
|
212
|
+
| 적합한 작업 | 집중된 작업 | 리서치, 리뷰, 디버깅 |
|
|
213
|
+
| 토큰 비용 | 낮음 | 높음 |
|
|
214
|
+
|
|
215
|
+
**활성화 시, 복잡한 협업 작업에 Agent Teams를 적극 사용합니다.**
|
|
216
|
+
결정 매트릭스는 R018 (SHOULD-agent-teams.md)을 참조하세요.
|
|
217
|
+
단순/비용 민감 작업에는 Task tool + 라우팅 스킬이 폴백으로 유지됩니다.
|
|
218
|
+
|
|
203
219
|
## 빠른 참조
|
|
204
220
|
|
|
205
221
|
```bash
|
package/templates/manifest.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.2.0",
|
|
3
|
-
"lastUpdated": "2026-02-
|
|
3
|
+
"lastUpdated": "2026-02-08T07:00:00.000Z",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"name": "rules",
|
|
7
7
|
"path": ".claude/rules",
|
|
8
8
|
"description": "Agent behavior rules and guidelines",
|
|
9
|
-
"files":
|
|
9
|
+
"files": 19
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "agents",
|