@champpaba/claude-agent-kit 1.6.0 β 1.7.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/.claude/CHANGELOG-v1.1.1.md +259 -259
- package/.claude/CLAUDE.md +21 -6
- package/.claude/agents/01-integration.md +1 -1
- package/.claude/agents/02-uxui-frontend.md +1 -1
- package/.claude/agents/03-test-debug.md +1 -1
- package/.claude/agents/04-frontend.md +1 -1
- package/.claude/agents/05-backend.md +1 -1
- package/.claude/agents/06-database.md +1 -1
- package/.claude/commands/agentsetup.md +1464 -1464
- package/.claude/commands/cdev.md +3 -4
- package/.claude/commands/csetup.md +82 -3
- package/.claude/commands/cstatus.md +60 -60
- package/.claude/commands/cview.md +364 -364
- package/.claude/commands/psetup.md +101 -101
- package/.claude/contexts/design/accessibility.md +611 -611
- package/.claude/contexts/design/layout.md +400 -400
- package/.claude/contexts/design/responsive.md +551 -551
- package/.claude/contexts/design/shadows.md +522 -522
- package/.claude/contexts/design/typography.md +465 -465
- package/.claude/contexts/domain/README.md +164 -164
- package/.claude/contexts/patterns/agent-coordination.md +388 -388
- package/.claude/contexts/patterns/agent-discovery.md +182 -182
- package/.claude/contexts/patterns/change-workflow.md +538 -538
- package/.claude/contexts/patterns/code-standards.md +515 -515
- package/.claude/contexts/patterns/development-principles.md +513 -513
- package/.claude/contexts/patterns/error-handling.md +478 -478
- package/.claude/contexts/patterns/error-recovery.md +365 -365
- package/.claude/contexts/patterns/logging.md +424 -424
- package/.claude/contexts/patterns/task-breakdown.md +452 -452
- package/.claude/contexts/patterns/task-classification.md +523 -523
- package/.claude/contexts/patterns/tdd-classification.md +516 -516
- package/.claude/contexts/patterns/testing.md +413 -413
- package/.claude/contexts/patterns/validation-framework.md +776 -776
- package/.claude/lib/agent-executor.md +450 -1
- package/.claude/lib/agent-router.md +572 -572
- package/.claude/lib/detailed-guides/agent-system.md +11 -9
- package/.claude/lib/detailed-guides/incremental-testing.md +460 -0
- package/.claude/lib/flags-updater.md +469 -469
- package/.claude/lib/task-analyzer.md +398 -2
- package/.claude/lib/tdd-classifier.md +345 -345
- package/.claude/lib/validation-gates.md +484 -484
- package/.claude/settings.local.json +42 -42
- package/.claude/templates/context-template.md +45 -45
- package/.claude/templates/flags-template.json +42 -42
- package/.claude/templates/phase-templates.json +173 -124
- package/.claude/templates/phases-sections/accessibility-test.md +17 -17
- package/.claude/templates/phases-sections/api-design.md +37 -37
- package/.claude/templates/phases-sections/backend-tests.md +16 -16
- package/.claude/templates/phases-sections/backend.md +37 -37
- package/.claude/templates/phases-sections/business-logic-validation.md +16 -16
- package/.claude/templates/phases-sections/component-tests.md +17 -17
- package/.claude/templates/phases-sections/contract-backend.md +16 -16
- package/.claude/templates/phases-sections/contract-frontend.md +16 -16
- package/.claude/templates/phases-sections/database.md +35 -35
- package/.claude/templates/phases-sections/documentation.md +17 -17
- package/.claude/templates/phases-sections/e2e-tests.md +16 -16
- package/.claude/templates/phases-sections/fix-implementation.md +17 -17
- package/.claude/templates/phases-sections/frontend-integration.md +18 -18
- package/.claude/templates/phases-sections/frontend-mockup.md +123 -123
- package/.claude/templates/phases-sections/manual-flow-test.md +15 -15
- package/.claude/templates/phases-sections/manual-ux-test.md +16 -16
- package/.claude/templates/phases-sections/refactor-implementation.md +17 -17
- package/.claude/templates/phases-sections/refactor.md +16 -16
- package/.claude/templates/phases-sections/regression-tests.md +15 -15
- package/.claude/templates/phases-sections/report.md +16 -16
- package/.claude/templates/phases-sections/responsive-test.md +16 -16
- package/.claude/templates/phases-sections/script-implementation.md +43 -43
- package/.claude/templates/phases-sections/test-coverage.md +16 -16
- package/.claude/templates/phases-sections/user-approval.md +14 -14
- package/LICENSE +21 -21
- package/README.md +171 -35
- package/package.json +1 -1
|
@@ -1,259 +1,259 @@
|
|
|
1
|
-
# Changelog v1.1.1 - Critical Fixes
|
|
2
|
-
|
|
3
|
-
> **Release Date:** 2025-10-31
|
|
4
|
-
> **Type:** Bug fixes and enforcement improvements
|
|
5
|
-
> **Status:** Production-ready
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## π― Problem Statement
|
|
10
|
-
|
|
11
|
-
Two critical issues identified in real-world usage:
|
|
12
|
-
|
|
13
|
-
1. **Main Agent Not Updating flags.json**
|
|
14
|
-
- Users couldn't track progress
|
|
15
|
-
- flags.json rarely updated after phase completion
|
|
16
|
-
- ~30% update rate (should be 100%)
|
|
17
|
-
|
|
18
|
-
2. **Main Agent Doing Work Directly**
|
|
19
|
-
- Implementation work not delegated to specialized agents
|
|
20
|
-
- Only ~60% proper delegation rate (should be 95%+)
|
|
21
|
-
- Lost benefits of specialized agents
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## π§ Solutions Implemented
|
|
26
|
-
|
|
27
|
-
### β
Solution 1: Mandatory Progress Tracking
|
|
28
|
-
|
|
29
|
-
**New File:** `.claude/lib/flags-updater.md`
|
|
30
|
-
|
|
31
|
-
**What it does:**
|
|
32
|
-
- Defines WHO updates flags.json: Main Claude (NOT sub-agents)
|
|
33
|
-
- Defines WHEN: Immediately after sub-agent completes
|
|
34
|
-
- Defines HOW: Exact implementation with helper functions
|
|
35
|
-
- Provides parsing utilities for extracting files, tasks, duration
|
|
36
|
-
|
|
37
|
-
**Key Features:**
|
|
38
|
-
```typescript
|
|
39
|
-
updateFlagsAfterPhase(changeId, phaseName, agentResponse)
|
|
40
|
-
β Extracts files created/modified
|
|
41
|
-
β Calculates actual duration
|
|
42
|
-
β Updates meta statistics (progress %, time remaining)
|
|
43
|
-
β Moves to next phase
|
|
44
|
-
β Reports to user
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
**Enforcement:**
|
|
48
|
-
- Updated `/cdev` Step 5 to REQUIRE flags update
|
|
49
|
-
- Added to CLAUDE.md as mandatory protocol
|
|
50
|
-
- No exceptions allowed
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
### β
Solution 2: Mandatory Agent Routing
|
|
55
|
-
|
|
56
|
-
**New File:** `.claude/lib/agent-router.md`
|
|
57
|
-
|
|
58
|
-
**What it does:**
|
|
59
|
-
- Defines strict agent boundaries
|
|
60
|
-
- Provides work type detection patterns
|
|
61
|
-
- Enforces delegation for implementation work
|
|
62
|
-
- Includes self-check protocol for Main Claude
|
|
63
|
-
|
|
64
|
-
**Key Features:**
|
|
65
|
-
```typescript
|
|
66
|
-
WORK_PATTERNS = {
|
|
67
|
-
'ui-component': { agent: 'uxui-frontend', canMainDo: false },
|
|
68
|
-
'api-endpoint': { agent: 'backend', canMainDo: false },
|
|
69
|
-
'database-work': { agent: 'database', canMainDo: false },
|
|
70
|
-
'api-integration': { agent: 'frontend', canMainDo: false },
|
|
71
|
-
'testing-debugging': { agent: 'test-debug', canMainDo: false },
|
|
72
|
-
'planning': { agent: 'main-claude', canMainDo: true }
|
|
73
|
-
}
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
**Enforcement:**
|
|
77
|
-
- Added self-check checklist to CLAUDE.md
|
|
78
|
-
- Main Claude MUST complete before any work
|
|
79
|
-
- Override protection (even if user says "do it yourself")
|
|
80
|
-
|
|
81
|
-
---
|
|
82
|
-
|
|
83
|
-
### β
Solution 3: Validation Gates
|
|
84
|
-
|
|
85
|
-
**New File:** `.claude/lib/validation-gates.md`
|
|
86
|
-
|
|
87
|
-
**What it does:**
|
|
88
|
-
- Four checkpoints Main Claude MUST pass:
|
|
89
|
-
1. **Before work** - Ensure correct routing
|
|
90
|
-
2. **After agent responds** - Validate agent output
|
|
91
|
-
3. **Before reporting** - Ensure flags.json updated
|
|
92
|
-
4. **Before phase start** - Check phase readiness
|
|
93
|
-
|
|
94
|
-
**Key Benefits:**
|
|
95
|
-
- Catch errors early
|
|
96
|
-
- Ensure quality at each step
|
|
97
|
-
- Provide clear error messages
|
|
98
|
-
- Enable automatic recovery
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
|
-
## π Files Changed
|
|
103
|
-
|
|
104
|
-
### New Files (3)
|
|
105
|
-
```
|
|
106
|
-
.claude/lib/
|
|
107
|
-
βββ flags-updater.md (NEW - 450 lines)
|
|
108
|
-
βββ agent-router.md (NEW - 500 lines)
|
|
109
|
-
βββ validation-gates.md (NEW - 400 lines)
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
### Modified Files (3)
|
|
113
|
-
```
|
|
114
|
-
.claude/
|
|
115
|
-
βββ CLAUDE.md (MODIFIED - Added self-check protocol)
|
|
116
|
-
βββ lib/README.md (MODIFIED - Added new file descriptions)
|
|
117
|
-
βββ commands/cdev.md (MODIFIED - Step 5 now mandatory flags update)
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
---
|
|
121
|
-
|
|
122
|
-
## π Expected Impact
|
|
123
|
-
|
|
124
|
-
### Metric 1: flags.json Update Rate
|
|
125
|
-
- **Before:** ~30%
|
|
126
|
-
- **After:** 100%
|
|
127
|
-
- **How:** Mandatory update in /cdev Step 5
|
|
128
|
-
|
|
129
|
-
### Metric 2: Agent Delegation Rate
|
|
130
|
-
- **Before:** ~60%
|
|
131
|
-
- **After:** 95%+
|
|
132
|
-
- **How:** Self-check protocol + work type detection
|
|
133
|
-
|
|
134
|
-
### Metric 3: User Visibility
|
|
135
|
-
- **Before:** Must run `/cstatus` manually
|
|
136
|
-
- **After:** Auto-reported after every phase
|
|
137
|
-
- **How:** Progress report in flags-updater protocol
|
|
138
|
-
|
|
139
|
-
---
|
|
140
|
-
|
|
141
|
-
## π― Breaking Changes
|
|
142
|
-
|
|
143
|
-
**None** - All changes are additive:
|
|
144
|
-
- New files add protocols
|
|
145
|
-
- Existing files enhanced (not breaking)
|
|
146
|
-
- Backward compatible with v1.1.0
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
## β
Migration Guide
|
|
151
|
-
|
|
152
|
-
**No migration needed** - Changes are effective immediately:
|
|
153
|
-
|
|
154
|
-
1. **For existing projects:**
|
|
155
|
-
- Templates automatically use new protocols
|
|
156
|
-
- Next `/cdev` run will use updated Step 5
|
|
157
|
-
- Main Claude will read new CLAUDE.md instructions
|
|
158
|
-
|
|
159
|
-
2. **For in-progress changes:**
|
|
160
|
-
- Continue current phase normally
|
|
161
|
-
- New protocols apply from next `/cdev` invocation
|
|
162
|
-
- flags.json will start updating correctly
|
|
163
|
-
|
|
164
|
-
---
|
|
165
|
-
|
|
166
|
-
## π Testing Checklist
|
|
167
|
-
|
|
168
|
-
Before considering this release complete, verify:
|
|
169
|
-
|
|
170
|
-
- [ ] `/cdev` updates flags.json after phase completion
|
|
171
|
-
- [ ] Main Claude delegates implementation work (not doing it directly)
|
|
172
|
-
- [ ] Progress reported to user automatically
|
|
173
|
-
- [ ] Self-check protocol appears in Main Claude output
|
|
174
|
-
- [ ] Validation gates catch common errors
|
|
175
|
-
- [ ] `/cview` and `/cstatus` show accurate data
|
|
176
|
-
|
|
177
|
-
---
|
|
178
|
-
|
|
179
|
-
## π Documentation Updates
|
|
180
|
-
|
|
181
|
-
### CLAUDE.md
|
|
182
|
-
- Added "Main Claude Self-Check Protocol" section
|
|
183
|
-
- Links to agent-router.md for complete routing rules
|
|
184
|
-
- Lists new lib/ files in Quick Navigation
|
|
185
|
-
|
|
186
|
-
### cdev.md
|
|
187
|
-
- Step 5 completely rewritten
|
|
188
|
-
- Now REQUIRES flags.json update
|
|
189
|
-
- Shows exact execution order
|
|
190
|
-
- Includes common mistake examples
|
|
191
|
-
|
|
192
|
-
### lib/README.md
|
|
193
|
-
- Added descriptions for 3 new files
|
|
194
|
-
- Explains purpose of each
|
|
195
|
-
|
|
196
|
-
---
|
|
197
|
-
|
|
198
|
-
## π Future Enhancements (Not in v1.1.1)
|
|
199
|
-
|
|
200
|
-
**Phase 2 Candidates:**
|
|
201
|
-
- Automated testing of validation gates
|
|
202
|
-
- Progress visualization in terminal
|
|
203
|
-
- Metrics dashboard for delegation rate
|
|
204
|
-
- Agent performance profiling
|
|
205
|
-
|
|
206
|
-
**Phase 3 Candidates:**
|
|
207
|
-
- LLM-based validation (use Claude to validate Claude)
|
|
208
|
-
- Predictive time estimation
|
|
209
|
-
- Automatic recovery from common errors
|
|
210
|
-
- Multi-change parallel execution
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
## π Acknowledgments
|
|
215
|
-
|
|
216
|
-
Issues identified through:
|
|
217
|
-
- Real-world usage testing
|
|
218
|
-
- User feedback on progress tracking
|
|
219
|
-
- Analysis of Main Agent behavior patterns
|
|
220
|
-
|
|
221
|
-
---
|
|
222
|
-
|
|
223
|
-
## π Support
|
|
224
|
-
|
|
225
|
-
**Issues with v1.1.1?**
|
|
226
|
-
1. Check validation gate error messages
|
|
227
|
-
2. Verify flags.json exists and is valid JSON
|
|
228
|
-
3. Review Main Claude output for self-check protocol
|
|
229
|
-
4. Open issue with details
|
|
230
|
-
|
|
231
|
-
**Questions?**
|
|
232
|
-
- Read: `.claude/lib/flags-updater.md`
|
|
233
|
-
- Read: `.claude/lib/agent-router.md`
|
|
234
|
-
- Read: `.claude/lib/validation-gates.md`
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
**Version:** 1.1.1
|
|
239
|
-
**Previous:** 1.1.0
|
|
240
|
-
**Next:** TBD (based on feedback)
|
|
241
|
-
|
|
242
|
-
---
|
|
243
|
-
|
|
244
|
-
## π― Quick Reference
|
|
245
|
-
|
|
246
|
-
**Problem 1: flags.json not updated**
|
|
247
|
-
β Solution: `.claude/lib/flags-updater.md`
|
|
248
|
-
β Enforced by: `/cdev` Step 5
|
|
249
|
-
|
|
250
|
-
**Problem 2: Main Agent doing work**
|
|
251
|
-
β Solution: `.claude/lib/agent-router.md`
|
|
252
|
-
β Enforced by: CLAUDE.md self-check protocol
|
|
253
|
-
|
|
254
|
-
**Both problems validated by:**
|
|
255
|
-
β `.claude/lib/validation-gates.md` (4 checkpoints)
|
|
256
|
-
|
|
257
|
-
---
|
|
258
|
-
|
|
259
|
-
**π Ready for production use!**
|
|
1
|
+
# Changelog v1.1.1 - Critical Fixes
|
|
2
|
+
|
|
3
|
+
> **Release Date:** 2025-10-31
|
|
4
|
+
> **Type:** Bug fixes and enforcement improvements
|
|
5
|
+
> **Status:** Production-ready
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## π― Problem Statement
|
|
10
|
+
|
|
11
|
+
Two critical issues identified in real-world usage:
|
|
12
|
+
|
|
13
|
+
1. **Main Agent Not Updating flags.json**
|
|
14
|
+
- Users couldn't track progress
|
|
15
|
+
- flags.json rarely updated after phase completion
|
|
16
|
+
- ~30% update rate (should be 100%)
|
|
17
|
+
|
|
18
|
+
2. **Main Agent Doing Work Directly**
|
|
19
|
+
- Implementation work not delegated to specialized agents
|
|
20
|
+
- Only ~60% proper delegation rate (should be 95%+)
|
|
21
|
+
- Lost benefits of specialized agents
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## π§ Solutions Implemented
|
|
26
|
+
|
|
27
|
+
### β
Solution 1: Mandatory Progress Tracking
|
|
28
|
+
|
|
29
|
+
**New File:** `.claude/lib/flags-updater.md`
|
|
30
|
+
|
|
31
|
+
**What it does:**
|
|
32
|
+
- Defines WHO updates flags.json: Main Claude (NOT sub-agents)
|
|
33
|
+
- Defines WHEN: Immediately after sub-agent completes
|
|
34
|
+
- Defines HOW: Exact implementation with helper functions
|
|
35
|
+
- Provides parsing utilities for extracting files, tasks, duration
|
|
36
|
+
|
|
37
|
+
**Key Features:**
|
|
38
|
+
```typescript
|
|
39
|
+
updateFlagsAfterPhase(changeId, phaseName, agentResponse)
|
|
40
|
+
β Extracts files created/modified
|
|
41
|
+
β Calculates actual duration
|
|
42
|
+
β Updates meta statistics (progress %, time remaining)
|
|
43
|
+
β Moves to next phase
|
|
44
|
+
β Reports to user
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**Enforcement:**
|
|
48
|
+
- Updated `/cdev` Step 5 to REQUIRE flags update
|
|
49
|
+
- Added to CLAUDE.md as mandatory protocol
|
|
50
|
+
- No exceptions allowed
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### β
Solution 2: Mandatory Agent Routing
|
|
55
|
+
|
|
56
|
+
**New File:** `.claude/lib/agent-router.md`
|
|
57
|
+
|
|
58
|
+
**What it does:**
|
|
59
|
+
- Defines strict agent boundaries
|
|
60
|
+
- Provides work type detection patterns
|
|
61
|
+
- Enforces delegation for implementation work
|
|
62
|
+
- Includes self-check protocol for Main Claude
|
|
63
|
+
|
|
64
|
+
**Key Features:**
|
|
65
|
+
```typescript
|
|
66
|
+
WORK_PATTERNS = {
|
|
67
|
+
'ui-component': { agent: 'uxui-frontend', canMainDo: false },
|
|
68
|
+
'api-endpoint': { agent: 'backend', canMainDo: false },
|
|
69
|
+
'database-work': { agent: 'database', canMainDo: false },
|
|
70
|
+
'api-integration': { agent: 'frontend', canMainDo: false },
|
|
71
|
+
'testing-debugging': { agent: 'test-debug', canMainDo: false },
|
|
72
|
+
'planning': { agent: 'main-claude', canMainDo: true }
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Enforcement:**
|
|
77
|
+
- Added self-check checklist to CLAUDE.md
|
|
78
|
+
- Main Claude MUST complete before any work
|
|
79
|
+
- Override protection (even if user says "do it yourself")
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
### β
Solution 3: Validation Gates
|
|
84
|
+
|
|
85
|
+
**New File:** `.claude/lib/validation-gates.md`
|
|
86
|
+
|
|
87
|
+
**What it does:**
|
|
88
|
+
- Four checkpoints Main Claude MUST pass:
|
|
89
|
+
1. **Before work** - Ensure correct routing
|
|
90
|
+
2. **After agent responds** - Validate agent output
|
|
91
|
+
3. **Before reporting** - Ensure flags.json updated
|
|
92
|
+
4. **Before phase start** - Check phase readiness
|
|
93
|
+
|
|
94
|
+
**Key Benefits:**
|
|
95
|
+
- Catch errors early
|
|
96
|
+
- Ensure quality at each step
|
|
97
|
+
- Provide clear error messages
|
|
98
|
+
- Enable automatic recovery
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## π Files Changed
|
|
103
|
+
|
|
104
|
+
### New Files (3)
|
|
105
|
+
```
|
|
106
|
+
.claude/lib/
|
|
107
|
+
βββ flags-updater.md (NEW - 450 lines)
|
|
108
|
+
βββ agent-router.md (NEW - 500 lines)
|
|
109
|
+
βββ validation-gates.md (NEW - 400 lines)
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Modified Files (3)
|
|
113
|
+
```
|
|
114
|
+
.claude/
|
|
115
|
+
βββ CLAUDE.md (MODIFIED - Added self-check protocol)
|
|
116
|
+
βββ lib/README.md (MODIFIED - Added new file descriptions)
|
|
117
|
+
βββ commands/cdev.md (MODIFIED - Step 5 now mandatory flags update)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## π Expected Impact
|
|
123
|
+
|
|
124
|
+
### Metric 1: flags.json Update Rate
|
|
125
|
+
- **Before:** ~30%
|
|
126
|
+
- **After:** 100%
|
|
127
|
+
- **How:** Mandatory update in /cdev Step 5
|
|
128
|
+
|
|
129
|
+
### Metric 2: Agent Delegation Rate
|
|
130
|
+
- **Before:** ~60%
|
|
131
|
+
- **After:** 95%+
|
|
132
|
+
- **How:** Self-check protocol + work type detection
|
|
133
|
+
|
|
134
|
+
### Metric 3: User Visibility
|
|
135
|
+
- **Before:** Must run `/cstatus` manually
|
|
136
|
+
- **After:** Auto-reported after every phase
|
|
137
|
+
- **How:** Progress report in flags-updater protocol
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## π― Breaking Changes
|
|
142
|
+
|
|
143
|
+
**None** - All changes are additive:
|
|
144
|
+
- New files add protocols
|
|
145
|
+
- Existing files enhanced (not breaking)
|
|
146
|
+
- Backward compatible with v1.1.0
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## β
Migration Guide
|
|
151
|
+
|
|
152
|
+
**No migration needed** - Changes are effective immediately:
|
|
153
|
+
|
|
154
|
+
1. **For existing projects:**
|
|
155
|
+
- Templates automatically use new protocols
|
|
156
|
+
- Next `/cdev` run will use updated Step 5
|
|
157
|
+
- Main Claude will read new CLAUDE.md instructions
|
|
158
|
+
|
|
159
|
+
2. **For in-progress changes:**
|
|
160
|
+
- Continue current phase normally
|
|
161
|
+
- New protocols apply from next `/cdev` invocation
|
|
162
|
+
- flags.json will start updating correctly
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## π Testing Checklist
|
|
167
|
+
|
|
168
|
+
Before considering this release complete, verify:
|
|
169
|
+
|
|
170
|
+
- [ ] `/cdev` updates flags.json after phase completion
|
|
171
|
+
- [ ] Main Claude delegates implementation work (not doing it directly)
|
|
172
|
+
- [ ] Progress reported to user automatically
|
|
173
|
+
- [ ] Self-check protocol appears in Main Claude output
|
|
174
|
+
- [ ] Validation gates catch common errors
|
|
175
|
+
- [ ] `/cview` and `/cstatus` show accurate data
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## π Documentation Updates
|
|
180
|
+
|
|
181
|
+
### CLAUDE.md
|
|
182
|
+
- Added "Main Claude Self-Check Protocol" section
|
|
183
|
+
- Links to agent-router.md for complete routing rules
|
|
184
|
+
- Lists new lib/ files in Quick Navigation
|
|
185
|
+
|
|
186
|
+
### cdev.md
|
|
187
|
+
- Step 5 completely rewritten
|
|
188
|
+
- Now REQUIRES flags.json update
|
|
189
|
+
- Shows exact execution order
|
|
190
|
+
- Includes common mistake examples
|
|
191
|
+
|
|
192
|
+
### lib/README.md
|
|
193
|
+
- Added descriptions for 3 new files
|
|
194
|
+
- Explains purpose of each
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## π Future Enhancements (Not in v1.1.1)
|
|
199
|
+
|
|
200
|
+
**Phase 2 Candidates:**
|
|
201
|
+
- Automated testing of validation gates
|
|
202
|
+
- Progress visualization in terminal
|
|
203
|
+
- Metrics dashboard for delegation rate
|
|
204
|
+
- Agent performance profiling
|
|
205
|
+
|
|
206
|
+
**Phase 3 Candidates:**
|
|
207
|
+
- LLM-based validation (use Claude to validate Claude)
|
|
208
|
+
- Predictive time estimation
|
|
209
|
+
- Automatic recovery from common errors
|
|
210
|
+
- Multi-change parallel execution
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## π Acknowledgments
|
|
215
|
+
|
|
216
|
+
Issues identified through:
|
|
217
|
+
- Real-world usage testing
|
|
218
|
+
- User feedback on progress tracking
|
|
219
|
+
- Analysis of Main Agent behavior patterns
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## π Support
|
|
224
|
+
|
|
225
|
+
**Issues with v1.1.1?**
|
|
226
|
+
1. Check validation gate error messages
|
|
227
|
+
2. Verify flags.json exists and is valid JSON
|
|
228
|
+
3. Review Main Claude output for self-check protocol
|
|
229
|
+
4. Open issue with details
|
|
230
|
+
|
|
231
|
+
**Questions?**
|
|
232
|
+
- Read: `.claude/lib/flags-updater.md`
|
|
233
|
+
- Read: `.claude/lib/agent-router.md`
|
|
234
|
+
- Read: `.claude/lib/validation-gates.md`
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
**Version:** 1.1.1
|
|
239
|
+
**Previous:** 1.1.0
|
|
240
|
+
**Next:** TBD (based on feedback)
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## π― Quick Reference
|
|
245
|
+
|
|
246
|
+
**Problem 1: flags.json not updated**
|
|
247
|
+
β Solution: `.claude/lib/flags-updater.md`
|
|
248
|
+
β Enforced by: `/cdev` Step 5
|
|
249
|
+
|
|
250
|
+
**Problem 2: Main Agent doing work**
|
|
251
|
+
β Solution: `.claude/lib/agent-router.md`
|
|
252
|
+
β Enforced by: CLAUDE.md self-check protocol
|
|
253
|
+
|
|
254
|
+
**Both problems validated by:**
|
|
255
|
+
β `.claude/lib/validation-gates.md` (4 checkpoints)
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
**π Ready for production use!**
|
package/.claude/CLAUDE.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# CLAUDE.md
|
|
2
2
|
|
|
3
3
|
> **Navigation Hub for AI Agents**
|
|
4
|
-
> **Template Version:** 1.
|
|
5
|
-
> **Latest:**
|
|
4
|
+
> **Template Version:** 1.7.0 - Universal Multi-Agent Template (Opus 4.5)
|
|
5
|
+
> **Latest:** Incremental Testing - Milestone-based validation for high-risk tasks with round-based retry
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -72,12 +72,13 @@ Universal, framework-agnostic template for AI-assisted development.
|
|
|
72
72
|
- Level 2: `.claude/contexts/domain/{project}/README.md` (Project Overview)
|
|
73
73
|
- Level 3: `.claude/contexts/domain/{project}/best-practices/index.md` (Best Practices Registry)
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
**Implementation Logic:**
|
|
76
76
|
- `@/.claude/lib/README.md` - Implementation logic overview
|
|
77
|
-
- `@/.claude/lib/agent-executor.md` - Agent retry & escalation logic (used by /cdev)
|
|
77
|
+
- `@/.claude/lib/agent-executor.md` - Agent retry & escalation logic (used by /cdev) + π Incremental testing execution (v1.6.0)
|
|
78
78
|
- `@/.claude/lib/tdd-classifier.md` - TDD classification logic (used by /csetup)
|
|
79
|
-
- `@/.claude/lib/
|
|
80
|
-
- `@/.claude/lib/
|
|
79
|
+
- `@/.claude/lib/task-analyzer.md` - π Task analysis with milestone generation (v1.6.0)
|
|
80
|
+
- `@/.claude/lib/flags-updater.md` - Progress tracking protocol (Main Claude updates flags.json)
|
|
81
|
+
- `@/.claude/lib/agent-router.md` - Mandatory agent routing rules (enforce delegation)
|
|
81
82
|
- `@/.claude/contexts/patterns/agent-discovery.md` - Shared agent discovery flow
|
|
82
83
|
|
|
83
84
|
---
|
|
@@ -150,6 +151,20 @@ Universal, framework-agnostic template for AI-assisted development.
|
|
|
150
151
|
|
|
151
152
|
---
|
|
152
153
|
|
|
154
|
+
## π Incremental Testing (v1.6.0)
|
|
155
|
+
|
|
156
|
+
**β See:** `@/.claude/lib/detailed-guides/incremental-testing.md` for complete guide
|
|
157
|
+
|
|
158
|
+
**Quick Summary:**
|
|
159
|
+
- **Problem:** All-or-nothing testing β bugs found at scale (1000 records) β hard to debug, expensive rework
|
|
160
|
+
- **Solution:** Milestone-based validation β Test 1 record β 10 β errors β scale β catch bugs early (75% faster debug)
|
|
161
|
+
- **3 Patterns:** Backend API (4 milestones), Complex Form (3 milestones), Database Migration (3 milestones)
|
|
162
|
+
- **Round-based Retry:** 2 attempts β Main Claude intervention (hints vs ask human) β new round (unlimited)
|
|
163
|
+
- **Detection:** Auto-triggered for Risk=HIGH OR (Risk=MEDIUM + Complexityβ₯7) OR External API OR Data-intensive (~20-30% of tasks)
|
|
164
|
+
- **Benefits:** 60-70% rework reduction, 40-50% net speedup, 90% success rate with progressive confidence
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
153
168
|
## π€ Agent System
|
|
154
169
|
|
|
155
170
|
**β See:** `@/.claude/lib/detailed-guides/agent-system.md` for complete guide
|