@champpaba/claude-agent-kit 2.0.0 → 2.0.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.
Files changed (84) hide show
  1. package/.claude/CHANGELOG-v1.1.1.md +259 -259
  2. package/.claude/CLAUDE.md +196 -31
  3. package/.claude/agents/01-integration.md +106 -552
  4. package/.claude/agents/02-uxui-frontend.md +188 -850
  5. package/.claude/agents/03-test-debug.md +152 -521
  6. package/.claude/agents/04-frontend.md +169 -549
  7. package/.claude/agents/05-backend.md +132 -661
  8. package/.claude/agents/06-database.md +149 -698
  9. package/.claude/agents/_shared/README.md +57 -0
  10. package/.claude/agents/_shared/agent-boundaries.md +64 -0
  11. package/.claude/agents/_shared/documentation-policy.md +47 -0
  12. package/.claude/agents/_shared/package-manager.md +59 -0
  13. package/.claude/agents/_shared/pre-work-checklist.md +57 -0
  14. package/.claude/commands/cdev.md +36 -61
  15. package/.claude/commands/csetup.md +15 -14
  16. package/.claude/commands/cstatus.md +60 -60
  17. package/.claude/commands/cview.md +364 -364
  18. package/.claude/commands/designsetup.md +1 -1
  19. package/.claude/commands/pageplan.md +53 -177
  20. package/.claude/contexts/design/accessibility.md +611 -611
  21. package/.claude/contexts/design/box-thinking.md +1 -1
  22. package/.claude/contexts/design/index.md +1 -1
  23. package/.claude/contexts/design/layout.md +400 -400
  24. package/.claude/contexts/design/responsive.md +551 -551
  25. package/.claude/contexts/design/shadows.md +522 -522
  26. package/.claude/contexts/design/typography.md +465 -465
  27. package/.claude/contexts/domain/README.md +164 -164
  28. package/.claude/contexts/patterns/agent-coordination.md +388 -388
  29. package/.claude/contexts/patterns/agent-discovery.md +2 -2
  30. package/.claude/contexts/patterns/animation-patterns.md +1 -1
  31. package/.claude/contexts/patterns/change-workflow.md +541 -538
  32. package/.claude/contexts/patterns/code-standards.md +10 -8
  33. package/.claude/contexts/patterns/development-principles.md +513 -513
  34. package/.claude/contexts/patterns/error-handling.md +478 -478
  35. package/.claude/contexts/patterns/error-recovery.md +365 -365
  36. package/.claude/contexts/patterns/frontend-component-strategy.md +1 -1
  37. package/.claude/contexts/patterns/logging.md +424 -424
  38. package/.claude/contexts/patterns/performance-optimization.md +1 -1
  39. package/.claude/contexts/patterns/task-breakdown.md +452 -452
  40. package/.claude/contexts/patterns/task-classification.md +523 -523
  41. package/.claude/contexts/patterns/tdd-classification.md +516 -516
  42. package/.claude/contexts/patterns/testing.md +413 -413
  43. package/.claude/contexts/patterns/ui-component-consistency.md +3 -3
  44. package/.claude/contexts/patterns/validation-framework.md +779 -776
  45. package/.claude/lib/README.md +4 -4
  46. package/.claude/lib/agent-executor.md +31 -40
  47. package/.claude/lib/agent-router.md +450 -572
  48. package/.claude/lib/context-loading-protocol.md +19 -36
  49. package/.claude/lib/detailed-guides/agent-system.md +43 -121
  50. package/.claude/lib/detailed-guides/taskmaster-analysis.md +1 -1
  51. package/.claude/lib/document-loader.md +22 -25
  52. package/.claude/lib/flags-updater.md +461 -469
  53. package/.claude/lib/tdd-classifier.md +345 -345
  54. package/.claude/lib/validation-gates.md +484 -484
  55. package/.claude/settings.local.json +42 -42
  56. package/.claude/templates/STYLE_GUIDE.template.md +1 -1
  57. package/.claude/templates/context-template.md +45 -45
  58. package/.claude/templates/design-context-template.md +1 -1
  59. package/.claude/templates/flags-template.json +42 -42
  60. package/.claude/templates/phases-sections/accessibility-test.md +17 -17
  61. package/.claude/templates/phases-sections/api-design.md +37 -37
  62. package/.claude/templates/phases-sections/backend-tests.md +16 -16
  63. package/.claude/templates/phases-sections/backend.md +37 -37
  64. package/.claude/templates/phases-sections/business-logic-validation.md +16 -16
  65. package/.claude/templates/phases-sections/component-tests.md +17 -17
  66. package/.claude/templates/phases-sections/contract-backend.md +16 -16
  67. package/.claude/templates/phases-sections/contract-frontend.md +16 -16
  68. package/.claude/templates/phases-sections/database.md +35 -35
  69. package/.claude/templates/phases-sections/e2e-tests.md +16 -16
  70. package/.claude/templates/phases-sections/fix-implementation.md +17 -17
  71. package/.claude/templates/phases-sections/frontend-integration.md +18 -18
  72. package/.claude/templates/phases-sections/frontend-mockup.md +126 -123
  73. package/.claude/templates/phases-sections/manual-flow-test.md +15 -15
  74. package/.claude/templates/phases-sections/manual-ux-test.md +16 -16
  75. package/.claude/templates/phases-sections/refactor-implementation.md +17 -17
  76. package/.claude/templates/phases-sections/refactor.md +16 -16
  77. package/.claude/templates/phases-sections/regression-tests.md +15 -15
  78. package/.claude/templates/phases-sections/responsive-test.md +16 -16
  79. package/.claude/templates/phases-sections/script-implementation.md +43 -43
  80. package/.claude/templates/phases-sections/test-coverage.md +16 -16
  81. package/.claude/templates/phases-sections/user-approval.md +14 -14
  82. package/LICENSE +21 -21
  83. package/README.md +511 -133
  84. 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!**