@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.
- package/.claude/CLAUDE.md +103 -58
- package/.claude/agents/02-uxui-frontend.md +5 -6
- package/.claude/agents/07-ux-tester.md +407 -0
- package/.claude/commands/cdev.md +113 -8
- package/.claude/commands/csetup.md +86 -28
- package/.claude/commands/designsetup.md +171 -48
- package/.claude/commands/extract.md +382 -668
- package/.claude/commands/pageplan.md +43 -27
- package/.claude/contexts/design/box-thinking.md +4 -4
- package/.claude/contexts/design/color-theory.md +5 -5
- package/.claude/contexts/design/index.md +9 -9
- package/.claude/contexts/design/spacing.md +4 -4
- package/.claude/contexts/patterns/agent-discovery.md +1 -1
- package/.claude/contexts/patterns/animation-patterns.md +3 -3
- package/.claude/contexts/patterns/ui-component-consistency.md +3 -3
- package/.claude/lib/README.md +1 -1
- package/.claude/lib/agent-executor.md +223 -0
- package/.claude/lib/context-loading-protocol.md +5 -6
- package/.claude/lib/detailed-guides/agent-system.md +4 -4
- package/.claude/lib/detailed-guides/best-practices-system.md +5 -4
- package/.claude/lib/detailed-guides/context-optimization.md +21 -22
- package/.claude/lib/detailed-guides/design-system.md +6 -5
- package/.claude/lib/detailed-guides/page-planning.md +6 -6
- package/.claude/lib/document-loader.md +32 -47
- package/.claude/lib/task-analyzer.md +194 -1
- package/.claude/templates/PROJECT_STATUS.template.yml +1 -1
- package/.claude/templates/STYLE_GUIDE.template.md +7 -7
- package/.claude/templates/design-context-template.md +22 -29
- package/.claude/templates/page-plan-example.md +9 -9
- package/.claude/templates/phases-sections/ux-testing.md +164 -0
- package/README.md +3 -1
- package/package.json +1 -1
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
## ๐จ Design System Overview
|
|
9
9
|
|
|
10
10
|
**Status:** {DESIGN_SYSTEM_STATUS}
|
|
11
|
-
- โ
Complete (
|
|
12
|
-
- โ ๏ธ Partial (
|
|
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
|
-
โ
|
|
28
|
-
design-system/
|
|
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
|
-
###
|
|
34
|
+
### Human-Readable Summary (For Humans Only)
|
|
35
35
|
```
|
|
36
|
-
๐
|
|
37
|
-
design-system/
|
|
36
|
+
๐ README.md (~100 tokens)
|
|
37
|
+
design-system/README.md
|
|
38
38
|
|
|
39
|
-
Contains:
|
|
40
|
-
Use:
|
|
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
|
|
142
|
+
**Step 2: Load data.yaml (if needed)**
|
|
143
143
|
```
|
|
144
|
-
Read: design-system/
|
|
145
|
-
Tokens: ~
|
|
144
|
+
Read: design-system/data.yaml
|
|
145
|
+
Tokens: ~800
|
|
146
146
|
```
|
|
147
147
|
|
|
148
|
-
**Total: ~1500 tokens (
|
|
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
|
|
161
|
+
2. **Read data.yaml**
|
|
162
162
|
- Full design tokens
|
|
163
163
|
- Component library info
|
|
164
164
|
- Usage patterns
|
|
165
165
|
|
|
166
|
-
3. **
|
|
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
|
-
๐ฆ
|
|
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
|
-
| **
|
|
191
|
-
| **
|
|
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
|
-
- โ
|
|
194
|
+
- โ
data.yaml updated
|
|
202
195
|
- โ
New project phase (rebrand, redesign)
|
|
203
196
|
|
|
204
197
|
---
|
|
205
198
|
|
|
206
199
|
## ๐ References
|
|
207
200
|
|
|
208
|
-
- **
|
|
209
|
-
- **
|
|
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
|
|
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,
|
|
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
|
|
565
|
+
**Follow data.yaml for all design decisions:**
|
|
566
566
|
|
|
567
|
-
- **Primary Color:** `#0d7276` (from
|
|
568
|
-
- **Font Family:** `Prompt` (from
|
|
569
|
-
- **Spacing Scale:** 8px grid system - use `p-4`, `p-6`, `p-8`, `gap-4`, `gap-6` (from
|
|
570
|
-
- **Component Library:** shadcn/ui (from
|
|
571
|
-
- **Icons:** Material Symbols (Outline style) (from
|
|
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
|
|
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,
|
|
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.
|
|
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
|
|