@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.
- package/.claude/CHANGELOG-v1.1.1.md +259 -259
- package/.claude/CLAUDE.md +196 -31
- package/.claude/agents/01-integration.md +106 -552
- package/.claude/agents/02-uxui-frontend.md +188 -850
- package/.claude/agents/03-test-debug.md +152 -521
- package/.claude/agents/04-frontend.md +169 -549
- package/.claude/agents/05-backend.md +132 -661
- package/.claude/agents/06-database.md +149 -698
- package/.claude/agents/_shared/README.md +57 -0
- package/.claude/agents/_shared/agent-boundaries.md +64 -0
- package/.claude/agents/_shared/documentation-policy.md +47 -0
- package/.claude/agents/_shared/package-manager.md +59 -0
- package/.claude/agents/_shared/pre-work-checklist.md +57 -0
- package/.claude/commands/cdev.md +36 -61
- package/.claude/commands/csetup.md +15 -14
- package/.claude/commands/cstatus.md +60 -60
- package/.claude/commands/cview.md +364 -364
- package/.claude/commands/designsetup.md +1 -1
- package/.claude/commands/pageplan.md +53 -177
- package/.claude/contexts/design/accessibility.md +611 -611
- package/.claude/contexts/design/box-thinking.md +1 -1
- package/.claude/contexts/design/index.md +1 -1
- 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 +2 -2
- package/.claude/contexts/patterns/animation-patterns.md +1 -1
- package/.claude/contexts/patterns/change-workflow.md +541 -538
- package/.claude/contexts/patterns/code-standards.md +10 -8
- 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/frontend-component-strategy.md +1 -1
- package/.claude/contexts/patterns/logging.md +424 -424
- package/.claude/contexts/patterns/performance-optimization.md +1 -1
- 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/ui-component-consistency.md +3 -3
- package/.claude/contexts/patterns/validation-framework.md +779 -776
- package/.claude/lib/README.md +4 -4
- package/.claude/lib/agent-executor.md +31 -40
- package/.claude/lib/agent-router.md +450 -572
- package/.claude/lib/context-loading-protocol.md +19 -36
- package/.claude/lib/detailed-guides/agent-system.md +43 -121
- package/.claude/lib/detailed-guides/taskmaster-analysis.md +1 -1
- package/.claude/lib/document-loader.md +22 -25
- package/.claude/lib/flags-updater.md +461 -469
- 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/STYLE_GUIDE.template.md +1 -1
- package/.claude/templates/context-template.md +45 -45
- package/.claude/templates/design-context-template.md +1 -1
- package/.claude/templates/flags-template.json +42 -42
- 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/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 +126 -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/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 +511 -133
- package/package.json +1 -1
package/.claude/lib/README.md
CHANGED
|
@@ -16,11 +16,11 @@ Used by `/csetup` to automatically determine which phases require TDD workflow
|
|
|
16
16
|
**`flags-updater.md`** - Progress tracking protocol
|
|
17
17
|
Ensures Main Claude updates flags.json after EVERY phase completion. Provides helper functions for extracting files, tasks, and calculating duration.
|
|
18
18
|
|
|
19
|
-
**`agent-router.md`** -
|
|
20
|
-
|
|
19
|
+
**`agent-router.md`** - Agent routing rules
|
|
20
|
+
Defines agent boundaries. Main Claude delegates implementation work to specialized agents. Includes work type detection patterns and self-check protocol.
|
|
21
21
|
|
|
22
22
|
**`validation-gates.md`** - Validation checkpoints
|
|
23
|
-
Four validation gates that Main Claude
|
|
23
|
+
Four validation gates that Main Claude passes: before work, after agent responds, before reporting, and before phase start. Ensures quality and correctness at each step.
|
|
24
24
|
|
|
25
25
|
**`task-analyzer.md`** - TaskMaster-style task analysis (v1.3.0)
|
|
26
26
|
Used by `/csetup` to analyze tasks with 6 dimensions: complexity, dependencies, risk, research, subtasks, priority. Generates intelligent phases.md with time buffers and metadata.
|
|
@@ -65,7 +65,7 @@ Complete agent system guide. Covers 6 specialist agents, Main Claude's role, sel
|
|
|
65
65
|
|
|
66
66
|
---
|
|
67
67
|
|
|
68
|
-
##
|
|
68
|
+
## ๐ Important
|
|
69
69
|
|
|
70
70
|
These are **logic specifications** (not executable code). Main Claude reads these .md files as documentation and implements the logic when running `/cdev` and `/csetup` commands.
|
|
71
71
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Agent Executor with Retry & Escalation
|
|
2
2
|
|
|
3
|
-
> **
|
|
4
|
-
> **Version:**
|
|
3
|
+
> **Resilient agent execution with automatic retry and error recovery**
|
|
4
|
+
> **Version:** 2.0.0 (Claude 4.5 Optimized)
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -136,35 +136,24 @@ What would you like to do?
|
|
|
136
136
|
|
|
137
137
|
**Check agent response for required items:**
|
|
138
138
|
|
|
139
|
-
|
|
140
|
-
- "Best Practices Loaded" โ **NEW: Must show which files were read**
|
|
141
|
-
- "Pre-Implementation Validation Report"
|
|
142
|
-
- "Ready to Implement โ"
|
|
139
|
+
WHY: Pre-work validation ensures agents loaded context before implementing. This prevents inconsistent output.
|
|
143
140
|
|
|
144
|
-
**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
- "
|
|
149
|
-
|
|
141
|
+
**All agents:**
|
|
142
|
+
| Marker | Purpose |
|
|
143
|
+
|--------|---------|
|
|
144
|
+
| "Best Practices Loaded" | Shows which files were read |
|
|
145
|
+
| "Pre-Implementation Validation Report" | Analysis before coding |
|
|
146
|
+
| "Ready to Implement โ" | Confirms context loaded |
|
|
150
147
|
|
|
151
|
-
**
|
|
152
|
-
- "Best Practices Loaded" (react, nextjs, typescript)
|
|
153
|
-
- "API Contract Verified โ"
|
|
148
|
+
**Agent-specific markers:**
|
|
154
149
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
- "Best Practices Loaded" (prisma/drizzle)
|
|
163
|
-
- "Schema Analysis โ"
|
|
164
|
-
|
|
165
|
-
**test-debug:**
|
|
166
|
-
- "Best Practices Loaded" (vitest/jest/playwright)
|
|
167
|
-
- "Test Infrastructure โ"
|
|
150
|
+
| Agent | Additional Markers |
|
|
151
|
+
|-------|-------------------|
|
|
152
|
+
| uxui-frontend | Design Foundation โ, Box Thinking โ, Component Search โ, Design Tokens โ |
|
|
153
|
+
| frontend | API Contract Verified โ |
|
|
154
|
+
| backend | Patterns Loaded โ, Existing Endpoints Search โ, TDD Workflow (if required) |
|
|
155
|
+
| database | Schema Analysis โ |
|
|
156
|
+
| test-debug | Test Infrastructure โ |
|
|
168
157
|
|
|
169
158
|
**Validation Logic:**
|
|
170
159
|
```typescript
|
|
@@ -214,9 +203,11 @@ function validateBestPracticesLoaded(agentResponse: string): boolean {
|
|
|
214
203
|
|
|
215
204
|
---
|
|
216
205
|
|
|
217
|
-
## ๐งน Temp File Cleanup
|
|
206
|
+
## ๐งน Temp File Cleanup
|
|
207
|
+
|
|
208
|
+
**After each phase completes, Main Claude cleans up non-code files:**
|
|
218
209
|
|
|
219
|
-
|
|
210
|
+
WHY: Only code/config files should remain. Reports go in response text or flags.json.
|
|
220
211
|
|
|
221
212
|
```typescript
|
|
222
213
|
function cleanupTempFiles(changeDir: string) {
|
|
@@ -252,11 +243,10 @@ function cleanupTempFiles(changeDir: string) {
|
|
|
252
243
|
cleanupTempFiles(`openspec/changes/${changeId}`)
|
|
253
244
|
```
|
|
254
245
|
|
|
255
|
-
**Rule:** Only actual code/config files should remain. Reports go in response text or flags.json.
|
|
256
246
|
|
|
257
247
|
---
|
|
258
248
|
|
|
259
|
-
##
|
|
249
|
+
## ๐ค Escalation
|
|
260
250
|
|
|
261
251
|
**When max retries exceeded, give user options:**
|
|
262
252
|
|
|
@@ -289,21 +279,22 @@ Please choose an option.
|
|
|
289
279
|
### Pre-Work Rejection
|
|
290
280
|
|
|
291
281
|
```markdown
|
|
292
|
-
|
|
282
|
+
โ ๏ธ Pre-Work Validation Incomplete
|
|
293
283
|
|
|
294
284
|
Agent: {agent-type}
|
|
295
285
|
Phase: {phase-name}
|
|
296
286
|
|
|
297
|
-
Missing
|
|
287
|
+
Missing steps:
|
|
298
288
|
- {item-1}
|
|
299
289
|
- {item-2}
|
|
300
290
|
- {item-3}
|
|
301
291
|
|
|
302
|
-
|
|
292
|
+
Please complete these steps before implementation.
|
|
293
|
+
WHY: Pre-work ensures context is loaded for quality output.
|
|
303
294
|
|
|
304
|
-
|
|
295
|
+
References:
|
|
305
296
|
- .claude/contexts/patterns/validation-framework.md โ {agent-type} section
|
|
306
|
-
- .claude/agents/{agent-file}.md โ
|
|
297
|
+
- .claude/agents/{agent-file}.md โ Pre-Work Checklist
|
|
307
298
|
|
|
308
299
|
Please provide a complete Pre-Implementation Validation Report.
|
|
309
300
|
```
|
|
@@ -396,9 +387,9 @@ This retry & escalation framework makes agent execution **robust and reliable**.
|
|
|
396
387
|
|
|
397
388
|
---
|
|
398
389
|
|
|
399
|
-
# ๐ Incremental Testing Execution
|
|
390
|
+
# ๐ Incremental Testing Execution
|
|
400
391
|
|
|
401
|
-
>
|
|
392
|
+
> Milestone-based execution with round-based retry and Main Claude intervention
|
|
402
393
|
|
|
403
394
|
---
|
|
404
395
|
|
|
@@ -650,7 +641,7 @@ function generateHints(analysis: Analysis, milestone: Milestone): string[] {
|
|
|
650
641
|
|
|
651
642
|
### Agent Output Format
|
|
652
643
|
|
|
653
|
-
Agent
|
|
644
|
+
Agent responds in this format:
|
|
654
645
|
|
|
655
646
|
```markdown
|
|
656
647
|
## Milestone ${id} Results
|