@champpaba/claude-agent-kit 2.5.0 โ†’ 2.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.
Files changed (32) hide show
  1. package/.claude/CLAUDE.md +103 -58
  2. package/.claude/agents/02-uxui-frontend.md +5 -6
  3. package/.claude/agents/07-ux-tester.md +407 -0
  4. package/.claude/commands/cdev.md +113 -8
  5. package/.claude/commands/csetup.md +86 -28
  6. package/.claude/commands/designsetup.md +171 -48
  7. package/.claude/commands/extract.md +382 -668
  8. package/.claude/commands/pageplan.md +43 -27
  9. package/.claude/contexts/design/box-thinking.md +4 -4
  10. package/.claude/contexts/design/color-theory.md +5 -5
  11. package/.claude/contexts/design/index.md +9 -9
  12. package/.claude/contexts/design/spacing.md +4 -4
  13. package/.claude/contexts/patterns/agent-discovery.md +1 -1
  14. package/.claude/contexts/patterns/animation-patterns.md +3 -3
  15. package/.claude/contexts/patterns/ui-component-consistency.md +3 -3
  16. package/.claude/lib/README.md +1 -1
  17. package/.claude/lib/agent-executor.md +223 -0
  18. package/.claude/lib/context-loading-protocol.md +5 -6
  19. package/.claude/lib/detailed-guides/agent-system.md +4 -4
  20. package/.claude/lib/detailed-guides/best-practices-system.md +5 -4
  21. package/.claude/lib/detailed-guides/context-optimization.md +21 -22
  22. package/.claude/lib/detailed-guides/design-system.md +6 -5
  23. package/.claude/lib/detailed-guides/page-planning.md +6 -6
  24. package/.claude/lib/document-loader.md +32 -47
  25. package/.claude/lib/task-analyzer.md +194 -1
  26. package/.claude/templates/PROJECT_STATUS.template.yml +1 -1
  27. package/.claude/templates/STYLE_GUIDE.template.md +7 -7
  28. package/.claude/templates/design-context-template.md +22 -29
  29. package/.claude/templates/page-plan-example.md +9 -9
  30. package/.claude/templates/phases-sections/ux-testing.md +164 -0
  31. package/README.md +3 -1
  32. package/package.json +1 -1
@@ -8,8 +8,8 @@
8
8
  ## ๐ŸŽจ Design System Overview
9
9
 
10
10
  **Status:** {DESIGN_SYSTEM_STATUS}
11
- - โœ… Complete (STYLE_GUIDE.md + STYLE_TOKENS.json exist)
12
- - โš ๏ธ Partial (STYLE_GUIDE.md only)
11
+ - โœ… Complete (data.yaml + README.md exist)
12
+ - โš ๏ธ Partial (only one file exists)
13
13
  - โŒ None (needs /designsetup)
14
14
 
15
15
  **Generated from:**
@@ -24,20 +24,20 @@
24
24
 
25
25
  ### Primary Reference (Lightweight)
26
26
  ```
27
- โœ… STYLE_TOKENS.json (~500 tokens)
28
- design-system/STYLE_TOKENS.json
27
+ โœ… data.yaml (~800 tokens)
28
+ design-system/data.yaml
29
29
 
30
30
  Contains: Colors, spacing, typography, shadows, borders, animations
31
31
  Use: Quick reference for all commands and agents
32
32
  ```
33
33
 
34
- ### Full Reference (Optional - Load on Demand)
34
+ ### Human-Readable Summary (For Humans Only)
35
35
  ```
36
- ๐Ÿ“– STYLE_GUIDE.md (~5000 tokens)
37
- design-system/STYLE_GUIDE.md
36
+ ๐Ÿ“– README.md (~100 tokens)
37
+ design-system/README.md
38
38
 
39
- Contains: 17 sections including component examples, layout patterns
40
- Use: Only load specific sections when needed
39
+ Contains: Summary of design system for human review
40
+ Use: Humans reviewing design, NOT for agents
41
41
  ```
42
42
 
43
43
  ### Fallback (Universal Principles)
@@ -139,13 +139,13 @@ Read: .claude/contexts/domain/{PROJECT_NAME}/design-context.md
139
139
  Tokens: ~1000
140
140
  ```
141
141
 
142
- **Step 2: Load STYLE_TOKENS.json (if needed)**
142
+ **Step 2: Load data.yaml (if needed)**
143
143
  ```
144
- Read: design-system/STYLE_TOKENS.json
145
- Tokens: ~500
144
+ Read: design-system/data.yaml
145
+ Tokens: ~800
146
146
  ```
147
147
 
148
- **Total: ~1500 tokens (vs 5000+ for full STYLE_GUIDE.md)**
148
+ **Total: ~1500 tokens (efficient loading)**
149
149
 
150
150
  ---
151
151
 
@@ -158,22 +158,16 @@ Tokens: ~500
158
158
  - File paths
159
159
  - Critical rules
160
160
 
161
- 2. **Read STYLE_TOKENS.json**
161
+ 2. **Read data.yaml**
162
162
  - Full design tokens
163
163
  - Component library info
164
164
  - Usage patterns
165
165
 
166
- 3. **Optional: Read STYLE_GUIDE.md sections**
167
- - Only load sections needed for current task
168
- - Example: Component Styles, Layout Patterns
169
- - Tokens: ~2000 (selective loading)
170
-
171
- 4. **Report:**
166
+ 3. **Report:**
172
167
  ```
173
168
  โœ… Design Context Loaded
174
169
  ๐Ÿ“ design-context.md โœ“
175
- ๐Ÿ“ฆ STYLE_TOKENS.json โœ“
176
- ๐Ÿ“– STYLE_GUIDE.md (Section 6: Component Styles) โœ“
170
+ ๐Ÿ“ฆ data.yaml โœ“
177
171
 
178
172
  Design Tokens Extracted:
179
173
  - Primary: {PRIMARY_COLOR}
@@ -187,9 +181,8 @@ Tokens: ~500
187
181
 
188
182
  | Approach | Tokens | Speed | Recommended |
189
183
  |----------|--------|-------|-------------|
190
- | **Old: Load full STYLE_GUIDE.md** | ~5000 | Slow | โŒ |
191
- | **New: design-context.md + STYLE_TOKENS.json** | ~1500 | Fast | โœ… |
192
- | **Agent: Selective STYLE_GUIDE sections** | ~3500 | Medium | โœ… (when needed) |
184
+ | **design-context.md + data.yaml** | ~1800 | Fast | โœ… |
185
+ | **data.yaml only** | ~800 | Very Fast | โœ… (quick tasks) |
193
186
 
194
187
  ---
195
188
 
@@ -198,15 +191,15 @@ Tokens: ~500
198
191
  Run `/csetup` or `/designsetup` again when:
199
192
  - โœ… Design tokens change (new colors, spacing)
200
193
  - โœ… Component library changes (shadcn โ†’ Chakra UI)
201
- - โœ… STYLE_GUIDE.md updated
194
+ - โœ… data.yaml updated
202
195
  - โœ… New project phase (rebrand, redesign)
203
196
 
204
197
  ---
205
198
 
206
199
  ## ๐Ÿ“– References
207
200
 
208
- - **Full Style Guide:** `design-system/STYLE_GUIDE.md`
209
- - **Design Tokens:** `design-system/STYLE_TOKENS.json`
201
+ - **Design Tokens:** `design-system/data.yaml` (agent reads this)
202
+ - **Human Summary:** `design-system/README.md` (for humans)
210
203
  - **Universal Design:** `.claude/contexts/design/`
211
204
  - **Best Practices:** `.claude/contexts/domain/{PROJECT_NAME}/best-practices/`
212
205
 
@@ -214,7 +207,7 @@ Run `/csetup` or `/designsetup` again when:
214
207
 
215
208
  **๐ŸŽฏ Next Steps for Agents:**
216
209
  1. Load design-context.md (~1K tokens) โœ…
217
- 2. Load STYLE_TOKENS.json (~500 tokens) โœ…
210
+ 2. Load data.yaml (~800 tokens) โœ…
218
211
  3. Extract design tokens โœ…
219
212
  4. Report loaded context โœ…
220
213
  5. Begin implementation with design system awareness โœ…
@@ -1,6 +1,6 @@
1
1
  # Page Plan: Landing Page (EXAMPLE)
2
2
  > This is an example template showing the structure of page-plan.md
3
- > Generated from: proposal.md, prd.md, project_brief.md, STYLE_GUIDE.md
3
+ > Generated from: proposal.md, prd.md, project_brief.md, data.yaml
4
4
  > Change ID: landing-page
5
5
 
6
6
  ---
@@ -562,18 +562,18 @@ _Length: 75 words_
562
562
 
563
563
  ## 5. Design Notes
564
564
 
565
- **Follow STYLE_GUIDE.md for all design decisions:**
565
+ **Follow data.yaml for all design decisions:**
566
566
 
567
- - **Primary Color:** `#0d7276` (from STYLE_GUIDE.md Section 3)
568
- - **Font Family:** `Prompt` (from STYLE_GUIDE.md Section 4)
569
- - **Spacing Scale:** 8px grid system - use `p-4`, `p-6`, `p-8`, `gap-4`, `gap-6` (from STYLE_GUIDE.md Section 5)
570
- - **Component Library:** shadcn/ui (from STYLE_GUIDE.md Section 6)
571
- - **Icons:** Material Symbols (Outline style) (from STYLE_GUIDE.md Section 17)
567
+ - **Primary Color:** `#0d7276` (from data.yaml colors section)
568
+ - **Font Family:** `Prompt` (from data.yaml typography section)
569
+ - **Spacing Scale:** 8px grid system - use `p-4`, `p-6`, `p-8`, `gap-4`, `gap-6` (from data.yaml spacing)
570
+ - **Component Library:** shadcn/ui (from data.yaml)
571
+ - **Icons:** Material Symbols (Outline style) (from data.yaml)
572
572
  - **Shadows:**
573
573
  - Cards: `shadow-sm` on default, `shadow-md` on hover
574
574
  - Elevated elements: `shadow-lg`
575
575
  - **Border Radius:** `rounded-lg` for cards, `rounded-md` for buttons/inputs
576
- - **Responsive Breakpoints:** (from STYLE_GUIDE.md Section 13)
576
+ - **Responsive Breakpoints:** (from data.yaml)
577
577
  - Mobile: < 640px
578
578
  - Tablet: 640px - 1024px
579
579
  - Desktop: > 1024px
@@ -686,7 +686,7 @@ public/
686
686
  **Generated by:** /pageplan command
687
687
  **Date:** 2025-01-15
688
688
  **For:** Change ID `landing-page`
689
- **Context files used:** proposal.md, prd.md, project_brief.md, STYLE_GUIDE.md
689
+ **Context files used:** proposal.md, prd.md, project_brief.md, data.yaml
690
690
 
691
691
  ---
692
692
 
@@ -0,0 +1,164 @@
1
+ # Phase: UX Testing (Persona-Based)
2
+
3
+ **Agent:** `ux-tester`
4
+ **Metadata:** `| approval-gate | user-testing | persona-based |`
5
+ **Estimated time:** 30 minutes
6
+ **Requires Approval:** YES (blocks until user approves/rejects)
7
+
8
+ ## ๐ŸŽฏ Purpose
9
+
10
+ เธ—เธ”เธชเธญเธš UI เธˆเธฒเธเธกเธธเธกเธกเธญเธ‡ User เธˆเธฃเธดเธ‡ เธเนˆเธญเธ™เธ—เธตเนˆเธˆเธฐเน„เธ› Phase เธ–เธฑเธ”เน„เธ› (Backend)
11
+ - Auto-generate personas เธˆเธฒเธ product context
12
+ - Test เนเธ•เนˆเธฅเธฐ persona เธœเนˆเธฒเธ™ Chrome DevTools
13
+ - เธ„เธณเธ™เธงเธ“ weighted conversion prediction
14
+ - เธฃเธญ User approve เธซเธฃเธทเธญ reject
15
+
16
+ ## ๐Ÿ“‹ Pre-Requisites
17
+
18
+ - โœ… Phase 1 (Frontend Mockup) completed
19
+ - โœ… Dev server running (localhost:3000 or similar)
20
+ - โœ… Chrome DevTools MCP connected
21
+
22
+ ## ๐Ÿ”„ Process
23
+
24
+ ### Step 1: Load Context
25
+ ```bash
26
+ Read: openspec/changes/{change-id}/proposal.md
27
+ Read: openspec/changes/{change-id}/page-plan.md (if exists)
28
+ Read: openspec/changes/{change-id}/tasks.md
29
+ Read: design-system/data.yaml (if exists)
30
+ ```
31
+
32
+ ### Step 2: Auto-Generate Personas
33
+ - Analyze product/service from context
34
+ - Generate 3-5 personas with % breakdown
35
+ - Explain reasoning
36
+
37
+ ### Step 3: Find Dev Server
38
+ - Auto-detect running server (3000, 3001, 5173, 8080)
39
+ - Error if no server found
40
+
41
+ ### Step 4: Test Each Persona
42
+ For each persona:
43
+ 1. Navigate to page
44
+ 2. Take screenshot + snapshot
45
+ 3. First impression (3 seconds)
46
+ 4. Test main flow (click through)
47
+ 5. Test mobile (resize to 375px)
48
+ 6. Would buy? Why/why not?
49
+
50
+ ### Step 5: Calculate Weighted Score
51
+ - Weight each persona's decision by their %
52
+ - Calculate total conversion prediction
53
+ - Calculate potential after fixes
54
+
55
+ ### Step 6: Generate Report
56
+ Output: `openspec/changes/{change-id}/ux-test-report.md`
57
+
58
+ ## โœ… Success Criteria
59
+
60
+ - [ ] Personas generated with % breakdown
61
+ - [ ] Each persona tested (desktop + mobile)
62
+ - [ ] Conversion prediction calculated
63
+ - [ ] Critical issues identified
64
+ - [ ] Recommendations with impact %
65
+ - [ ] Report generated
66
+
67
+ ## ๐Ÿ“ค Output
68
+
69
+ **Files created:**
70
+ - `openspec/changes/{change-id}/ux-test-report.md`
71
+
72
+ **Update flags.json:**
73
+ ```json
74
+ {
75
+ "phases": {
76
+ "ux_testing": {
77
+ "status": "awaiting_approval",
78
+ "completed_at": "{ISO-timestamp}",
79
+ "actual_minutes": {duration},
80
+ "personas_tested": {count},
81
+ "conversion_prediction": "{percentage}",
82
+ "critical_issues": {count},
83
+ "report_path": "ux-test-report.md"
84
+ }
85
+ }
86
+ }
87
+ ```
88
+
89
+ ## ๐Ÿ›‘ Approval Gate
90
+
91
+ **After report generated, PAUSE and ask user:**
92
+
93
+ ```markdown
94
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
95
+ ๐Ÿงช UX Testing Complete!
96
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
97
+
98
+ ๐Ÿ“Š Summary:
99
+ - Personas tested: {count}
100
+ - Conversion prediction: {percentage}%
101
+ - Critical issues: {count}
102
+ - Potential after fixes: {percentage}%
103
+
104
+ ๐Ÿ“„ Full report: openspec/changes/{change-id}/ux-test-report.md
105
+
106
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
107
+
108
+ เธเธฃเธธเธ“เธฒ:
109
+ 1. Review report เธ”เน‰เธฒเธ™เธšเธ™
110
+ 2. เธ—เธ”เธชเธญเธš {dev-url} เธ”เน‰เธงเธขเธ•เธฑเธงเน€เธญเธ‡
111
+ 3. เธ•เธฑเธ”เธชเธดเธ™เนƒเธˆ:
112
+
113
+ โœ… "approve" โ†’ เน„เธ› Phase 2 (Backend)
114
+ โŒ "reject [feedback]" โ†’ เธเธฅเธฑเธš Phase 1 เนเธเน‰เน„เธ‚
115
+
116
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
117
+ ```
118
+
119
+ ## ๐Ÿ”„ Rejection Loop
120
+
121
+ **If user rejects:**
122
+
123
+ 1. Parse feedback from rejection
124
+ 2. Update flags.json:
125
+ ```json
126
+ {
127
+ "phases": {
128
+ "ux_testing": {
129
+ "status": "rejected",
130
+ "rejection_feedback": "{user feedback}",
131
+ "rejection_count": 1
132
+ },
133
+ "frontend_mockup": {
134
+ "status": "pending",
135
+ "rerun_reason": "UX testing rejected: {feedback}"
136
+ }
137
+ }
138
+ }
139
+ ```
140
+ 3. Loop back to Phase 1 (uxui-frontend)
141
+ 4. After Phase 1 completes โ†’ Re-run Phase 1.5 (ux-testing)
142
+
143
+ ## ๐Ÿ“Š Report to User
144
+
145
+ **After approval:**
146
+ ```
147
+ โœ… Phase 1.5: UX Testing approved!
148
+
149
+ โฑ๏ธ Time: {actual} minutes
150
+ ๐Ÿงช Personas: {count} tested
151
+ ๐Ÿ“ˆ Conversion: {percentage}%
152
+
153
+ ๐Ÿ“ Next phase: Phase 2 - Backend API
154
+ ```
155
+
156
+ **After rejection:**
157
+ ```
158
+ ๐Ÿ”„ Phase 1.5: UX Testing rejected
159
+
160
+ ๐Ÿ“ Feedback: {user feedback}
161
+ ๐Ÿ”™ Returning to: Phase 1 - Frontend Mockup
162
+
163
+ uxui-frontend agent เธˆเธฐเน„เธ”เน‰เธฃเธฑเธš feedback เธ™เธตเน‰เน€เธžเธทเนˆเธญเนเธเน‰เน„เธ‚
164
+ ```
package/README.md CHANGED
@@ -21,6 +21,7 @@ cak init
21
21
  | Agent | Phase | Role |
22
22
  |-------|-------|------|
23
23
  | uxui-frontend | 1 | UI with mock data |
24
+ | ux-tester | 1.5 | Persona-based UX testing (approval gate) |
24
25
  | backend | 2 | API endpoints |
25
26
  | database | 2 | Schemas |
26
27
  | integration | 2.5 | Contract validation |
@@ -29,12 +30,13 @@ cak init
29
30
 
30
31
  ## Features
31
32
 
33
+ - **UX-Tester Agent (v2.7.0)** - Persona-based UX testing with weighted conversion prediction
32
34
  - **Smart Topic Query (v2.5.0)** - Cross-library integration detection + risk summary
33
35
  - **Adaptive Depth Research (v2.4.0)** - Dynamic research layers (0-10+) based on change complexity
34
36
  - **Zero-Maintenance Tech Detection** - Auto-detects ANY library in ANY language via Context7
35
37
  - **Visual Page Planning** - Layout wireframes, component plans, animation blueprints
36
38
  - **Cross-session Context** - `PROJECT_STATUS.yml` maintains state across sessions
37
- - **Design System v2.0** - Interactive setup with theme selection
39
+ - **Design System v2.1** - YAML-based extraction with single data.yaml output
38
40
 
39
41
  ## Smart Topic Query (v2.5.0)
40
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@champpaba/claude-agent-kit",
3
- "version": "2.5.0",
3
+ "version": "2.7.0",
4
4
  "description": "Universal multi-agent template for Claude Code - AI-assisted development with specialized agents",
5
5
  "main": "bin/cli.js",
6
6
  "bin": {