oh-my-customcode 0.15.0 → 0.16.1
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 +4 -3
- package/package.json +1 -1
- package/templates/.claude/contexts/ecomode.md +47 -0
- package/templates/.claude/hooks/hooks.json +11 -1
- package/templates/.claude/hooks/scripts/stage-blocker.sh +12 -0
- package/templates/.claude/rules/SHOULD-interaction.md +41 -0
- package/templates/.claude/skills/multi-model-verification/SKILL.md +129 -0
- package/templates/.claude/skills/structured-dev-cycle/SKILL.md +171 -0
- package/templates/CLAUDE.md.en +1 -1
- package/templates/CLAUDE.md.ko +1 -1
- package/templates/manifest.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Like oh-my-zsh transformed shell customization, oh-my-customcode makes personali
|
|
|
21
21
|
|
|
22
22
|
| Feature | Description |
|
|
23
23
|
|---------|-------------|
|
|
24
|
-
| **Batteries Included** | 42 agents,
|
|
24
|
+
| **Batteries Included** | 42 agents, 55 skills, 22 guides, 18 rules, 1 hook, 4 contexts, ontology graph - ready to use out of the box |
|
|
25
25
|
| **Sub-Agent Model** | Supports hierarchical agent orchestration with specialized roles |
|
|
26
26
|
| **Dead Simple Customization** | Create a folder + markdown file = new agent or skill |
|
|
27
27
|
| **Mix and Match** | Use built-in components, create your own, or combine both |
|
|
@@ -125,7 +125,7 @@ Claude Code selects the appropriate model and parallelizes independent tasks (up
|
|
|
125
125
|
| **QA** | 3 | qa-planner, qa-writer, qa-engineer |
|
|
126
126
|
| **Total** | **42** | |
|
|
127
127
|
|
|
128
|
-
### Skills (
|
|
128
|
+
### Skills (55)
|
|
129
129
|
|
|
130
130
|
| Category | Count | Skills |
|
|
131
131
|
|----------|-------|--------|
|
|
@@ -138,6 +138,7 @@ Claude Code selects the appropriate model and parallelizes independent tasks (up
|
|
|
138
138
|
| **Package Management** | 3 | npm-publish, npm-version, npm-audit |
|
|
139
139
|
| **Operations** | 7 | update-docs, update-external, audit-agents, fix-refs, sauron-watch, monitoring-setup, claude-code-bible |
|
|
140
140
|
| **Utilities** | 5 | lists, help, status, result-aggregation, writing-clearly-and-concisely |
|
|
141
|
+
| **Quality & Workflow** | 2 | multi-model-verification, structured-dev-cycle |
|
|
141
142
|
| **Deploy** | 2 | vercel-deploy, codex-exec |
|
|
142
143
|
| **External** | 1 | skills-sh-search |
|
|
143
144
|
|
|
@@ -225,7 +226,7 @@ your-project/
|
|
|
225
226
|
│ ├── be-fastapi-expert.md
|
|
226
227
|
│ ├── mgr-creator.md
|
|
227
228
|
│ └── ...
|
|
228
|
-
├── skills/ # Skill modules (
|
|
229
|
+
├── skills/ # Skill modules (55 directories, each with SKILL.md)
|
|
229
230
|
│ ├── go-best-practices/
|
|
230
231
|
│ ├── react-best-practices/
|
|
231
232
|
│ ├── secretary-routing/
|
package/package.json
CHANGED
|
@@ -61,3 +61,50 @@ Ecomode deactivates when:
|
|
|
61
61
|
- User requests "verbose" or "full details"
|
|
62
62
|
- Single task execution
|
|
63
63
|
- Explicit "ecomode off"
|
|
64
|
+
|
|
65
|
+
## Effort Level Integration
|
|
66
|
+
|
|
67
|
+
Agent frontmatter `effort` field maps to runtime behavior:
|
|
68
|
+
|
|
69
|
+
| Effort | Model Preference | Output Length | Detail Level | Token Budget |
|
|
70
|
+
|--------|-----------------|---------------|--------------|--------------|
|
|
71
|
+
| `low` | haiku | ≤100 tokens | Minimal — result only | Conservative |
|
|
72
|
+
| `medium` | sonnet | ≤200 tokens | Summary + key details | Balanced |
|
|
73
|
+
| `high` | opus | ≤500 tokens | Full reasoning + examples | Generous |
|
|
74
|
+
|
|
75
|
+
### Effort ↔ Ecomode Interaction
|
|
76
|
+
|
|
77
|
+
| Condition | Behavior |
|
|
78
|
+
|-----------|----------|
|
|
79
|
+
| Ecomode ON + effort: high | Ecomode wins — compress output regardless |
|
|
80
|
+
| Ecomode OFF + effort: low | Low effort wins — concise output |
|
|
81
|
+
| Ecomode OFF + effort: high | Full detailed output |
|
|
82
|
+
| Ecomode ON + effort: low | Maximum compression |
|
|
83
|
+
|
|
84
|
+
### Effort-Based Configuration
|
|
85
|
+
|
|
86
|
+
```yaml
|
|
87
|
+
effort_levels:
|
|
88
|
+
low:
|
|
89
|
+
result_format: minimal
|
|
90
|
+
max_result_length: 100
|
|
91
|
+
skip_intermediate_steps: true
|
|
92
|
+
output_style: concise
|
|
93
|
+
medium:
|
|
94
|
+
result_format: summary
|
|
95
|
+
max_result_length: 200
|
|
96
|
+
skip_intermediate_steps: false
|
|
97
|
+
output_style: balanced
|
|
98
|
+
high:
|
|
99
|
+
result_format: detailed
|
|
100
|
+
max_result_length: 500
|
|
101
|
+
skip_intermediate_steps: false
|
|
102
|
+
output_style: explanatory
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Application
|
|
106
|
+
|
|
107
|
+
When spawning agents, the orchestrator should consider the agent's effort level:
|
|
108
|
+
- `effort: low` agents → Assign to simple tasks (validation, search, formatting)
|
|
109
|
+
- `effort: medium` agents → Assign to standard tasks (implementation, review)
|
|
110
|
+
- `effort: high` agents → Assign to complex tasks (architecture, security, design)
|
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
|
3
3
|
"hooks": {
|
|
4
4
|
"PreToolUse": [
|
|
5
|
+
{
|
|
6
|
+
"matcher": "tool == \"Write\" || tool == \"Edit\"",
|
|
7
|
+
"hooks": [
|
|
8
|
+
{
|
|
9
|
+
"type": "command",
|
|
10
|
+
"command": "bash .claude/hooks/scripts/stage-blocker.sh"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"description": "Block Write/Edit tools during plan/verify/compound stages — only allow in implement stage"
|
|
14
|
+
},
|
|
5
15
|
{
|
|
6
16
|
"matcher": "tool == \"Bash\" && tool_input.command matches \"(npm run dev|pnpm( run)? dev|yarn dev|bun run dev)\"",
|
|
7
17
|
"hooks": [
|
|
@@ -27,7 +37,7 @@
|
|
|
27
37
|
"hooks": [
|
|
28
38
|
{
|
|
29
39
|
"type": "command",
|
|
30
|
-
"command": "#!/bin/bash\necho '[Hook] Review changes before push...' >&2\
|
|
40
|
+
"command": "#!/bin/bash\necho '[Hook] Review changes before push...' >&2\nif [ -t 0 ]; then echo '[Hook] Press Enter to continue or Ctrl+C to abort...' >&2; read -r; else echo '[Hook] Non-interactive mode, proceeding...' >&2; fi"
|
|
31
41
|
}
|
|
32
42
|
],
|
|
33
43
|
"description": "Pause before git push to review changes"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Stage-blocking hook: blocks Write/Edit in non-implement stages
|
|
3
|
+
if [ -f /tmp/.claude-dev-stage ]; then
|
|
4
|
+
stage=$(cat /tmp/.claude-dev-stage | tr -d '[:space:]')
|
|
5
|
+
if [ -z "$stage" ]; then exit 0; fi
|
|
6
|
+
case "$stage" in
|
|
7
|
+
plan|verify-plan|verify-impl|compound|done)
|
|
8
|
+
echo "⛔ BLOCKED: Write/Edit disabled in '$stage' stage. Only allowed during 'implement' stage. Use 'echo implement > /tmp/.claude-dev-stage' to transition."
|
|
9
|
+
exit 2
|
|
10
|
+
;;
|
|
11
|
+
esac
|
|
12
|
+
fi
|
|
@@ -32,3 +32,44 @@
|
|
|
32
32
|
- Dependent: Sequential
|
|
33
33
|
- Independent: Parallel allowed
|
|
34
34
|
- Report: `[Task 1/3] Done` / `[Task 2/3] In progress...` / `[Task 3/3] Pending`
|
|
35
|
+
|
|
36
|
+
## Output Styles
|
|
37
|
+
|
|
38
|
+
| Style | Trigger | Behavior |
|
|
39
|
+
|-------|---------|----------|
|
|
40
|
+
| `concise` | effort: low, batch operations | Key result only, no preamble, no elaboration |
|
|
41
|
+
| `balanced` | effort: medium, general tasks | Summary + key details, minimal explanation |
|
|
42
|
+
| `explanatory` | effort: high, complex/learning tasks | Full reasoning, examples, trade-off analysis |
|
|
43
|
+
|
|
44
|
+
### Style Selection Priority
|
|
45
|
+
|
|
46
|
+
1. User explicit request ("be concise", "explain in detail") → Override
|
|
47
|
+
2. Ecomode active → Force `concise`
|
|
48
|
+
3. Agent effort level → Map to corresponding style
|
|
49
|
+
4. Default → `balanced`
|
|
50
|
+
|
|
51
|
+
### Style Examples
|
|
52
|
+
|
|
53
|
+
**Concise** (effort: low):
|
|
54
|
+
```
|
|
55
|
+
✓ 3 files updated, 0 errors
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**Balanced** (effort: medium):
|
|
59
|
+
```
|
|
60
|
+
[Done] Updated authentication module
|
|
61
|
+
- Modified: auth.ts, middleware.ts, config.ts
|
|
62
|
+
- Added JWT validation with 24h expiry
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Explanatory** (effort: high):
|
|
66
|
+
```
|
|
67
|
+
[Done] Updated authentication module — Result: JWT-based auth with refresh tokens
|
|
68
|
+
|
|
69
|
+
Changes:
|
|
70
|
+
1. auth.ts:45 — Added JWT signing with RS256 algorithm (chosen over HS256 for key rotation support)
|
|
71
|
+
2. middleware.ts:12 — New auth middleware validates token and attaches user context
|
|
72
|
+
3. config.ts:8 — Added TOKEN_EXPIRY (24h) and REFRESH_EXPIRY (7d) constants
|
|
73
|
+
|
|
74
|
+
Trade-offs: RS256 is ~10x slower than HS256 but enables asymmetric key management.
|
|
75
|
+
```
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: multi-model-verification
|
|
3
|
+
description: Parallel code verification using multiple models with severity classification
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
user_invocable: false
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Multi-Model Verification
|
|
9
|
+
|
|
10
|
+
Parallel code verification using multiple AI models for comprehensive quality assurance. Each model focuses on a different aspect, and results are aggregated with severity classification.
|
|
11
|
+
|
|
12
|
+
## Background
|
|
13
|
+
|
|
14
|
+
Inspired by Pi Coding Agent Workflow Extension's multi-model verification pattern. Instead of a single reviewer, multiple models verify code simultaneously, each with specialized focus areas.
|
|
15
|
+
|
|
16
|
+
## Verification Roles
|
|
17
|
+
|
|
18
|
+
| Model | Role | Focus Areas |
|
|
19
|
+
|-------|------|-------------|
|
|
20
|
+
| `opus` | Architecture Reviewer | Design patterns, separation of concerns, extensibility, security architecture |
|
|
21
|
+
| `sonnet` | Code Quality Reviewer | Logic correctness, error handling, edge cases, performance patterns |
|
|
22
|
+
| `haiku` | Style & Convention Reviewer | Naming conventions, formatting, documentation, code organization |
|
|
23
|
+
|
|
24
|
+
## Severity Classification
|
|
25
|
+
|
|
26
|
+
| Severity | Description | Action Required |
|
|
27
|
+
|----------|-------------|-----------------|
|
|
28
|
+
| CRITICAL | Bugs, security vulnerabilities, data loss risks | Must fix before merge |
|
|
29
|
+
| WARNING | Code smells, suboptimal patterns, missing error handling | Should fix, justify if skipped |
|
|
30
|
+
| INFO | Style suggestions, minor improvements, alternative approaches | Optional improvement |
|
|
31
|
+
|
|
32
|
+
## Workflow
|
|
33
|
+
|
|
34
|
+
### Prerequisites
|
|
35
|
+
- Agent Teams enabled (`CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`) for full parallel execution
|
|
36
|
+
- Falls back to sequential Task tool execution if Agent Teams unavailable
|
|
37
|
+
|
|
38
|
+
### Execution Flow
|
|
39
|
+
|
|
40
|
+
1. **Input**: File path(s) or diff to verify
|
|
41
|
+
2. **Spawn Parallel Reviewers**:
|
|
42
|
+
- `Task(opus)` → Architecture & design review
|
|
43
|
+
- `Task(sonnet)` → Code quality & correctness review
|
|
44
|
+
- `Task(haiku)` → Style & convention review
|
|
45
|
+
3. **Collect Results**: Each reviewer returns findings with severity
|
|
46
|
+
4. **Aggregate**: Merge and deduplicate findings
|
|
47
|
+
5. **Report**: Unified report sorted by severity
|
|
48
|
+
|
|
49
|
+
### Agent Teams Mode
|
|
50
|
+
|
|
51
|
+
When Agent Teams is available, create a verification team:
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
TeamCreate("verification-team")
|
|
55
|
+
├── architect-reviewer (opus) → Architecture review
|
|
56
|
+
├── quality-reviewer (sonnet) → Code quality review
|
|
57
|
+
└── style-reviewer (haiku) → Style review
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Members communicate findings via SendMessage for cross-cutting concerns.
|
|
61
|
+
|
|
62
|
+
### Task Tool Fallback
|
|
63
|
+
|
|
64
|
+
When Agent Teams is unavailable, spawn parallel Task agents:
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
[1] Task(general-purpose):opus → Architecture review
|
|
68
|
+
[2] Task(general-purpose):sonnet → Code quality review
|
|
69
|
+
[3] Task(general-purpose):haiku → Style & convention review
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Output Format
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
## Multi-Model Verification Report
|
|
76
|
+
|
|
77
|
+
### Summary
|
|
78
|
+
- Files reviewed: {count}
|
|
79
|
+
- Findings: {critical} CRITICAL, {warning} WARNING, {info} INFO
|
|
80
|
+
- Reviewers: opus (architecture), sonnet (quality), haiku (style)
|
|
81
|
+
|
|
82
|
+
### CRITICAL
|
|
83
|
+
[opus] {file}:{line} — {description}
|
|
84
|
+
[sonnet] {file}:{line} — {description}
|
|
85
|
+
|
|
86
|
+
### WARNING
|
|
87
|
+
[sonnet] {file}:{line} — {description}
|
|
88
|
+
[haiku] {file}:{line} — {description}
|
|
89
|
+
|
|
90
|
+
### INFO
|
|
91
|
+
[haiku] {file}:{line} — {description}
|
|
92
|
+
|
|
93
|
+
### Consensus
|
|
94
|
+
Issues flagged by 2+ reviewers:
|
|
95
|
+
- {file}:{line} — {description} (flagged by: opus, sonnet)
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Integration
|
|
99
|
+
|
|
100
|
+
- Works with `dev-review` skill as an enhanced verification mode
|
|
101
|
+
- Integrates with `structured-dev-cycle` skill at the "Verify Implementation" stage
|
|
102
|
+
- Compatible with R009 (parallel execution) and R018 (Agent Teams) rules
|
|
103
|
+
|
|
104
|
+
## Configuration
|
|
105
|
+
|
|
106
|
+
| Parameter | Default | Description |
|
|
107
|
+
|-----------|---------|-------------|
|
|
108
|
+
| `models` | `[opus, sonnet, haiku]` | Models to use for verification |
|
|
109
|
+
| `severity_filter` | `all` | Minimum severity to report (`critical`, `warning`, `all`) |
|
|
110
|
+
| `consensus_threshold` | `2` | Number of reviewers needed for consensus flag |
|
|
111
|
+
| `include_suggestions` | `true` | Include INFO-level suggestions |
|
|
112
|
+
|
|
113
|
+
## When to Use
|
|
114
|
+
|
|
115
|
+
| Scenario | Recommended |
|
|
116
|
+
|----------|-------------|
|
|
117
|
+
| Pre-merge review of critical code | Yes |
|
|
118
|
+
| Architecture changes | Yes |
|
|
119
|
+
| Security-sensitive code | Yes |
|
|
120
|
+
| Simple formatting changes | No (use single reviewer) |
|
|
121
|
+
| Rapid prototyping | No (overhead too high) |
|
|
122
|
+
|
|
123
|
+
## Cost Awareness
|
|
124
|
+
|
|
125
|
+
Multi-model verification uses 3x the tokens of a single review. Reserve for:
|
|
126
|
+
- Critical path code changes
|
|
127
|
+
- Security-sensitive modifications
|
|
128
|
+
- Architecture decisions
|
|
129
|
+
- Pre-release verification
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: structured-dev-cycle
|
|
3
|
+
description: 6-stage structured development cycle with stage-based tool restrictions
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
user_invocable: false
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Structured Development Cycle
|
|
9
|
+
|
|
10
|
+
A disciplined 6-stage development cycle that enforces quality through stage-based tool restrictions. Prevents premature implementation by requiring planning and verification phases.
|
|
11
|
+
|
|
12
|
+
## Background
|
|
13
|
+
|
|
14
|
+
Inspired by Pi Coding Agent Workflow Extension's structured development approach. The core insight: restricting file modification tools during planning phases forces thorough analysis before code changes.
|
|
15
|
+
|
|
16
|
+
## Stages
|
|
17
|
+
|
|
18
|
+
| # | Stage | Allowed Tools | Blocked Tools | Purpose |
|
|
19
|
+
|---|-------|---------------|---------------|---------|
|
|
20
|
+
| 1 | **Plan** | Read, Glob, Grep, WebSearch, WebFetch | Write, Edit, Bash (modifying) | Define approach, analyze requirements |
|
|
21
|
+
| 2 | **Verify Plan** | Read, Glob, Grep | Write, Edit, Bash | Review plan from different perspective |
|
|
22
|
+
| 3 | **Implement** | All tools | None | Write code, create files |
|
|
23
|
+
| 4 | **Verify Implementation** | Read, Glob, Grep, Bash (tests only) | Write, Edit | Review code, run tests |
|
|
24
|
+
| 5 | **Compound** | Read, Bash (tests only) | Write, Edit | Integration testing, cross-module validation |
|
|
25
|
+
| 6 | **Done** | Read | Write, Edit, Bash | Summary and documentation |
|
|
26
|
+
|
|
27
|
+
## Stage Tracking
|
|
28
|
+
|
|
29
|
+
Stage state is tracked via a marker file for hook enforcement:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# Set stage (used by orchestrator or skill)
|
|
33
|
+
echo "plan" > /tmp/.claude-dev-stage
|
|
34
|
+
|
|
35
|
+
# Valid stage values (all block Write/Edit except 'implement'):
|
|
36
|
+
# plan, verify-plan, implement, verify-impl, compound, done
|
|
37
|
+
|
|
38
|
+
# Clear stage (disable blocking)
|
|
39
|
+
rm -f /tmp/.claude-dev-stage
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
A PreToolUse hook in `.claude/hooks/hooks.json` checks this marker and blocks Write/Edit tools during non-implementation stages.
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
### Stage 1: Plan
|
|
47
|
+
```
|
|
48
|
+
[Stage 1/6: Plan]
|
|
49
|
+
├── Analyze requirements and constraints
|
|
50
|
+
├── Read existing code for context
|
|
51
|
+
├── Search for related patterns
|
|
52
|
+
├── Define approach with rationale
|
|
53
|
+
└── Output: Implementation plan document
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Exit criteria**: Clear plan with file list, approach description, and risk assessment.
|
|
57
|
+
|
|
58
|
+
### Stage 2: Verify Plan
|
|
59
|
+
```
|
|
60
|
+
[Stage 2/6: Verify Plan]
|
|
61
|
+
├── Review plan for completeness
|
|
62
|
+
├── Check for missing edge cases
|
|
63
|
+
├── Validate against existing patterns
|
|
64
|
+
├── Consider alternative approaches
|
|
65
|
+
└── Output: Plan approval or revision requests
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Exit criteria**: Plan verified by different perspective (ideally different model via multi-model-verification).
|
|
69
|
+
|
|
70
|
+
### Stage 3: Implement
|
|
71
|
+
```
|
|
72
|
+
[Stage 3/6: Implement]
|
|
73
|
+
├── Follow verified plan
|
|
74
|
+
├── Create/modify files as specified
|
|
75
|
+
├── Write tests alongside code
|
|
76
|
+
├── Track deviations from plan
|
|
77
|
+
└── Output: Implementation complete
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**Exit criteria**: All planned files created/modified, tests written.
|
|
81
|
+
|
|
82
|
+
### Stage 4: Verify Implementation
|
|
83
|
+
```
|
|
84
|
+
[Stage 4/6: Verify Implementation]
|
|
85
|
+
├── Run test suite
|
|
86
|
+
├── Review code quality
|
|
87
|
+
├── Check for plan deviations
|
|
88
|
+
├── Validate error handling
|
|
89
|
+
└── Output: Verification report
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Exit criteria**: All tests pass, no critical issues found. If issues found, return to Stage 3.
|
|
93
|
+
|
|
94
|
+
### Stage 5: Compound
|
|
95
|
+
```
|
|
96
|
+
[Stage 5/6: Compound]
|
|
97
|
+
├── Run integration tests
|
|
98
|
+
├── Cross-module validation
|
|
99
|
+
├── Check for side effects
|
|
100
|
+
├── Verify documentation accuracy
|
|
101
|
+
└── Output: Integration report
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Exit criteria**: No integration issues. If issues found, return to Stage 3.
|
|
105
|
+
|
|
106
|
+
### Stage 6: Done
|
|
107
|
+
```
|
|
108
|
+
[Stage 6/6: Done]
|
|
109
|
+
├── Summarize changes made
|
|
110
|
+
├── List files modified
|
|
111
|
+
├── Note any deviations from plan
|
|
112
|
+
├── Suggest follow-up tasks
|
|
113
|
+
└── Output: Completion summary
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Integration
|
|
117
|
+
|
|
118
|
+
### With EnterPlanMode
|
|
119
|
+
Stage 1 (Plan) maps to Claude Code's `EnterPlanMode`. When the structured cycle is active:
|
|
120
|
+
- EnterPlanMode triggers Stage 1
|
|
121
|
+
- ExitPlanMode transitions to Stage 2 (Verify Plan), not directly to implementation
|
|
122
|
+
|
|
123
|
+
### With Multi-Model Verification
|
|
124
|
+
Stage 2 (Verify Plan) and Stage 4 (Verify Implementation) can invoke the `multi-model-verification` skill for comprehensive review.
|
|
125
|
+
|
|
126
|
+
### With PreToolUse Hooks
|
|
127
|
+
The stage marker file (`/tmp/.claude-dev-stage`) is read by a PreToolUse hook that enforces tool restrictions. This provides a safety net beyond instruction-based compliance.
|
|
128
|
+
|
|
129
|
+
### With Agent Teams
|
|
130
|
+
For complex tasks, each stage can be handled by specialized team members:
|
|
131
|
+
- Plan: architect agent
|
|
132
|
+
- Verify: reviewer agent(s)
|
|
133
|
+
- Implement: domain expert agent
|
|
134
|
+
- Compound: QA agent
|
|
135
|
+
|
|
136
|
+
## When to Use
|
|
137
|
+
|
|
138
|
+
| Task Complexity | Recommended Cycle |
|
|
139
|
+
|----------------|-------------------|
|
|
140
|
+
| Simple fix (< 3 files) | Skip — direct implementation |
|
|
141
|
+
| Medium feature (3-10 files) | Stages 1, 3, 4, 6 (skip verify plan, compound) |
|
|
142
|
+
| Complex feature (10+ files) | Full 6-stage cycle |
|
|
143
|
+
| Architecture change | Full 6-stage cycle with multi-model verification |
|
|
144
|
+
| Security-critical code | Full 6-stage cycle (mandatory) |
|
|
145
|
+
|
|
146
|
+
## Stage Transition Commands
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
# Orchestrator manages transitions:
|
|
150
|
+
echo "plan" > /tmp/.claude-dev-stage # Enter planning
|
|
151
|
+
echo "verify-plan" > /tmp/.claude-dev-stage # Enter plan verification
|
|
152
|
+
echo "implement" > /tmp/.claude-dev-stage # Enter implementation
|
|
153
|
+
echo "verify-impl" > /tmp/.claude-dev-stage # Enter impl verification
|
|
154
|
+
echo "compound" > /tmp/.claude-dev-stage # Enter compound testing
|
|
155
|
+
echo "done" > /tmp/.claude-dev-stage # Mark done
|
|
156
|
+
rm -f /tmp/.claude-dev-stage # Clear (disable blocking)
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## Limitations
|
|
160
|
+
|
|
161
|
+
- **Single session**: The fixed path `/tmp/.claude-dev-stage` does not support concurrent Claude Code sessions. Running multiple sessions simultaneously may cause stage state conflicts.
|
|
162
|
+
- **World-writable path**: The `/tmp/` directory is accessible to all users. For multi-user environments, consider using a user-scoped path like `/tmp/.claude-dev-stage-$(id -u)`.
|
|
163
|
+
|
|
164
|
+
## Display Format
|
|
165
|
+
|
|
166
|
+
```
|
|
167
|
+
═══ Structured Dev Cycle ═══════════════════════════
|
|
168
|
+
[■■□□□□] Stage 2/6: Verify Plan
|
|
169
|
+
Files planned: 5 | Risks identified: 2
|
|
170
|
+
═════════════════════════════════════════════════════
|
|
171
|
+
```
|
package/templates/CLAUDE.md.en
CHANGED
|
@@ -174,7 +174,7 @@ project/
|
|
|
174
174
|
+-- CLAUDE.md # Entry point
|
|
175
175
|
+-- .claude/
|
|
176
176
|
| +-- agents/ # Subagent definitions (42 files)
|
|
177
|
-
| +-- skills/ # Skills (
|
|
177
|
+
| +-- skills/ # Skills (55 directories)
|
|
178
178
|
| +-- rules/ # Global rules (R000-R018)
|
|
179
179
|
| +-- hooks/ # Hook scripts (memory, HUD)
|
|
180
180
|
| +-- contexts/ # Context files (ecomode)
|
package/templates/CLAUDE.md.ko
CHANGED
|
@@ -174,7 +174,7 @@ project/
|
|
|
174
174
|
+-- CLAUDE.md # 진입점
|
|
175
175
|
+-- .claude/
|
|
176
176
|
| +-- agents/ # 서브에이전트 정의 (42 파일)
|
|
177
|
-
| +-- skills/ # 스킬 (
|
|
177
|
+
| +-- skills/ # 스킬 (55 디렉토리)
|
|
178
178
|
| +-- rules/ # 전역 규칙 (R000-R018)
|
|
179
179
|
| +-- hooks/ # 훅 스크립트 (메모리, HUD)
|
|
180
180
|
| +-- contexts/ # 컨텍스트 파일 (ecomode)
|