@champpaba/claude-agent-kit 3.5.2 → 3.6.1
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 +0 -0
- package/.claude/CLAUDE.md +103 -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 +18 -12
- 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 +2 -2
- 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 +2 -2
- 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 +13 -0
- package/skills/design-extract/SKILL.md +82 -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 +12 -0
- package/skills/design-setup/SKILL.md +110 -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 +118 -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/CHANGELOG.md
CHANGED
|
File without changes
|
package/.claude/CLAUDE.md
CHANGED
|
@@ -1,47 +1,19 @@
|
|
|
1
1
|
# CLAUDE.md
|
|
2
2
|
|
|
3
3
|
> **Navigation Hub for AI Agents**
|
|
4
|
-
> **Template Version:** 3.
|
|
5
|
-
> **Latest:**
|
|
4
|
+
> **Template Version:** 3.7.0 - Skills-Based Architecture
|
|
5
|
+
> **Latest:** Token-optimized with skill-based commands (45-65% savings)
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
## 📁 File Naming Conventions
|
|
9
|
+
## 📁 File Naming Conventions
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
| Source | Files | Purpose |
|
|
12
|
+
|--------|-------|---------|
|
|
13
|
+
| **OpenSpec** | `proposal.md`, `tasks.md`, `design.md`, `specs/` | WHY, WHAT, Architecture |
|
|
14
|
+
| **Template** | `data.yaml`, `page-plan.md`, `pre-work-context.md`, `phases.md` | Visual design, Agent context |
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
| File | Purpose | When to Read |
|
|
16
|
-
|------|---------|--------------|
|
|
17
|
-
| `proposal.md` | WHY - Goals, scope, rationale | Phase planning |
|
|
18
|
-
| `tasks.md` | WHAT - Implementation checklist | Task tracking |
|
|
19
|
-
| `design.md` | **Technical/Architecture decisions** (optional) | Backend/Database phases |
|
|
20
|
-
| `specs/` | Delta specs (ADDED/MODIFIED/REMOVED) | Requirement validation |
|
|
21
|
-
|
|
22
|
-
### Template Files (from claude-multi-agent-template)
|
|
23
|
-
|
|
24
|
-
| File | Purpose | When to Read |
|
|
25
|
-
|------|---------|--------------|
|
|
26
|
-
| `README.md` | **Visual design summary** (human-readable) | UI/Frontend phases |
|
|
27
|
-
| `data.yaml` | Design tokens + psychology (~300 lines) | Quick UI reference |
|
|
28
|
-
| `page-plan.md` | UI component layout + content strategy | uxui-frontend agent |
|
|
29
|
-
| `pre-work-context.md` | **v3.2.0!** All agent context (best practices, warnings, checklist) | All agents - STEP 0 ✨ |
|
|
30
|
-
| `phases.md` | Execution plan with agent assignments | All phases |
|
|
31
|
-
| `flags.json` | Progress tracking | All phases |
|
|
32
|
-
|
|
33
|
-
### Key Distinction
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
OpenSpec design.md = Technical Architecture (data flow, API structure, system design)
|
|
37
|
-
Template data.yaml = Visual Design (colors, fonts, spacing, component styles)
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
**Agents should read BOTH when relevant:**
|
|
41
|
-
- `uxui-frontend` → data.yaml (visual tokens) + design.md (if has UI architecture)
|
|
42
|
-
- `backend` → design.md (API/data architecture)
|
|
43
|
-
- `database` → design.md (data models, relationships)
|
|
44
|
-
- `frontend` → data.yaml (visual tokens) + design.md (API contracts)
|
|
16
|
+
**Key Distinction:** `design.md` = Technical Architecture, `data.yaml` = Visual Design
|
|
45
17
|
|
|
46
18
|
---
|
|
47
19
|
|
|
@@ -75,16 +47,28 @@ Universal, framework-agnostic template for AI-assisted development.
|
|
|
75
47
|
- `@/.claude/lib/document-loader.md` - Token-efficient loading patterns
|
|
76
48
|
- `@/.claude/contexts/design/index.md` (General design principles - fallback)
|
|
77
49
|
|
|
78
|
-
**Development:**
|
|
79
|
-
|
|
80
|
-
|
|
50
|
+
**Development (Tiered Loading v3.6.0):**
|
|
51
|
+
|
|
52
|
+
*Tier 1 - Core (ALL agents):*
|
|
53
|
+
- `@/.claude/contexts/_core/development-principles.md` - SOLID, DRY, KISS, Fail Fast ✨
|
|
54
|
+
- `@/.claude/contexts/_core/code-standards.md` - Naming, formatting, structure ✨
|
|
55
|
+
|
|
56
|
+
*Tier 2 - Agent-Specific (load by role):*
|
|
57
|
+
- `@/.claude/contexts/patterns/tdd-classification.md` - test-debug agent
|
|
58
|
+
- `@/.claude/contexts/patterns/error-handling.md` - backend, database, frontend
|
|
59
|
+
- `@/.claude/contexts/patterns/logging.md` - backend, database
|
|
60
|
+
- `@/.claude/contexts/patterns/testing.md` - test-debug agent
|
|
61
|
+
- `@/.claude/contexts/patterns/ui-component-consistency.md` - uxui-frontend agent
|
|
62
|
+
- `@/.claude/contexts/patterns/frontend-component-strategy.md` - frontend agent
|
|
63
|
+
|
|
64
|
+
*Tier 3 - On-Demand:*
|
|
81
65
|
- `@/.claude/contexts/patterns/task-classification.md` (Agent selection guide)
|
|
82
66
|
- `@/.claude/contexts/patterns/agent-coordination.md` (When to run agents parallel/sequential)
|
|
83
67
|
- `@/.claude/contexts/patterns/error-recovery.md` (How agents handle errors & escalate)
|
|
84
|
-
- `@/.claude/contexts/patterns/logging.md`
|
|
85
|
-
- `@/.claude/contexts/patterns/testing.md`
|
|
86
68
|
- `@/.claude/contexts/patterns/task-breakdown.md`
|
|
87
|
-
- `@/.claude/contexts/patterns/
|
|
69
|
+
- `@/.claude/contexts/patterns/performance-optimization.md`
|
|
70
|
+
|
|
71
|
+
→ Full mapping: `.claude/agents/_shared/pre-work-checklist.md` (Step 0.4)
|
|
88
72
|
|
|
89
73
|
**Project Setup:**
|
|
90
74
|
- `/extract https://site.com` - Extract design from reference sites
|
|
@@ -179,6 +163,57 @@ Universal, framework-agnostic template for AI-assisted development.
|
|
|
179
163
|
|
|
180
164
|
---
|
|
181
165
|
|
|
166
|
+
## ⚡ Tiered Context Loading (v3.6.0 - NEW!)
|
|
167
|
+
|
|
168
|
+
**→ See:** `@/.claude/agents/_shared/pre-work-checklist.md` (Step 0.4)
|
|
169
|
+
|
|
170
|
+
**Problem Solved:**
|
|
171
|
+
- Loading all 13,000+ lines of contexts wastes tokens
|
|
172
|
+
- Agents load knowledge they don't need (UI agent loads backend patterns)
|
|
173
|
+
- No clear guidance on which contexts are relevant per agent
|
|
174
|
+
|
|
175
|
+
**Solution: 3-Tier Loading System**
|
|
176
|
+
|
|
177
|
+
```
|
|
178
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
179
|
+
│ Tier 1: Core (_core/) ~900 lines ALWAYS LOAD │
|
|
180
|
+
├─────────────────────────────────────────────────────────────┤
|
|
181
|
+
│ development-principles.md (SOLID, DRY, KISS) │
|
|
182
|
+
│ code-standards.md (naming, formatting) │
|
|
183
|
+
└─────────────────────────────────────────────────────────────┘
|
|
184
|
+
↓
|
|
185
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
186
|
+
│ Tier 2: Agent-Specific ~1,500 lines LOAD BY ROLE │
|
|
187
|
+
├─────────────────────────────────────────────────────────────┤
|
|
188
|
+
│ uxui-frontend → design/*.md, ui-component-consistency.md │
|
|
189
|
+
│ backend → error-handling.md, logging.md │
|
|
190
|
+
│ test-debug → tdd-classification.md, testing.md │
|
|
191
|
+
└─────────────────────────────────────────────────────────────┘
|
|
192
|
+
↓
|
|
193
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
194
|
+
│ Tier 3: On-Demand ~300 lines QUERY WHEN NEED │
|
|
195
|
+
├─────────────────────────────────────────────────────────────┤
|
|
196
|
+
│ performance-optimization.md, animation-patterns.md │
|
|
197
|
+
│ git-workflow.md, change-workflow.md │
|
|
198
|
+
└─────────────────────────────────────────────────────────────┘
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
**Token Savings:**
|
|
202
|
+
|
|
203
|
+
| Agent | Before (all) | After (tiered) | Savings |
|
|
204
|
+
|-------|-------------|----------------|---------|
|
|
205
|
+
| uxui-frontend | 13,000 | 3,500 | **73%** |
|
|
206
|
+
| backend | 13,000 | 2,500 | **81%** |
|
|
207
|
+
| test-debug | 13,000 | 2,000 | **85%** |
|
|
208
|
+
| database | 13,000 | 1,800 | **86%** |
|
|
209
|
+
|
|
210
|
+
**File Locations:**
|
|
211
|
+
- Tier 1: `.claude/contexts/_core/`
|
|
212
|
+
- Tier 2: `.claude/contexts/patterns/`, `.claude/contexts/design/`
|
|
213
|
+
- Tier 3: Same folders, loaded on-demand
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
182
217
|
## 🎨 Design System v2.1.0 (YAML-based)
|
|
183
218
|
|
|
184
219
|
**→ See:** `@/.claude/lib/detailed-guides/design-system.md` for complete guide
|
|
@@ -235,7 +270,7 @@ Universal, framework-agnostic template for AI-assisted development.
|
|
|
235
270
|
┌─────────────────────────────────────────────────────────────┐
|
|
236
271
|
│ DETECTION (Post-Work) │
|
|
237
272
|
├─────────────────────────────────────────────────────────────┤
|
|
238
|
-
│ ux-tester →
|
|
273
|
+
│ ux-tester → agent-browser Style Comparison │
|
|
239
274
|
│ Compare computed styles vs data.yaml tokens │
|
|
240
275
|
└─────────────────────────────────────────────────────────────┘
|
|
241
276
|
```
|
|
@@ -255,7 +290,7 @@ Universal, framework-agnostic template for AI-assisted development.
|
|
|
255
290
|
|-------|------------|
|
|
256
291
|
| Main Claude | Pre-flight check before invoking uxui-frontend |
|
|
257
292
|
| uxui-frontend | STEP 0.5: Read data.yaml, report loaded tokens |
|
|
258
|
-
| ux-tester | Step 5.5:
|
|
293
|
+
| ux-tester | Step 5.5: agent-browser validation |
|
|
259
294
|
|
|
260
295
|
**Files Updated:**
|
|
261
296
|
- `.claude/lib/design-validator.md` (NEW - Single Source of Truth)
|
|
@@ -363,7 +398,8 @@ User: "Build login system"
|
|
|
363
398
|
**Recent versions:**
|
|
364
399
|
| Version | Key Feature |
|
|
365
400
|
|---------|-------------|
|
|
366
|
-
| v3.
|
|
401
|
+
| v3.6.0 | **Tiered Context Loading** (50-80% token savings per agent) |
|
|
402
|
+
| v3.5.2 | UX Tester v3.0 (Inline Output - ไม่สร้างไฟล์, verbose ได้) |
|
|
367
403
|
| v3.5.1 | UX Tester v2.1 (Format Enforcement - MAX 150 lines) |
|
|
368
404
|
| v3.5.0 | UX Tester v2.0 (Token Optimized + Human Testing Guide) |
|
|
369
405
|
| v3.4.0 | Complete Pseudocode Elimination (~3,210 lines → imperative instructions) |
|
|
@@ -544,3 +580,25 @@ Agents query claude-mem in STEP 0 before implementation:
|
|
|
544
580
|
---
|
|
545
581
|
|
|
546
582
|
**💡 Remember:** This template is universal. Use Context7 for framework-specific docs!
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
<claude-mem-context>
|
|
586
|
+
# Recent Activity
|
|
587
|
+
|
|
588
|
+
<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->
|
|
589
|
+
|
|
590
|
+
### Feb 3, 2026
|
|
591
|
+
|
|
592
|
+
| ID | Time | T | Title | Read |
|
|
593
|
+
|----|------|---|-------|------|
|
|
594
|
+
| #252 | 11:38 PM | 🔵 | Git status reveals extensive refactoring with skills migration and core context reorganization | ~682 |
|
|
595
|
+
| #235 | 11:24 PM | ✅ | Updated CLAUDE.md design validation table to reference agent-browser | ~330 |
|
|
596
|
+
| #234 | 11:23 PM | 🔵 | Design validation system uses Chrome DevTools for post-work style comparison by ux-tester | ~689 |
|
|
597
|
+
| #232 | 11:22 PM | 🔵 | Found two more Chrome DevTools references in CLAUDE.md design validation section | ~488 |
|
|
598
|
+
| #190 | 11:14 PM | ✅ | Updated CLAUDE.md to version 3.7.0 with skills-based architecture | ~405 |
|
|
599
|
+
| #189 | 11:13 PM | 🔵 | CLAUDE.md navigation hub reveals template v3.7.0 with skills-based architecture and tiered loading | ~953 |
|
|
600
|
+
| #188 | 11:12 PM | 🔄 | Simplified CLAUDE.md header with condensed file naming conventions table | ~577 |
|
|
601
|
+
| #187 | " | 🔵 | CLAUDE.md navigation hub reveals comprehensive template architecture v3.6.0 | ~1396 |
|
|
602
|
+
| #186 | 11:11 PM | 🔵 | Reviewed CLAUDE.md navigation hub revealing complete template architecture and versioning | ~1048 |
|
|
603
|
+
| #185 | 11:10 PM | 🔵 | CLAUDE.md serves as comprehensive navigation hub for multi-agent system | ~1019 |
|
|
604
|
+
</claude-mem-context>
|
|
File without changes
|
|
@@ -395,7 +395,7 @@ OR
|
|
|
395
395
|
Next Step: {next task or agent}
|
|
396
396
|
```
|
|
397
397
|
|
|
398
|
-
**IMPORTANT:** Include token usage report in final output. ux-tester will validate these against data.yaml using
|
|
398
|
+
**IMPORTANT:** Include token usage report in final output. ux-tester will validate these against data.yaml using agent-browser.
|
|
399
399
|
|
|
400
400
|
---
|
|
401
401
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ux-tester
|
|
3
|
-
description: UX Testing Agent - Tests UI from user personas via
|
|
3
|
+
description: UX Testing Agent - Tests UI from user personas via agent-browser. Outputs verbose inline report (NO file creation).
|
|
4
4
|
model: opus
|
|
5
5
|
color: green
|
|
6
6
|
---
|
|
@@ -28,7 +28,7 @@ color: green
|
|
|
28
28
|
1. Load Context (proposal.md, page-plan.md, tasks.md, data.yaml)
|
|
29
29
|
2. Generate 3-5 Personas (name, %, goal, techSavvy, patience)
|
|
30
30
|
3. Find Dev Server (ports: 3000, 3001, 5173, 8080, 4200)
|
|
31
|
-
4. Test Each Persona via
|
|
31
|
+
4. Test Each Persona via agent-browser
|
|
32
32
|
5. Design Compliance Check (if data.yaml exists)
|
|
33
33
|
6. Output Report ใน Response (ไม่สร้างไฟล์)
|
|
34
34
|
|
|
@@ -142,16 +142,22 @@ Note violations (colors, spacing, animation).
|
|
|
142
142
|
|
|
143
143
|
---
|
|
144
144
|
|
|
145
|
-
##
|
|
146
|
-
|
|
147
|
-
|
|
|
148
|
-
|
|
149
|
-
|
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
-
| click
|
|
153
|
-
| fill
|
|
154
|
-
|
|
|
145
|
+
## agent-browser Commands
|
|
146
|
+
|
|
147
|
+
| Command | Use |
|
|
148
|
+
|---------|-----|
|
|
149
|
+
| `agent-browser open <url>` | Navigate to page |
|
|
150
|
+
| `agent-browser screenshot` | Overview capture |
|
|
151
|
+
| `agent-browser snapshot -i` | Get interactive elements |
|
|
152
|
+
| `agent-browser click @ref` | Click element |
|
|
153
|
+
| `agent-browser fill @ref "text"` | Fill form |
|
|
154
|
+
| `agent-browser scroll down 500` | Scroll page |
|
|
155
|
+
|
|
156
|
+
**Mobile testing:**
|
|
157
|
+
```bash
|
|
158
|
+
agent-browser -p ios --device "iPhone 16 Pro" open <url>
|
|
159
|
+
agent-browser -p ios snapshot -i
|
|
160
|
+
```
|
|
155
161
|
|
|
156
162
|
---
|
|
157
163
|
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
| #225 | 11:22 PM | 🔵 | Found Chrome DevTools reference in uxui-frontend agent documentation requiring update | ~445 |
|
|
12
|
+
| #202 | 11:20 PM | ✅ | Updated ux-tester agent to use agent-browser CLI instead of Chrome DevTools MCP | ~644 |
|
|
13
|
+
| #201 | " | ✅ | Updated UX Tester agent to use agent-browser instead of Chrome DevTools | ~378 |
|
|
14
|
+
| #200 | " | ✅ | Updated ux-tester agent to use agent-browser instead of Chrome DevTools | ~374 |
|
|
15
|
+
| #194 | " | 🔵 | UX Tester Agent v3.0 uses inline verbose output without file creation | ~884 |
|
|
16
|
+
| #172 | 9:56 PM | 🔵 | Backend agent creates API endpoints with validation and business logic | ~539 |
|
|
17
|
+
| #171 | " | 🔵 | uxui-frontend agent handles UI development with mock data and design validation | ~516 |
|
|
18
|
+
</claude-mem-context>
|
|
@@ -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>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Pre-Work Checklist (Shared by All Agents)
|
|
2
2
|
|
|
3
|
-
> **Version:** 3.
|
|
3
|
+
> **Version:** 3.6.0 (Tiered Context Loading)
|
|
4
4
|
> **Purpose:** Single source of truth for pre-work validation
|
|
5
5
|
|
|
6
6
|
---
|
|
@@ -210,10 +210,53 @@ Result: #12345 - "Chose rotating refresh tokens with Redis storage"
|
|
|
210
210
|
|
|
211
211
|
---
|
|
212
212
|
|
|
213
|
+
### Step 0.4: Tiered Context Loading (v3.6.0 - NEW)
|
|
214
|
+
|
|
215
|
+
**Load contexts based on tier system for token efficiency:**
|
|
216
|
+
|
|
217
|
+
WHY: Loading all 13,000+ lines of contexts wastes tokens. Load only what's relevant for your role.
|
|
218
|
+
|
|
219
|
+
#### Tier 1: Core (ALL agents load these)
|
|
220
|
+
|
|
221
|
+
```
|
|
222
|
+
@/.claude/contexts/_core/development-principles.md (SOLID, DRY, KISS)
|
|
223
|
+
@/.claude/contexts/_core/code-standards.md (naming, formatting)
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
#### Tier 2: Agent-Specific (load based on your role)
|
|
227
|
+
|
|
228
|
+
| Agent | Contexts to Load |
|
|
229
|
+
|-------|-----------------|
|
|
230
|
+
| **uxui-frontend** | `design/*.md`, `patterns/ui-component-consistency.md`, `patterns/animation-patterns.md` |
|
|
231
|
+
| **frontend** | `design/color-theory.md`, `patterns/error-handling.md`, `patterns/frontend-component-strategy.md` |
|
|
232
|
+
| **backend** | `patterns/error-handling.md`, `patterns/logging.md`, `patterns/validation-framework.md` |
|
|
233
|
+
| **database** | `patterns/error-handling.md`, `patterns/logging.md` |
|
|
234
|
+
| **test-debug** | `patterns/tdd-classification.md`, `patterns/testing.md`, `patterns/error-recovery.md` |
|
|
235
|
+
| **integration** | `patterns/error-handling.md`, `patterns/validation-framework.md` |
|
|
236
|
+
| **ux-tester** | `design/accessibility.md`, `design/color-theory.md` |
|
|
237
|
+
|
|
238
|
+
#### Tier 3: On-Demand (query when specific topic arises)
|
|
239
|
+
|
|
240
|
+
Don't pre-load these. Read only when the task specifically requires:
|
|
241
|
+
- `patterns/performance-optimization.md` - When optimizing
|
|
242
|
+
- `patterns/animation-patterns.md` - When adding animations (non-uxui agents)
|
|
243
|
+
- `patterns/git-workflow.md` - When handling git operations
|
|
244
|
+
- `patterns/change-workflow.md` - When managing change lifecycle
|
|
245
|
+
|
|
246
|
+
**Report in validation:**
|
|
247
|
+
```markdown
|
|
248
|
+
Contexts Loaded: (Step 0.4)
|
|
249
|
+
- Tier 1 (Core): development-principles.md, code-standards.md
|
|
250
|
+
- Tier 2 (Agent): {list based on agent type}
|
|
251
|
+
- Tier 3 (On-Demand): {only if task requires specific topic}
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
213
256
|
### Step 1-4: Standard Checks
|
|
214
257
|
|
|
215
258
|
1. **Context Discovery** - Load project context via agent-discovery.md
|
|
216
|
-
2. **Pattern Loading** -
|
|
259
|
+
2. **Pattern Loading** - (Now covered by Step 0.4 Tiered Loading)
|
|
217
260
|
3. **Validation Report** - Provide pre-implementation validation report
|
|
218
261
|
4. **Wait for Approval** - Proceed only after orchestrator validation
|
|
219
262
|
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
| #219 | 11:22 PM | ✅ | Updated cdev command validation requirements for ux-tester from Chrome DevTools to agent-browser | ~488 |
|
|
12
|
+
| #216 | 11:21 PM | 🔵 | Examined cdev command validation checklist for ux-tester agent | ~486 |
|
|
13
|
+
| #214 | " | ✅ | Replaced Chrome DevTools references with agent-browser in extract command | ~592 |
|
|
14
|
+
| #210 | " | ✅ | Updated extract command error handling to reference agent-browser instead of Chrome DevTools MCP | ~430 |
|
|
15
|
+
| #209 | " | ✅ | Updated extract command to use agent-browser for full-page screenshots | ~386 |
|
|
16
|
+
| #208 | " | ✅ | Updated extract command to use agent-browser CLI instead of Chrome DevTools MCP | ~350 |
|
|
17
|
+
| #198 | 11:20 PM | 🔵 | Extract command remains as full markdown specification in commands directory | ~776 |
|
|
18
|
+
| #181 | 11:09 PM | 🔵 | /pageplan command generates visual page planning with wireframes, animations, and asset checklists | ~971 |
|
|
19
|
+
| #168 | 9:55 PM | 🔵 | csetup command orchestrates AI-driven task analysis and agent workflow generation | ~572 |
|
|
20
|
+
</claude-mem-context>
|
package/.claude/commands/cdev.md
CHANGED
|
@@ -418,7 +418,7 @@ See `.claude/contexts/patterns/validation-framework.md` for complete checklist p
|
|
|
418
418
|
- frontend: API Contract Verification, State Management, Error Handling
|
|
419
419
|
- test-debug: Test Infrastructure, Coverage Targets, Test Plan
|
|
420
420
|
- integration: Contract Collection, Schema Validation, Data Flow Analysis
|
|
421
|
-
- ux-tester: Personas Generated, Dev Server Found,
|
|
421
|
+
- ux-tester: Personas Generated, Dev Server Found, agent-browser Connected
|
|
422
422
|
|
|
423
423
|
---
|
|
424
424
|
|
|
@@ -761,7 +761,7 @@ Continue? (yes/no)
|
|
|
761
761
|
[Continues...]
|
|
762
762
|
|
|
763
763
|
🛑 Phase 3 requires manual testing.
|
|
764
|
-
Test visual consistency using
|
|
764
|
+
Test visual consistency using agent-browser.
|
|
765
765
|
When done: /cdev CHANGE-003 --continue
|
|
766
766
|
|
|
767
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>
|