@champpaba/claude-agent-kit 2.0.0 → 2.1.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.
Files changed (87) hide show
  1. package/.claude/CLAUDE.md +253 -31
  2. package/.claude/agents/01-integration.md +106 -552
  3. package/.claude/agents/02-uxui-frontend.md +188 -850
  4. package/.claude/agents/03-test-debug.md +152 -521
  5. package/.claude/agents/04-frontend.md +169 -549
  6. package/.claude/agents/05-backend.md +132 -661
  7. package/.claude/agents/06-database.md +149 -698
  8. package/.claude/agents/_shared/README.md +57 -0
  9. package/.claude/agents/_shared/agent-boundaries.md +64 -0
  10. package/.claude/agents/_shared/documentation-policy.md +47 -0
  11. package/.claude/agents/_shared/package-manager.md +59 -0
  12. package/.claude/agents/_shared/pre-work-checklist.md +57 -0
  13. package/.claude/commands/cdev.md +36 -61
  14. package/.claude/commands/csetup.md +90 -14
  15. package/.claude/commands/cstatus.md +153 -60
  16. package/.claude/commands/cview.md +364 -364
  17. package/.claude/commands/designsetup.md +1 -1
  18. package/.claude/commands/pageplan.md +53 -177
  19. package/.claude/commands/pstatus.md +431 -0
  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/PROJECT_STATUS.template.yml +105 -0
  84. package/README.md +103 -1115
  85. package/lib/init.js +30 -2
  86. package/package.json +3 -2
  87. package/.claude/CHANGELOG-v1.1.1.md +0 -259
@@ -1,60 +1,153 @@
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 (with project context)
4
+ category: Multi-Agent
5
+ tags: [status, progress, quick]
6
+ ---
7
+
8
+ ## Usage
9
+
10
+ ```bash
11
+ /cstatus {change-id}
12
+ /cstatus # Shows project status only (no change-id)
13
+ ```
14
+
15
+ ## What It Does
16
+
17
+ Shows quick progress summary:
18
+ - **Project context** (from PROJECT_STATUS.yml if exists)
19
+ - Progress percentage with bar
20
+ - Current phase
21
+ - Time spent/remaining
22
+ - Quick stats
23
+
24
+ ---
25
+
26
+ ## Step 1: Show Project Context (v2.1.0)
27
+
28
+ ```typescript
29
+ const projectStatusPath = 'PROJECT_STATUS.yml'
30
+
31
+ if (fileExists(projectStatusPath)) {
32
+ const projectStatus = parseYaml(Read(projectStatusPath))
33
+
34
+ output(`
35
+ 📊 Project Status
36
+ ├─ Focus: ${projectStatus.current_focus?.description || 'Not set'}
37
+ ├─ Active change: ${projectStatus.current_focus?.active_change || 'None'}
38
+ ├─ Blockers: ${projectStatus.blockers?.length || 0}
39
+ ├─ Infra: ${summarizeInfraStatus(projectStatus.infrastructure)}
40
+ └─ Updated: ${projectStatus.last_updated}
41
+ `)
42
+
43
+ // Show blockers if any
44
+ if (projectStatus.blockers?.length > 0) {
45
+ output(`
46
+ 🚧 Active Blockers:
47
+ ${projectStatus.blockers.map(b => ` - ${b.id}: ${b.description}`).join('\n')}
48
+ `)
49
+ }
50
+ }
51
+
52
+ // If no change-id provided, stop here
53
+ if (!changeId) {
54
+ output(`
55
+ Commands:
56
+ → Update project status: /pstatus
57
+ → View change status: /cstatus {change-id}
58
+ `)
59
+ return
60
+ }
61
+ ```
62
+
63
+ ---
64
+
65
+ ## Step 2: Show Change Status
66
+
67
+ ```typescript
68
+ // Read change flags
69
+ const flagsPath = `openspec/changes/${changeId}/.claude/flags.json`
70
+
71
+ if (!fileExists(flagsPath)) {
72
+ return output(`❌ Change ${changeId} not found or not set up. Run /csetup ${changeId} first.`)
73
+ }
74
+
75
+ const flags = JSON.parse(Read(flagsPath))
76
+ ```
77
+
78
+ ## Output Format
79
+
80
+ ```
81
+ 📊 Project Status
82
+ ├─ Focus: Building authentication system
83
+ ├─ Active change: auth-system
84
+ ├─ Blockers: 1
85
+ ├─ Infra: DB ✅ | API ✅ | Tunnel ⏳
86
+ └─ Updated: 2025-11-30
87
+
88
+ 🚧 Active Blockers:
89
+ - domain-config: Need domain for Cloudflare public routes
90
+
91
+ ─────────────────────────────────────────
92
+
93
+ 📦 CHANGE-{id}: {type} | {template}
94
+
95
+ Progress: [████████░░] 64% (7/11 phases)
96
+
97
+ Current Phase: #8 Refactor (test-debug)
98
+ ├─ Started: 14:15 (15 minutes ago)
99
+ ├─ Estimated: 20 minutes
100
+ └─ Status: in_progress
101
+
102
+ ✅ Completed: 7 phases
103
+ 🔄 In Progress: 1 phase
104
+ ⏳ Remaining: 3 phases
105
+
106
+ ⏱️ Time:
107
+ ├─ Spent: 2h 55min (estimated: 3h 15min)
108
+ ├─ Remaining: ~35 minutes
109
+ └─ Efficiency: 111% (ahead of estimate)
110
+
111
+ 📈 Stats:
112
+ ├─ Tests: 12 passed, 0 failed (75% coverage)
113
+ ├─ Issues: 2 found, 2 fixed, 0 remaining
114
+ └─ Files: 4 created, 2 modified
115
+
116
+ 🎯 Next Steps:
117
+ 1. Complete refactoring (20 min)
118
+ 2. Test coverage report (5 min)
119
+ 3. Documentation (15 min)
120
+
121
+ Commands:
122
+ → Update project status: /pstatus
123
+ → Detailed view: /cview {change-id}
124
+ → Continue dev: /cdev {change-id}
125
+ ```
126
+
127
+ ---
128
+
129
+ ## Helper: summarizeInfraStatus()
130
+
131
+ ```typescript
132
+ function summarizeInfraStatus(infrastructure) {
133
+ if (!infrastructure) return 'Not configured'
134
+
135
+ return Object.entries(infrastructure)
136
+ .map(([service, info]) => {
137
+ const icon = info.status === 'healthy' ? '✅' :
138
+ info.status === 'degraded' ? '⚠️' :
139
+ info.status === 'down' ? '❌' :
140
+ info.status === 'waiting' ? '⏳' : '❓'
141
+ return `${service} ${icon}`
142
+ })
143
+ .join(' | ')
144
+ }
145
+ ```
146
+
147
+ ---
148
+
149
+ ## Implementation Notes
150
+
151
+ 1. **Always show project status first** (if PROJECT_STATUS.yml exists)
152
+ 2. **Then show change status** (if change-id provided)
153
+ 3. **Include /pstatus in commands** to encourage keeping status updated