@champpaba/claude-agent-kit 3.5.0 → 3.6.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/CHANGELOG.md +60 -0
- package/.claude/CLAUDE.md +105 -45
- package/.claude/agents/01-integration.md +0 -0
- package/.claude/agents/02-uxui-frontend.md +1 -1
- package/.claude/agents/03-test-debug.md +0 -0
- package/.claude/agents/04-frontend.md +0 -0
- package/.claude/agents/05-backend.md +0 -0
- package/.claude/agents/06-database.md +0 -0
- package/.claude/agents/07-ux-tester.md +92 -84
- package/.claude/agents/CLAUDE.md +18 -0
- package/.claude/agents/_shared/CLAUDE.md +11 -0
- package/.claude/agents/_shared/README.md +0 -0
- package/.claude/agents/_shared/agent-boundaries.md +0 -0
- package/.claude/agents/_shared/documentation-policy.md +0 -0
- package/.claude/agents/_shared/package-manager.md +0 -0
- package/.claude/agents/_shared/pre-work-checklist.md +45 -2
- package/.claude/commands/CLAUDE.md +20 -0
- package/.claude/commands/cdev.md +20 -4
- package/.claude/commands/csetup.md +0 -0
- package/.claude/commands/cstatus.md +0 -0
- package/.claude/commands/cview.md +0 -0
- package/.claude/commands/designsetup.md +0 -0
- package/.claude/commands/extract.md +22 -20
- package/.claude/commands/pageplan.md +0 -0
- package/.claude/commands/pstatus.md +0 -0
- package/.claude/contexts/_core/CLAUDE.md +11 -0
- package/.claude/contexts/_core/README.md +33 -0
- package/.claude/contexts/{patterns → _core}/code-standards.md +0 -0
- package/.claude/contexts/{patterns → _core}/development-principles.md +0 -0
- package/.claude/contexts/design/CLAUDE.md +17 -0
- package/.claude/contexts/design/accessibility.md +2 -2
- package/.claude/contexts/design/box-thinking.md +0 -0
- package/.claude/contexts/design/color-theory.md +2 -2
- package/.claude/contexts/design/index.md +0 -0
- package/.claude/contexts/design/layout.md +0 -0
- package/.claude/contexts/design/responsive.md +0 -0
- package/.claude/contexts/design/shadows.md +0 -0
- package/.claude/contexts/design/spacing.md +0 -0
- package/.claude/contexts/design/typography.md +0 -0
- package/.claude/contexts/domain/README.md +0 -0
- package/.claude/contexts/patterns/CLAUDE.md +13 -0
- package/.claude/contexts/patterns/agent-coordination.md +0 -0
- package/.claude/contexts/patterns/agent-discovery.md +0 -0
- package/.claude/contexts/patterns/animation-patterns.md +0 -0
- package/.claude/contexts/patterns/change-workflow.md +1 -1
- package/.claude/contexts/patterns/error-handling.md +0 -0
- package/.claude/contexts/patterns/error-recovery.md +0 -0
- package/.claude/contexts/patterns/frontend-component-strategy.md +0 -0
- package/.claude/contexts/patterns/git-workflow.md +0 -0
- package/.claude/contexts/patterns/logging.md +0 -0
- package/.claude/contexts/patterns/performance-optimization.md +1 -1
- package/.claude/contexts/patterns/task-breakdown.md +0 -0
- package/.claude/contexts/patterns/task-classification.md +0 -0
- package/.claude/contexts/patterns/tdd-classification.md +0 -0
- package/.claude/contexts/patterns/testing.md +0 -0
- package/.claude/contexts/patterns/ui-component-consistency.md +0 -0
- package/.claude/contexts/patterns/validation-framework.md +0 -0
- package/.claude/lib/CLAUDE.md +19 -0
- package/.claude/lib/README.md +1 -1
- package/.claude/lib/agent-executor.md +1 -1
- package/.claude/lib/agent-router.md +0 -0
- package/.claude/lib/context-loading-protocol.md +0 -0
- package/.claude/lib/design-validator.md +8 -8
- package/.claude/lib/detailed-guides/agent-system.md +0 -0
- package/.claude/lib/detailed-guides/best-practices-system.md +0 -0
- package/.claude/lib/detailed-guides/context-optimization.md +0 -0
- package/.claude/lib/detailed-guides/design-system.md +0 -0
- package/.claude/lib/detailed-guides/incremental-testing.md +0 -0
- package/.claude/lib/detailed-guides/page-planning.md +0 -0
- package/.claude/lib/detailed-guides/taskmaster-analysis.md +0 -0
- package/.claude/lib/document-loader.md +0 -0
- package/.claude/lib/feature-best-practices.md +0 -0
- package/.claude/lib/flags-updater.md +0 -0
- package/.claude/lib/handoff-protocol.md +0 -0
- package/.claude/lib/task-analyzer.md +2 -2
- package/.claude/lib/tdd-workflow.md +0 -0
- package/.claude/lib/validation-gates.md +0 -0
- package/.claude/settings.local.json +0 -0
- package/.claude/templates/PROJECT_STATUS.template.yml +0 -0
- package/.claude/templates/STYLE_GUIDE.template.md +0 -0
- package/.claude/templates/context-template.md +0 -0
- package/.claude/templates/design-context-template.md +0 -0
- package/.claude/templates/flags-template.json +0 -0
- package/.claude/templates/page-plan-example.md +0 -0
- package/.claude/templates/phases-sections/CLAUDE.md +13 -0
- package/.claude/templates/phases-sections/accessibility-test.md +0 -0
- package/.claude/templates/phases-sections/api-design.md +0 -0
- package/.claude/templates/phases-sections/backend-tests.md +0 -0
- package/.claude/templates/phases-sections/backend.md +0 -0
- package/.claude/templates/phases-sections/business-logic-validation.md +0 -0
- package/.claude/templates/phases-sections/component-tests.md +0 -0
- package/.claude/templates/phases-sections/contract-backend.md +0 -0
- package/.claude/templates/phases-sections/contract-frontend.md +0 -0
- package/.claude/templates/phases-sections/database.md +0 -0
- package/.claude/templates/phases-sections/e2e-tests.md +0 -0
- package/.claude/templates/phases-sections/fix-implementation.md +0 -0
- package/.claude/templates/phases-sections/frontend-integration.md +0 -0
- package/.claude/templates/phases-sections/frontend-mockup.md +0 -0
- package/.claude/templates/phases-sections/manual-flow-test.md +0 -0
- package/.claude/templates/phases-sections/manual-ux-test.md +0 -0
- package/.claude/templates/phases-sections/refactor-implementation.md +0 -0
- package/.claude/templates/phases-sections/refactor.md +0 -0
- package/.claude/templates/phases-sections/regression-tests.md +0 -0
- package/.claude/templates/phases-sections/responsive-test.md +0 -0
- package/.claude/templates/phases-sections/script-implementation.md +0 -0
- package/.claude/templates/phases-sections/test-coverage.md +0 -0
- package/.claude/templates/phases-sections/user-approval.md +0 -0
- package/.claude/templates/phases-sections/ux-testing.md +6 -10
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/bin/CLAUDE.md +11 -0
- package/bin/cli.js +0 -0
- package/lib/CLAUDE.md +11 -0
- package/lib/helpers.js +0 -0
- package/lib/init.js +0 -0
- package/lib/update.js +0 -0
- package/package.json +3 -2
- package/skills/design-extract/CLAUDE.md +12 -0
- package/skills/design-extract/SKILL.md +76 -0
- package/skills/design-extract/references/CLAUDE.md +16 -0
- package/skills/design-extract/references/error-handling.md +161 -0
- package/skills/design-extract/references/extraction-steps.md +183 -0
- package/skills/design-extract/references/output-format.md +250 -0
- package/skills/design-extract/references/style-detection.md +137 -0
- package/skills/design-extract/templates/CLAUDE.md +11 -0
- package/skills/design-extract/templates/data.yaml.template +95 -0
- package/skills/design-setup/CLAUDE.md +11 -0
- package/skills/design-setup/SKILL.md +104 -0
- package/skills/design-setup/references/CLAUDE.md +11 -0
- package/skills/design-setup/references/data-yaml-schema.md +205 -0
- package/skills/design-setup/references/error-handling.md +157 -0
- package/skills/design-setup/references/generation-steps.md +192 -0
- package/skills/design-setup/references/interactive-workflow.md +151 -0
- package/skills/page-planner/CLAUDE.md +11 -0
- package/skills/page-planner/SKILL.md +112 -0
- package/skills/page-planner/references/CLAUDE.md +11 -0
- package/skills/page-planner/references/animation-patterns.md +169 -0
- package/skills/page-planner/references/generation-steps.md +166 -0
- package/skills/page-planner/references/wireframe-patterns.md +182 -0
- package/skills/page-planner/templates/CLAUDE.md +11 -0
- package/skills/page-planner/templates/page-plan.md +303 -0
package/.claude/commands/cdev.md
CHANGED
|
@@ -318,6 +318,24 @@ Quick Reference:
|
|
|
318
318
|
|
|
319
319
|
---
|
|
320
320
|
|
|
321
|
+
#### Section 6: No File Output (ux-tester only)
|
|
322
|
+
|
|
323
|
+
**If agent equals ux-tester:**
|
|
324
|
+
|
|
325
|
+
Add this section to the prompt:
|
|
326
|
+
|
|
327
|
+
```
|
|
328
|
+
⚠️ NO FILE CREATION
|
|
329
|
+
|
|
330
|
+
ห้ามสร้างไฟล์ .md ใดๆ ทั้งสิ้น!
|
|
331
|
+
- ❌ ห้าม Write ไฟล์ report
|
|
332
|
+
- ❌ ห้ามสร้าง ux-test-report.md
|
|
333
|
+
- ✅ Output ทุกอย่างใน response โดยตรง
|
|
334
|
+
- ✅ Verbose ละเอียดได้เลย
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
---
|
|
338
|
+
|
|
321
339
|
### Step 4.2: Execute Agent with Retry
|
|
322
340
|
|
|
323
341
|
---
|
|
@@ -400,7 +418,7 @@ See `.claude/contexts/patterns/validation-framework.md` for complete checklist p
|
|
|
400
418
|
- frontend: API Contract Verification, State Management, Error Handling
|
|
401
419
|
- test-debug: Test Infrastructure, Coverage Targets, Test Plan
|
|
402
420
|
- integration: Contract Collection, Schema Validation, Data Flow Analysis
|
|
403
|
-
- ux-tester: Personas Generated, Dev Server Found,
|
|
421
|
+
- ux-tester: Personas Generated, Dev Server Found, agent-browser Connected
|
|
404
422
|
|
|
405
423
|
---
|
|
406
424
|
|
|
@@ -435,8 +453,6 @@ Display this message:
|
|
|
435
453
|
|
|
436
454
|
{result_summary}
|
|
437
455
|
|
|
438
|
-
📄 Full report: openspec/changes/{change-id}/ux-test-report.md
|
|
439
|
-
|
|
440
456
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
441
457
|
|
|
442
458
|
Please decide:
|
|
@@ -745,7 +761,7 @@ Continue? (yes/no)
|
|
|
745
761
|
[Continues...]
|
|
746
762
|
|
|
747
763
|
🛑 Phase 3 requires manual testing.
|
|
748
|
-
Test visual consistency using
|
|
764
|
+
Test visual consistency using agent-browser.
|
|
749
765
|
When done: /cdev CHANGE-003 --continue
|
|
750
766
|
|
|
751
767
|
$ [User tests]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -84,9 +84,10 @@ mkdir -p design-system/extracted/{siteName}/screenshots
|
|
|
84
84
|
|
|
85
85
|
### 1.1: Navigate to URL
|
|
86
86
|
|
|
87
|
-
Use
|
|
88
|
-
|
|
89
|
-
-
|
|
87
|
+
Use agent-browser to navigate to the target URL:
|
|
88
|
+
```bash
|
|
89
|
+
agent-browser open {url}
|
|
90
|
+
```
|
|
90
91
|
|
|
91
92
|
### 1.2: Smart Wait for Page Load
|
|
92
93
|
|
|
@@ -94,7 +95,7 @@ Use Chrome DevTools to navigate to the target URL:
|
|
|
94
95
|
2. From snapshot, find heading elements (filter lines containing `[heading]`)
|
|
95
96
|
3. If headings found:
|
|
96
97
|
- Extract text from first heading
|
|
97
|
-
- Use
|
|
98
|
+
- Use agent-browser wait_for to wait for that text (timeout: 15000ms)
|
|
98
99
|
- This ensures the main content is loaded
|
|
99
100
|
4. If no headings found or wait fails:
|
|
100
101
|
- Fallback to sleep 5000ms
|
|
@@ -115,7 +116,7 @@ Use Chrome DevTools to navigate to the target URL:
|
|
|
115
116
|
|
|
116
117
|
## STEP 2: Extract CSS Data (17 Sections in Parallel)
|
|
117
118
|
|
|
118
|
-
Run all extraction evaluations in parallel for speed. Use
|
|
119
|
+
Run all extraction evaluations in parallel for speed. Use agent-browser `evaluate_script` for each extraction function below.
|
|
119
120
|
|
|
120
121
|
**Parallel Execution Strategy:**
|
|
121
122
|
- Execute all 8 extraction functions concurrently
|
|
@@ -124,7 +125,7 @@ Run all extraction evaluations in parallel for speed. Use Chrome DevTools `evalu
|
|
|
124
125
|
|
|
125
126
|
### 2.1: Extract Colors
|
|
126
127
|
|
|
127
|
-
Use
|
|
128
|
+
Use agent-browser to evaluate script that:
|
|
128
129
|
|
|
129
130
|
1. **Query all elements**: `document.querySelectorAll('*')`
|
|
130
131
|
2. **For each element**, extract using `window.getComputedStyle()`:
|
|
@@ -159,7 +160,7 @@ colors:
|
|
|
159
160
|
|
|
160
161
|
### 2.2: Extract Typography
|
|
161
162
|
|
|
162
|
-
Use
|
|
163
|
+
Use agent-browser to evaluate script that:
|
|
163
164
|
|
|
164
165
|
1. **Extract heading styles** (h1, h2, h3):
|
|
165
166
|
- Query first 3 instances of each heading tag
|
|
@@ -198,7 +199,7 @@ typography:
|
|
|
198
199
|
|
|
199
200
|
### 2.3: Extract Shadows & Effects
|
|
200
201
|
|
|
201
|
-
Use
|
|
202
|
+
Use agent-browser to evaluate script that:
|
|
202
203
|
|
|
203
204
|
1. **Query all elements**: `document.querySelectorAll('*')`
|
|
204
205
|
2. **For each element**, extract using `window.getComputedStyle()`:
|
|
@@ -227,7 +228,7 @@ borderWidths:
|
|
|
227
228
|
|
|
228
229
|
### 2.4: Extract Spacing
|
|
229
230
|
|
|
230
|
-
Use
|
|
231
|
+
Use agent-browser to evaluate script that:
|
|
231
232
|
|
|
232
233
|
1. **Query first 100 elements** for spacing analysis
|
|
233
234
|
2. **For each element**, extract using `window.getComputedStyle()`:
|
|
@@ -257,7 +258,7 @@ spacing:
|
|
|
257
258
|
|
|
258
259
|
### 2.5: Extract Buttons
|
|
259
260
|
|
|
260
|
-
Use
|
|
261
|
+
Use agent-browser to evaluate script that:
|
|
261
262
|
|
|
262
263
|
1. **Query button elements** with selectors:
|
|
263
264
|
- `button`, `a[role="button"]`
|
|
@@ -276,7 +277,7 @@ Use Chrome DevTools to evaluate script that:
|
|
|
276
277
|
|
|
277
278
|
### 2.6: Extract Cards
|
|
278
279
|
|
|
279
|
-
Use
|
|
280
|
+
Use agent-browser to evaluate script that:
|
|
280
281
|
|
|
281
282
|
1. **Query card-like elements** with selectors:
|
|
282
283
|
- `[class*="card"]`, `[class*="Card"]`
|
|
@@ -293,7 +294,7 @@ Use Chrome DevTools to evaluate script that:
|
|
|
293
294
|
|
|
294
295
|
### 2.7: Extract Input Fields
|
|
295
296
|
|
|
296
|
-
Use
|
|
297
|
+
Use agent-browser to evaluate script that:
|
|
297
298
|
|
|
298
299
|
1. **Query input elements** with selectors:
|
|
299
300
|
- `input[type="text"]`, `input[type="email"]`, `input[type="password"]`
|
|
@@ -310,7 +311,7 @@ Use Chrome DevTools to evaluate script that:
|
|
|
310
311
|
|
|
311
312
|
### 2.8: Extract Animations
|
|
312
313
|
|
|
313
|
-
Use
|
|
314
|
+
Use agent-browser to evaluate script that:
|
|
314
315
|
|
|
315
316
|
1. **Extract CSS @keyframes animations**:
|
|
316
317
|
- Loop through all document.styleSheets
|
|
@@ -429,12 +430,12 @@ mkdir -p design-system/extracted/{siteName}/screenshots
|
|
|
429
430
|
|
|
430
431
|
### 4.2: Capture Full-Page Screenshot
|
|
431
432
|
|
|
432
|
-
Use
|
|
433
|
+
Use agent-browser to take screenshot:
|
|
433
434
|
|
|
434
435
|
1. **First attempt**: Full-page screenshot
|
|
435
|
-
|
|
436
|
-
-
|
|
437
|
-
|
|
436
|
+
```bash
|
|
437
|
+
agent-browser screenshot --full design-system/extracted/{siteName}/screenshots/full-page.png
|
|
438
|
+
```
|
|
438
439
|
|
|
439
440
|
2. **If full-page fails**: Fallback to viewport-only
|
|
440
441
|
- Parameters: `fullPage: false`, `format: 'png'`
|
|
@@ -691,8 +692,8 @@ design-system/extracted/{siteName}/data.yaml
|
|
|
691
692
|
|
|
692
693
|
### Critical Errors (Stop Execution)
|
|
693
694
|
|
|
694
|
-
**Navigation failures** - If
|
|
695
|
-
1. Catch the error from `
|
|
695
|
+
**Navigation failures** - If agent-browser navigation fails:
|
|
696
|
+
1. Catch the error from `agent-browser open`
|
|
696
697
|
2. Return error message:
|
|
697
698
|
```
|
|
698
699
|
❌ Failed to load URL: {url}
|
|
@@ -701,7 +702,8 @@ design-system/extracted/{siteName}/data.yaml
|
|
|
701
702
|
|
|
702
703
|
Check:
|
|
703
704
|
- Is the URL accessible?
|
|
704
|
-
- Is
|
|
705
|
+
- Is agent-browser installed? (npm install -g agent-browser)
|
|
706
|
+
- Did you run `agent-browser install` to get Chromium?
|
|
705
707
|
```
|
|
706
708
|
3. Stop execution (cannot proceed without page loaded)
|
|
707
709
|
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<claude-mem-context>
|
|
2
|
+
# Recent Activity
|
|
3
|
+
|
|
4
|
+
<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->
|
|
5
|
+
|
|
6
|
+
### Feb 3, 2026
|
|
7
|
+
|
|
8
|
+
| ID | Time | T | Title | Read |
|
|
9
|
+
|----|------|---|-------|------|
|
|
10
|
+
| #252 | 11:38 PM | 🔵 | Git status reveals extensive refactoring with skills migration and core context reorganization | ~682 |
|
|
11
|
+
</claude-mem-context>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Tier 1: Core Contexts (Always Load)
|
|
2
|
+
|
|
3
|
+
These files contain **foundational knowledge** that ALL agents should load at the start of every task.
|
|
4
|
+
|
|
5
|
+
## Files
|
|
6
|
+
|
|
7
|
+
| File | Purpose | Size |
|
|
8
|
+
|------|---------|------|
|
|
9
|
+
| `development-principles.md` | SOLID, DRY, KISS, YAGNI, Fail Fast | ~500 lines |
|
|
10
|
+
| `code-standards.md` | Naming conventions, formatting, structure | ~400 lines |
|
|
11
|
+
|
|
12
|
+
## Why These Are Tier 1
|
|
13
|
+
|
|
14
|
+
1. **Universal applicability** - Every agent (UI, backend, database, test) needs these principles
|
|
15
|
+
2. **Foundation for quality** - Violations of these principles cause bugs and tech debt
|
|
16
|
+
3. **Small enough** - ~900 lines total, acceptable baseline cost
|
|
17
|
+
|
|
18
|
+
## Loading
|
|
19
|
+
|
|
20
|
+
Agents should load these files in **STEP 0** before any task-specific work:
|
|
21
|
+
|
|
22
|
+
```markdown
|
|
23
|
+
## STEP 0: Load Core Contexts
|
|
24
|
+
|
|
25
|
+
Read and apply principles from:
|
|
26
|
+
1. @/.claude/contexts/_core/development-principles.md
|
|
27
|
+
2. @/.claude/contexts/_core/code-standards.md
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## See Also
|
|
31
|
+
|
|
32
|
+
- **Tier 2** (Agent-Specific): `patterns/`, `design/` - loaded based on agent role
|
|
33
|
+
- **Tier 3** (On-Demand): queried when specific topics arise
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<claude-mem-context>
|
|
2
|
+
# Recent Activity
|
|
3
|
+
|
|
4
|
+
<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->
|
|
5
|
+
|
|
6
|
+
### Feb 3, 2026
|
|
7
|
+
|
|
8
|
+
| ID | Time | T | Title | Read |
|
|
9
|
+
|----|------|---|-------|------|
|
|
10
|
+
| #252 | 11:38 PM | 🔵 | Git status reveals extensive refactoring with skills migration and core context reorganization | ~682 |
|
|
11
|
+
| #243 | 11:26 PM | ✅ | Updated color-theory.md accessibility testing tools to reference agent-browser | ~485 |
|
|
12
|
+
| #242 | " | ✅ | Updated color-theory.md to reference agent-browser for Lighthouse audits | ~513 |
|
|
13
|
+
| #241 | " | ✅ | Updated accessibility testing checklist to use agent-browser for Lighthouse audits | ~484 |
|
|
14
|
+
| #240 | " | ✅ | Updated accessibility.md Lighthouse reference to agent-browser/CLI | ~434 |
|
|
15
|
+
| #239 | " | 🔵 | Found Chrome DevTools reference in color-theory design context | ~332 |
|
|
16
|
+
| #237 | " | 🔵 | Accessibility testing checklist includes Chrome DevTools Lighthouse audit | ~361 |
|
|
17
|
+
</claude-mem-context>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
**Browser Extensions:**
|
|
70
70
|
- **WAVE** (WebAIM) - Visual feedback overlay
|
|
71
71
|
- **axe DevTools** - Comprehensive accessibility scanner
|
|
72
|
-
- **Lighthouse** (
|
|
72
|
+
- **Lighthouse** (agent-browser / CLI) - Automated audit
|
|
73
73
|
|
|
74
74
|
**Online Tools:**
|
|
75
75
|
- **WebAIM Contrast Checker**: https://webaim.org/resources/contrastchecker/
|
|
@@ -554,7 +554,7 @@ function closeModal(modalId) {
|
|
|
554
554
|
|
|
555
555
|
### Automated Testing
|
|
556
556
|
|
|
557
|
-
- [ ] Run Lighthouse audit (
|
|
557
|
+
- [ ] Run Lighthouse audit (agent-browser)
|
|
558
558
|
- [ ] Run axe DevTools extension
|
|
559
559
|
- [ ] Run WAVE extension
|
|
560
560
|
- [ ] Check HTML validation (W3C Validator)
|
|
File without changes
|
|
@@ -379,7 +379,7 @@ Primary: Blue (H: 220)
|
|
|
379
379
|
**Tools:**
|
|
380
380
|
- **WebAIM Contrast Checker**: https://webaim.org/resources/contrastchecker/
|
|
381
381
|
- **Contrast Ratio**: https://contrast-ratio.com/
|
|
382
|
-
- **
|
|
382
|
+
- **agent-browser**: Lighthouse audit
|
|
383
383
|
|
|
384
384
|
**Example:**
|
|
385
385
|
```css
|
|
@@ -414,7 +414,7 @@ color: white; /* #FFFFFF */
|
|
|
414
414
|
**Testing Tools:**
|
|
415
415
|
- **Color Oracle**: Free color blindness simulator
|
|
416
416
|
- **Stark Plugin**: Figma/Sketch plugin
|
|
417
|
-
- **
|
|
417
|
+
- **agent-browser**: Screenshot for vision testing
|
|
418
418
|
|
|
419
419
|
---
|
|
420
420
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<claude-mem-context>
|
|
2
|
+
# Recent Activity
|
|
3
|
+
|
|
4
|
+
<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->
|
|
5
|
+
|
|
6
|
+
### Feb 3, 2026
|
|
7
|
+
|
|
8
|
+
| ID | Time | T | Title | Read |
|
|
9
|
+
|----|------|---|-------|------|
|
|
10
|
+
| #252 | 11:38 PM | 🔵 | Git status reveals extensive refactoring with skills migration and core context reorganization | ~682 |
|
|
11
|
+
| #244 | 11:26 PM | ✅ | Updated performance-optimization.md Lighthouse reference to use agent-browser or CLI | ~398 |
|
|
12
|
+
| #227 | 11:22 PM | ✅ | Updated change-workflow pattern to reference agent-browser | ~297 |
|
|
13
|
+
</claude-mem-context>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -406,7 +406,7 @@ done
|
|
|
406
406
|
- [Next.js: Image Optimization](https://nextjs.org/docs/basic-features/image-optimization)
|
|
407
407
|
|
|
408
408
|
**Tools:**
|
|
409
|
-
- **Lighthouse:**
|
|
409
|
+
- **Lighthouse:** `agent-browser` or `npx lighthouse <url>`
|
|
410
410
|
- **WebPageTest:** https://www.webpagetest.org/
|
|
411
411
|
- **Squoosh:** https://squoosh.app/ (image compression)
|
|
412
412
|
- **TinyPNG:** https://tinypng.com/ (batch compression)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<claude-mem-context>
|
|
2
|
+
# Recent Activity
|
|
3
|
+
|
|
4
|
+
<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->
|
|
5
|
+
|
|
6
|
+
### Feb 3, 2026
|
|
7
|
+
|
|
8
|
+
| ID | Time | T | Title | Read |
|
|
9
|
+
|----|------|---|-------|------|
|
|
10
|
+
| #252 | 11:38 PM | 🔵 | Git status reveals extensive refactoring with skills migration and core context reorganization | ~682 |
|
|
11
|
+
| #226 | 11:22 PM | ✅ | Updated agent-executor validation to check agent-browser connection instead of Chrome DevTools | ~551 |
|
|
12
|
+
| #223 | " | ✅ | Updated task-analyzer documentation to reference agent-browser across all UX testing workflows | ~521 |
|
|
13
|
+
| #222 | " | ✅ | Updated lib/README.md to reference agent-browser in design validation documentation | ~304 |
|
|
14
|
+
| #220 | " | 🔵 | Library documentation reveals design-validator uses Chrome DevTools for post-work validation | ~521 |
|
|
15
|
+
| #218 | " | 🔵 | Found Chrome DevTools reference in agent-executor readiness validation | ~282 |
|
|
16
|
+
| #205 | 11:20 PM | ✅ | Updated design-validator to use agent-browser instead of Chrome DevTools MCP | ~490 |
|
|
17
|
+
| #203 | " | ✅ | Updated design validator to use agent-browser instead of Chrome DevTools | ~464 |
|
|
18
|
+
| #196 | " | 🔵 | Design validator enforces single source of truth through prevention and detection layers | ~1026 |
|
|
19
|
+
</claude-mem-context>
|
package/.claude/lib/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Defines agent boundaries. Main Claude delegates implementation work to specializ
|
|
|
23
23
|
Single Source of Truth for design compliance. Contains:
|
|
24
24
|
- Part 1: Design token loading protocol
|
|
25
25
|
- Part 2: Pre-work validation (uxui-frontend)
|
|
26
|
-
- Part 3: Post-work validation (ux-tester with
|
|
26
|
+
- Part 3: Post-work validation (ux-tester with agent-browser)
|
|
27
27
|
- Part 4: Main Claude pre-flight checklist
|
|
28
28
|
Used by: Main Claude (/cdev), uxui-frontend agent, ux-tester agent
|
|
29
29
|
|
|
@@ -154,7 +154,7 @@ WHY: Pre-work validation ensures agents loaded context before implementing. This
|
|
|
154
154
|
| backend | Patterns Loaded ✓, Existing Endpoints Search ✓, TDD Workflow (if required) |
|
|
155
155
|
| database | Schema Analysis ✓ |
|
|
156
156
|
| test-debug | Test Infrastructure ✓ |
|
|
157
|
-
| ux-tester | Personas Generated ✓, Dev Server Found ✓,
|
|
157
|
+
| ux-tester | Personas Generated ✓, Dev Server Found ✓, agent-browser Connected ✓ |
|
|
158
158
|
|
|
159
159
|
**Validation Logic:**
|
|
160
160
|
```typescript
|
|
File without changes
|
|
File without changes
|
|
@@ -16,7 +16,7 @@ PREVENTION (Before Implementation)
|
|
|
16
16
|
└── uxui-frontend: STEP 0.5 - Read data.yaml, report tokens
|
|
17
17
|
|
|
18
18
|
DETECTION (After Implementation)
|
|
19
|
-
└── ux-tester: Step 5.5 -
|
|
19
|
+
└── ux-tester: Step 5.5 - agent-browser style comparison
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
---
|
|
@@ -200,18 +200,18 @@ Report the tokens you loaded before starting implementation.
|
|
|
200
200
|
- Animation durations: 150ms, 300ms, 500ms
|
|
201
201
|
- Spacing scale
|
|
202
202
|
|
|
203
|
-
### 4.3 ใช้
|
|
203
|
+
### 4.3 ใช้ agent-browser ตรวจสอบ
|
|
204
204
|
|
|
205
205
|
**ขั้นตอน:**
|
|
206
206
|
|
|
207
207
|
1. Navigate ไปหน้าที่ต้องการตรวจ:
|
|
208
|
-
```
|
|
209
|
-
|
|
208
|
+
```bash
|
|
209
|
+
agent-browser open http://localhost:xxxx
|
|
210
210
|
```
|
|
211
211
|
|
|
212
|
-
2. Take snapshot เพื่อดู DOM และ
|
|
213
|
-
```
|
|
214
|
-
|
|
212
|
+
2. Take snapshot เพื่อดู DOM และ elements:
|
|
213
|
+
```bash
|
|
214
|
+
agent-browser snapshot -i
|
|
215
215
|
```
|
|
216
216
|
|
|
217
217
|
3. ดู elements หลักๆ:
|
|
@@ -304,7 +304,7 @@ After persona testing:
|
|
|
304
304
|
|
|
305
305
|
- [ ] Check if `design-system/data.yaml` exists
|
|
306
306
|
- [ ] If exists: Load expected tokens
|
|
307
|
-
- [ ] Use
|
|
307
|
+
- [ ] Use agent-browser to check computed styles
|
|
308
308
|
- [ ] Compare actual vs expected
|
|
309
309
|
- [ ] Add compliance section to ux-test-report.md
|
|
310
310
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -602,7 +602,7 @@ function injectUXTestingPhases(phases: Phase[], tasks: AnalyzedTask[]): Phase[]
|
|
|
602
602
|
description: `
|
|
603
603
|
Test UI from user perspectives before proceeding.
|
|
604
604
|
- Auto-generate personas based on product context
|
|
605
|
-
- Test each persona via
|
|
605
|
+
- Test each persona via agent-browser
|
|
606
606
|
- Calculate weighted conversion prediction
|
|
607
607
|
- PAUSE for user approval before next phase
|
|
608
608
|
`,
|
|
@@ -630,7 +630,7 @@ Phase N: uxui-frontend (build UI)
|
|
|
630
630
|
↓
|
|
631
631
|
Phase N.5: ux-tester (APPROVAL GATE)
|
|
632
632
|
→ Auto-generate personas (3-5 based on product)
|
|
633
|
-
→ Test each persona via
|
|
633
|
+
→ Test each persona via agent-browser
|
|
634
634
|
→ Calculate weighted conversion prediction
|
|
635
635
|
→ Generate UX test report
|
|
636
636
|
→ ⏸️ PAUSE: Wait for user decision
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<claude-mem-context>
|
|
2
|
+
# Recent Activity
|
|
3
|
+
|
|
4
|
+
<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->
|
|
5
|
+
|
|
6
|
+
### Feb 3, 2026
|
|
7
|
+
|
|
8
|
+
| ID | Time | T | Title | Read |
|
|
9
|
+
|----|------|---|-------|------|
|
|
10
|
+
| #252 | 11:38 PM | 🔵 | Git status reveals extensive refactoring with skills migration and core context reorganization | ~682 |
|
|
11
|
+
| #206 | 11:20 PM | ✅ | Updated ux-testing prerequisites to use agent-browser instead of Chrome DevTools MCP | ~426 |
|
|
12
|
+
| #195 | " | 🔵 | UX Testing phase template defines persona-based approval gate workflow | ~833 |
|
|
13
|
+
</claude-mem-context>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|