@champpaba/claude-agent-kit 2.6.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 +13 -13
- package/.claude/commands/cview.md +364 -364
- package/.claude/commands/designsetup.md +171 -48
- package/.claude/commands/extract.md +382 -668
- package/.claude/commands/pageplan.md +25 -27
- package/.claude/contexts/design/accessibility.md +611 -611
- 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/layout.md +400 -400
- package/.claude/contexts/design/responsive.md +551 -551
- package/.claude/contexts/design/shadows.md +522 -522
- package/.claude/contexts/design/spacing.md +4 -4
- 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 +1 -1
- package/.claude/contexts/patterns/animation-patterns.md +3 -3
- package/.claude/contexts/patterns/development-principles.md +513 -513
- package/.claude/contexts/patterns/error-handling.md +478 -478
- package/.claude/contexts/patterns/logging.md +424 -424
- 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/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/lib/tdd-classifier.md +345 -345
- package/.claude/lib/validation-gates.md +484 -484
- package/.claude/settings.local.json +42 -42
- package/.claude/templates/PROJECT_STATUS.template.yml +1 -1
- package/.claude/templates/STYLE_GUIDE.template.md +7 -7
- package/.claude/templates/context-template.md +45 -45
- package/.claude/templates/design-context-template.md +22 -29
- package/.claude/templates/flags-template.json +42 -42
- package/.claude/templates/page-plan-example.md +9 -9
- 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/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/.claude/templates/phases-sections/ux-testing.md +164 -0
- package/LICENSE +21 -21
- package/README.md +3 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# Phase: Test Coverage Report
|
|
2
|
-
|
|
3
|
-
**Agent:** `test-debug`
|
|
4
|
-
**Metadata:** `| report |`
|
|
5
|
-
**Estimated time:** 5 minutes
|
|
6
|
-
|
|
7
|
-
## ๐ฏ Purpose
|
|
8
|
-
Generate final test coverage report.
|
|
9
|
-
|
|
10
|
-
## โ
Success Criteria
|
|
11
|
-
- [ ] Coverage report generated
|
|
12
|
-
- [ ] Coverage โฅ target
|
|
13
|
-
|
|
14
|
-
## ๐ค Output
|
|
15
|
-
- Coverage report
|
|
16
|
-
- Update flags.json
|
|
1
|
+
# Phase: Test Coverage Report
|
|
2
|
+
|
|
3
|
+
**Agent:** `test-debug`
|
|
4
|
+
**Metadata:** `| report |`
|
|
5
|
+
**Estimated time:** 5 minutes
|
|
6
|
+
|
|
7
|
+
## ๐ฏ Purpose
|
|
8
|
+
Generate final test coverage report.
|
|
9
|
+
|
|
10
|
+
## โ
Success Criteria
|
|
11
|
+
- [ ] Coverage report generated
|
|
12
|
+
- [ ] Coverage โฅ target
|
|
13
|
+
|
|
14
|
+
## ๐ค Output
|
|
15
|
+
- Coverage report
|
|
16
|
+
- Update flags.json
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# Phase: User Approval
|
|
2
|
-
|
|
3
|
-
**Agent:** `user`
|
|
4
|
-
**Metadata:** `| approval-gate |`
|
|
5
|
-
**Estimated time:** 5 minutes
|
|
6
|
-
|
|
7
|
-
## ๐ฏ Purpose
|
|
8
|
-
User reviews and approves work before backend development starts.
|
|
9
|
-
|
|
10
|
-
## โ
Success Criteria
|
|
11
|
-
- [ ] User approves mockup/implementation
|
|
12
|
-
|
|
13
|
-
## ๐ค Output
|
|
14
|
-
- Update flags.json with approval status
|
|
1
|
+
# Phase: User Approval
|
|
2
|
+
|
|
3
|
+
**Agent:** `user`
|
|
4
|
+
**Metadata:** `| approval-gate |`
|
|
5
|
+
**Estimated time:** 5 minutes
|
|
6
|
+
|
|
7
|
+
## ๐ฏ Purpose
|
|
8
|
+
User reviews and approves work before backend development starts.
|
|
9
|
+
|
|
10
|
+
## โ
Success Criteria
|
|
11
|
+
- [ ] User approves mockup/implementation
|
|
12
|
+
|
|
13
|
+
## ๐ค Output
|
|
14
|
+
- Update flags.json with approval status
|
|
@@ -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/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 ChampPABA
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 ChampPABA
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
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
|
|