@champpaba/claude-agent-kit 1.6.0 → 1.6.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 (64) hide show
  1. package/.claude/CHANGELOG-v1.1.1.md +259 -259
  2. package/.claude/CLAUDE.md +21 -6
  3. package/.claude/commands/agentsetup.md +1464 -1464
  4. package/.claude/commands/csetup.md +82 -3
  5. package/.claude/commands/cstatus.md +60 -60
  6. package/.claude/commands/cview.md +364 -364
  7. package/.claude/commands/psetup.md +101 -101
  8. package/.claude/contexts/design/accessibility.md +611 -611
  9. package/.claude/contexts/design/layout.md +400 -400
  10. package/.claude/contexts/design/responsive.md +551 -551
  11. package/.claude/contexts/design/shadows.md +522 -522
  12. package/.claude/contexts/design/typography.md +465 -465
  13. package/.claude/contexts/domain/README.md +164 -164
  14. package/.claude/contexts/patterns/agent-coordination.md +388 -388
  15. package/.claude/contexts/patterns/agent-discovery.md +182 -182
  16. package/.claude/contexts/patterns/change-workflow.md +538 -538
  17. package/.claude/contexts/patterns/code-standards.md +515 -515
  18. package/.claude/contexts/patterns/development-principles.md +513 -513
  19. package/.claude/contexts/patterns/error-handling.md +478 -478
  20. package/.claude/contexts/patterns/error-recovery.md +365 -365
  21. package/.claude/contexts/patterns/logging.md +424 -424
  22. package/.claude/contexts/patterns/task-breakdown.md +452 -452
  23. package/.claude/contexts/patterns/task-classification.md +523 -523
  24. package/.claude/contexts/patterns/tdd-classification.md +516 -516
  25. package/.claude/contexts/patterns/testing.md +413 -413
  26. package/.claude/contexts/patterns/validation-framework.md +776 -776
  27. package/.claude/lib/agent-executor.md +449 -0
  28. package/.claude/lib/agent-router.md +572 -572
  29. package/.claude/lib/detailed-guides/incremental-testing.md +460 -0
  30. package/.claude/lib/flags-updater.md +469 -469
  31. package/.claude/lib/task-analyzer.md +398 -2
  32. package/.claude/lib/tdd-classifier.md +345 -345
  33. package/.claude/lib/validation-gates.md +484 -484
  34. package/.claude/settings.local.json +42 -42
  35. package/.claude/templates/context-template.md +45 -45
  36. package/.claude/templates/flags-template.json +42 -42
  37. package/.claude/templates/phase-templates.json +173 -124
  38. package/.claude/templates/phases-sections/accessibility-test.md +17 -17
  39. package/.claude/templates/phases-sections/api-design.md +37 -37
  40. package/.claude/templates/phases-sections/backend-tests.md +16 -16
  41. package/.claude/templates/phases-sections/backend.md +37 -37
  42. package/.claude/templates/phases-sections/business-logic-validation.md +16 -16
  43. package/.claude/templates/phases-sections/component-tests.md +17 -17
  44. package/.claude/templates/phases-sections/contract-backend.md +16 -16
  45. package/.claude/templates/phases-sections/contract-frontend.md +16 -16
  46. package/.claude/templates/phases-sections/database.md +35 -35
  47. package/.claude/templates/phases-sections/documentation.md +17 -17
  48. package/.claude/templates/phases-sections/e2e-tests.md +16 -16
  49. package/.claude/templates/phases-sections/fix-implementation.md +17 -17
  50. package/.claude/templates/phases-sections/frontend-integration.md +18 -18
  51. package/.claude/templates/phases-sections/frontend-mockup.md +123 -123
  52. package/.claude/templates/phases-sections/manual-flow-test.md +15 -15
  53. package/.claude/templates/phases-sections/manual-ux-test.md +16 -16
  54. package/.claude/templates/phases-sections/refactor-implementation.md +17 -17
  55. package/.claude/templates/phases-sections/refactor.md +16 -16
  56. package/.claude/templates/phases-sections/regression-tests.md +15 -15
  57. package/.claude/templates/phases-sections/report.md +16 -16
  58. package/.claude/templates/phases-sections/responsive-test.md +16 -16
  59. package/.claude/templates/phases-sections/script-implementation.md +43 -43
  60. package/.claude/templates/phases-sections/test-coverage.md +16 -16
  61. package/.claude/templates/phases-sections/user-approval.md +14 -14
  62. package/LICENSE +21 -21
  63. package/README.md +125 -39
  64. package/package.json +1 -1
@@ -201,6 +201,10 @@ for (const task of tasks) {
201
201
  // Sort by priority (CRITICAL → HIGH → MEDIUM → LOW)
202
202
  analyzedTasks.sort((a, b) => b.priority.score - a.priority.score)
203
203
 
204
+ // Calculate testing strategy stats (NEW in v1.4.0)
205
+ const incrementalTasks = analyzedTasks.filter(t => t.testingStrategy?.type === 'incremental')
206
+ const totalMilestones = incrementalTasks.reduce((sum, t) => sum + (t.testingStrategy?.milestones?.length || 0), 0)
207
+
204
208
  // Store for phases.md generation
205
209
  const taskAnalysis = {
206
210
  tasks: analyzedTasks,
@@ -219,7 +223,11 @@ const taskAnalysis = {
219
223
  },
220
224
  researchRequired: analyzedTasks.filter(t => t.research?.required).length,
221
225
  subtasksExpanded: analyzedTasks.filter(t => t.subtasks.length > 0).length,
222
- averageComplexity: (analyzedTasks.reduce((sum, t) => sum + t.complexity.score, 0) / analyzedTasks.length).toFixed(1)
226
+ averageComplexity: (analyzedTasks.reduce((sum, t) => sum + t.complexity.score, 0) / analyzedTasks.length).toFixed(1),
227
+ // NEW: Incremental Testing stats
228
+ incrementalTesting: incrementalTasks.length,
229
+ standardTesting: analyzedTasks.length - incrementalTasks.length,
230
+ totalMilestones: totalMilestones
223
231
  }
224
232
  }
225
233
  ```
@@ -244,6 +252,13 @@ const taskAnalysis = {
244
252
  ⚠️ MEDIUM risk: 3 tasks
245
253
  ✅ LOW risk: 3 tasks
246
254
 
255
+ 🔄 Testing Strategy (NEW in v1.4.0):
256
+ 🔄 Incremental: 3 tasks (11 milestones total)
257
+ → Payment integration (4 milestones)
258
+ → Auth system (4 milestones)
259
+ → User data migration (3 milestones)
260
+ ▶️ Standard: 5 tasks
261
+
247
262
  🔬 Research Required: 2 tasks
248
263
  - React Query v5 migration (15 min)
249
264
  - Stripe payment best practices (15 min)
@@ -360,7 +375,7 @@ const allPhases = [...researchPhases, ...phaseSections]
360
375
 
361
376
  ---
362
377
 
363
- ## 📊 Task Analysis Summary (v1.3.0 - TaskMaster-style)
378
+ ## 📊 Task Analysis Summary (v1.4.0 - Incremental Testing)
364
379
 
365
380
  **Analyzed Tasks:** {taskAnalysis.summary.total}
366
381
  **Average Complexity:** {taskAnalysis.summary.averageComplexity}/10
@@ -376,6 +391,10 @@ const allPhases = [...researchPhases, ...phaseSections]
376
391
  - ⚠️ MEDIUM risk: {taskAnalysis.summary.risk.medium} tasks
377
392
  - ✅ LOW risk: {taskAnalysis.summary.risk.low} tasks
378
393
 
394
+ **Testing Strategy:** (NEW in v1.4.0)
395
+ - 🔄 Incremental: {taskAnalysis.summary.incrementalTesting} tasks ({taskAnalysis.summary.totalMilestones} milestones)
396
+ - ▶️ Standard: {taskAnalysis.summary.standardTesting} tasks
397
+
379
398
  **Research Phases:** {taskAnalysis.summary.researchRequired} added
380
399
  **Subtasks Expanded:** {taskAnalysis.summary.subtasksExpanded} tasks
381
400
 
@@ -435,7 +454,10 @@ ${allPhases.map((phaseSection, index) => {
435
454
  )
436
455
 
437
456
  let metadata = ''
457
+ let milestonesSection = ''
458
+
438
459
  if (matchingTask) {
460
+ // Standard metadata
439
461
  metadata = `
440
462
  **Task Metadata (TaskMaster Analysis):**
441
463
  - **Complexity:** ${matchingTask.complexity.score}/10 (${matchingTask.complexity.level})
@@ -452,9 +474,66 @@ ${matchingTask.risk.mitigation.length > 0 ? ` - Mitigation:\n${matchingTask.ris
452
474
 
453
475
  ${matchingTask.subtasks.length > 0 ? `**Subtasks:**\n${matchingTask.subtasks.map(st => ` - ${st.id}: ${st.description} (${st.estimatedTime} min)`).join('\n')}\n` : ''}
454
476
  `
477
+
478
+ // NEW: Incremental Testing Milestones (v1.4.0)
479
+ if (matchingTask.testingStrategy?.type === 'incremental' && matchingTask.testingStrategy.milestones) {
480
+ metadata += `
481
+ **Testing Strategy:** 🔄 INCREMENTAL
482
+ - **Reason:** ${matchingTask.testingStrategy.reason}
483
+ - **Total Milestones:** ${matchingTask.testingStrategy.milestones.length}
484
+
485
+ `
486
+
487
+ // Generate milestone subsections
488
+ milestonesSection = matchingTask.testingStrategy.milestones.map(milestone => `
489
+ #### Milestone ${milestone.id}/${matchingTask.testingStrategy.milestones.length}: ${milestone.name}
490
+
491
+ **Test Scope:** ${milestone.testScope}
492
+ **Estimated Time:** ${milestone.estimatedTime} min
493
+ **Retry Limit:** ${milestone.retryLimit} attempts
494
+
495
+ **Exit Criteria:**
496
+ ${milestone.exitCriteria.map(criterion => `- [ ] ${criterion}`).join('\n')}
497
+
498
+ **Instructions for Agent:**
499
+ 1. **Implement:** ${milestone.name}
500
+ 2. **Test:** ${milestone.testScope}
501
+ 3. **Validate:** Check ALL exit criteria above
502
+ 4. **Report results in this format:**
503
+
504
+ \`\`\`
505
+ ## Milestone ${milestone.id} Results
506
+
507
+ **Implementation Summary:**
508
+ [Brief description of what was implemented]
509
+
510
+ **Test Results:**
511
+ ${milestone.exitCriteria.map(criterion => `- [ ] ${criterion} - [PASS/FAIL] - [Brief explanation]`).join('\n')}
512
+
513
+ **Issues Found (if any):**
514
+ [List any issues encountered]
515
+
516
+ **Conclusion:**
517
+ [PASS → Ready for Milestone ${milestone.id + 1}]
518
+ [FAIL → Need to fix [X] before retry]
519
+ \`\`\`
520
+
521
+ 5. **IF FAILED:** Debug issues → Retry (max ${milestone.retryLimit} attempts)
522
+ 6. **IF ALL RETRIES FAIL:** Escalate to Main Claude for guidance
523
+ 7. **IF PASSED:** Proceed to ${milestone.id < matchingTask.testingStrategy.milestones.length ? `Milestone ${milestone.id + 1}` : 'next phase'}
524
+
525
+ ---
526
+ `).join('\n')
527
+ } else if (matchingTask.testingStrategy?.type === 'standard') {
528
+ metadata += `
529
+ **Testing Strategy:** ▶️ STANDARD
530
+ - **Reason:** ${matchingTask.testingStrategy.reason}
531
+
532
+ `
533
+ }
455
534
  }
456
535
 
457
- return `${phaseSection}\n${metadata}`
536
+ return `${phaseSection}\n${metadata}${milestonesSection}`
458
537
  }).join('\n---\n\n')}
459
538
 
460
539
  ---
@@ -1,60 +1,60 @@
1
- ---
2
- name: Change Status
3
- description: Quick progress status for a change
4
- category: Multi-Agent
5
- tags: [status, progress, quick]
6
- ---
7
-
8
- ## Usage
9
-
10
- ```bash
11
- /cstatus {change-id}
12
- ```
13
-
14
- ## What It Does
15
-
16
- Shows quick progress summary:
17
- - Progress percentage with bar
18
- - Current phase
19
- - Time spent/remaining
20
- - Quick stats
21
-
22
- ## Output Format
23
-
24
- ```
25
- 📊 CHANGE-{id}: {type} | {template}
26
-
27
- Progress: [████████░░] 64% (7/11 phases)
28
-
29
- Current Phase: #8 Refactor (test-debug)
30
- ├─ Started: 14:15 (15 minutes ago)
31
- ├─ Estimated: 20 minutes
32
- └─ Status: in_progress
33
-
34
- ✅ Completed: 7 phases
35
- 🔄 In Progress: 1 phase
36
- ⏳ Remaining: 3 phases
37
-
38
- ⏱️ Time:
39
- ├─ Spent: 2h 55min (estimated: 3h 15min)
40
- ├─ Remaining: ~35 minutes
41
- └─ Efficiency: 111% (ahead of estimate)
42
-
43
- 📈 Stats:
44
- ├─ Tests: 12 passed, 0 failed (75% coverage)
45
- ├─ Issues: 2 found, 2 fixed, 0 remaining
46
- └─ Files: 4 created, 2 modified
47
-
48
- 🎯 Next Steps:
49
- 1. Complete refactoring (20 min)
50
- 2. Test coverage report (5 min)
51
- 3. Documentation (15 min)
52
-
53
- Commands:
54
- → Detailed view: /cview {change-id}
55
- → Continue dev: /cdev {change-id}
56
- ```
57
-
58
- ## Implementation
59
-
60
- Read `openspec/changes/{change-id}/.claude/flags.json` and format output using helper functions.
1
+ ---
2
+ name: Change Status
3
+ description: Quick progress status for a change
4
+ category: Multi-Agent
5
+ tags: [status, progress, quick]
6
+ ---
7
+
8
+ ## Usage
9
+
10
+ ```bash
11
+ /cstatus {change-id}
12
+ ```
13
+
14
+ ## What It Does
15
+
16
+ Shows quick progress summary:
17
+ - Progress percentage with bar
18
+ - Current phase
19
+ - Time spent/remaining
20
+ - Quick stats
21
+
22
+ ## Output Format
23
+
24
+ ```
25
+ 📊 CHANGE-{id}: {type} | {template}
26
+
27
+ Progress: [████████░░] 64% (7/11 phases)
28
+
29
+ Current Phase: #8 Refactor (test-debug)
30
+ ├─ Started: 14:15 (15 minutes ago)
31
+ ├─ Estimated: 20 minutes
32
+ └─ Status: in_progress
33
+
34
+ ✅ Completed: 7 phases
35
+ 🔄 In Progress: 1 phase
36
+ ⏳ Remaining: 3 phases
37
+
38
+ ⏱️ Time:
39
+ ├─ Spent: 2h 55min (estimated: 3h 15min)
40
+ ├─ Remaining: ~35 minutes
41
+ └─ Efficiency: 111% (ahead of estimate)
42
+
43
+ 📈 Stats:
44
+ ├─ Tests: 12 passed, 0 failed (75% coverage)
45
+ ├─ Issues: 2 found, 2 fixed, 0 remaining
46
+ └─ Files: 4 created, 2 modified
47
+
48
+ 🎯 Next Steps:
49
+ 1. Complete refactoring (20 min)
50
+ 2. Test coverage report (5 min)
51
+ 3. Documentation (15 min)
52
+
53
+ Commands:
54
+ → Detailed view: /cview {change-id}
55
+ → Continue dev: /cdev {change-id}
56
+ ```
57
+
58
+ ## Implementation
59
+
60
+ Read `openspec/changes/{change-id}/.claude/flags.json` and format output using helper functions.