@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.
Files changed (72) 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 +13 -13
  6. package/.claude/commands/cview.md +364 -364
  7. package/.claude/commands/designsetup.md +171 -48
  8. package/.claude/commands/extract.md +382 -668
  9. package/.claude/commands/pageplan.md +25 -27
  10. package/.claude/contexts/design/accessibility.md +611 -611
  11. package/.claude/contexts/design/box-thinking.md +4 -4
  12. package/.claude/contexts/design/color-theory.md +5 -5
  13. package/.claude/contexts/design/index.md +9 -9
  14. package/.claude/contexts/design/layout.md +400 -400
  15. package/.claude/contexts/design/responsive.md +551 -551
  16. package/.claude/contexts/design/shadows.md +522 -522
  17. package/.claude/contexts/design/spacing.md +4 -4
  18. package/.claude/contexts/design/typography.md +465 -465
  19. package/.claude/contexts/domain/README.md +164 -164
  20. package/.claude/contexts/patterns/agent-coordination.md +388 -388
  21. package/.claude/contexts/patterns/agent-discovery.md +1 -1
  22. package/.claude/contexts/patterns/animation-patterns.md +3 -3
  23. package/.claude/contexts/patterns/development-principles.md +513 -513
  24. package/.claude/contexts/patterns/error-handling.md +478 -478
  25. package/.claude/contexts/patterns/logging.md +424 -424
  26. package/.claude/contexts/patterns/tdd-classification.md +516 -516
  27. package/.claude/contexts/patterns/testing.md +413 -413
  28. package/.claude/contexts/patterns/ui-component-consistency.md +3 -3
  29. package/.claude/lib/README.md +1 -1
  30. package/.claude/lib/agent-executor.md +223 -0
  31. package/.claude/lib/context-loading-protocol.md +5 -6
  32. package/.claude/lib/detailed-guides/agent-system.md +4 -4
  33. package/.claude/lib/detailed-guides/best-practices-system.md +5 -4
  34. package/.claude/lib/detailed-guides/context-optimization.md +21 -22
  35. package/.claude/lib/detailed-guides/design-system.md +6 -5
  36. package/.claude/lib/detailed-guides/page-planning.md +6 -6
  37. package/.claude/lib/document-loader.md +32 -47
  38. package/.claude/lib/task-analyzer.md +194 -1
  39. package/.claude/lib/tdd-classifier.md +345 -345
  40. package/.claude/lib/validation-gates.md +484 -484
  41. package/.claude/settings.local.json +42 -42
  42. package/.claude/templates/PROJECT_STATUS.template.yml +1 -1
  43. package/.claude/templates/STYLE_GUIDE.template.md +7 -7
  44. package/.claude/templates/context-template.md +45 -45
  45. package/.claude/templates/design-context-template.md +22 -29
  46. package/.claude/templates/flags-template.json +42 -42
  47. package/.claude/templates/page-plan-example.md +9 -9
  48. package/.claude/templates/phases-sections/accessibility-test.md +17 -17
  49. package/.claude/templates/phases-sections/api-design.md +37 -37
  50. package/.claude/templates/phases-sections/backend-tests.md +16 -16
  51. package/.claude/templates/phases-sections/backend.md +37 -37
  52. package/.claude/templates/phases-sections/business-logic-validation.md +16 -16
  53. package/.claude/templates/phases-sections/component-tests.md +17 -17
  54. package/.claude/templates/phases-sections/contract-backend.md +16 -16
  55. package/.claude/templates/phases-sections/contract-frontend.md +16 -16
  56. package/.claude/templates/phases-sections/database.md +35 -35
  57. package/.claude/templates/phases-sections/e2e-tests.md +16 -16
  58. package/.claude/templates/phases-sections/fix-implementation.md +17 -17
  59. package/.claude/templates/phases-sections/frontend-integration.md +18 -18
  60. package/.claude/templates/phases-sections/manual-flow-test.md +15 -15
  61. package/.claude/templates/phases-sections/manual-ux-test.md +16 -16
  62. package/.claude/templates/phases-sections/refactor-implementation.md +17 -17
  63. package/.claude/templates/phases-sections/refactor.md +16 -16
  64. package/.claude/templates/phases-sections/regression-tests.md +15 -15
  65. package/.claude/templates/phases-sections/responsive-test.md +16 -16
  66. package/.claude/templates/phases-sections/script-implementation.md +43 -43
  67. package/.claude/templates/phases-sections/test-coverage.md +16 -16
  68. package/.claude/templates/phases-sections/user-approval.md +14 -14
  69. package/.claude/templates/phases-sections/ux-testing.md +164 -0
  70. package/LICENSE +21 -21
  71. package/README.md +3 -1
  72. 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.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.6.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": {