@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
|
@@ -26,8 +26,7 @@
|
|
|
26
26
|
- Always reads `openspec/changes/{change-id}/proposal.md` (if exists)
|
|
27
27
|
- Always reads `openspec/changes/{change-id}/tasks.md` (for page type detection)
|
|
28
28
|
- **Always reads `openspec/changes/{change-id}/.claude/phases.md`** (if exists - for phase info) ✅ NEW v2.6.0
|
|
29
|
-
- **Always reads `design-system/
|
|
30
|
-
- Validates `design-system/STYLE_GUIDE.md` exists (doesn't load full content)
|
|
29
|
+
- **Always reads `design-system/data.yaml`** (design tokens + psychology, ~500 tokens) ✅
|
|
31
30
|
|
|
32
31
|
2. **Searches Existing Components:**
|
|
33
32
|
- Glob: `**/{Navbar,Footer,Sidebar,Header}*.{tsx,jsx,vue}`
|
|
@@ -72,8 +71,8 @@ const userFiles = extractMentionedFiles(userMessage) // @prd.md, @brief.md
|
|
|
72
71
|
|
|
73
72
|
// Always read (if exists)
|
|
74
73
|
const proposalPath = `openspec/changes/${changeId}/proposal.md`
|
|
75
|
-
const tokensPath = `design-system/
|
|
76
|
-
|
|
74
|
+
const tokensPath = `design-system/data.yaml` // Design tokens + psychology
|
|
75
|
+
// data.yaml contains all design information - single source of truth
|
|
77
76
|
|
|
78
77
|
const contextFiles = [
|
|
79
78
|
...userFiles,
|
|
@@ -124,20 +123,19 @@ if (briefFile && fileExists(briefFile)) {
|
|
|
124
123
|
// 🆕 Load design tokens (lightweight)
|
|
125
124
|
if (fileExists(tokensPath)) {
|
|
126
125
|
const tokens = JSON.parse(Read(tokensPath))
|
|
127
|
-
context += `\n\n---\n\n# Design Tokens (
|
|
126
|
+
context += `\n\n---\n\n# Design Tokens (data.yaml)\n\n`
|
|
128
127
|
context += `Primary Color: ${tokens.tokens.colors.primary.DEFAULT}\n`
|
|
129
128
|
context += `Spacing Scale: ${tokens.tokens.spacing.scale.join(', ')}px\n`
|
|
130
129
|
context += `Component Library: ${tokens.component_library.name}\n`
|
|
131
130
|
context += `Shadows: ${Object.keys(tokens.tokens.shadows).join(', ')}\n`
|
|
132
131
|
}
|
|
133
132
|
|
|
134
|
-
// Validate
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
warn(`⚠️ No STYLE_GUIDE.md found - run /designsetup first`)
|
|
133
|
+
// Validate data.yaml exists
|
|
134
|
+
if (!fileExists(tokensPath)) {
|
|
135
|
+
warn(`⚠️ No data.yaml found - run /designsetup first`)
|
|
138
136
|
}
|
|
139
137
|
|
|
140
|
-
// Total context: ~1.5K tokens (
|
|
138
|
+
// Total context: ~1.5K tokens (data.yaml is lightweight)
|
|
141
139
|
```
|
|
142
140
|
|
|
143
141
|
### STEP 3: Search Existing Components
|
|
@@ -312,12 +310,12 @@ Based on context + found components, generate:
|
|
|
312
310
|
## 2.6. 🎬 Animation Blueprint (Micro-interactions)
|
|
313
311
|
|
|
314
312
|
> **Purpose:** Define animation strategy BEFORE implementation to ensure consistency and polish
|
|
315
|
-
> **Source:** `design-system/
|
|
313
|
+
> **Source:** `design-system/data.yaml` (animation tokens)
|
|
316
314
|
> **Philosophy:** Match Flow Engineer Step 3 - Design animations systematically, not randomly
|
|
317
315
|
|
|
318
316
|
### Animation Principles
|
|
319
317
|
|
|
320
|
-
**From
|
|
318
|
+
**From data.yaml:**
|
|
321
319
|
- **Durations:** 150ms (quick), 300ms (normal), 500ms (slow)
|
|
322
320
|
- **Easing:** ease-in-out (default), cubic-bezier for custom
|
|
323
321
|
- **Properties:** GPU-accelerated ONLY (transform, opacity) - NOT width, height, top, left
|
|
@@ -512,7 +510,7 @@ className="hover:scale-105 transform"
|
|
|
512
510
|
- [ ] All buttons use scale + shadow pattern (150ms)
|
|
513
511
|
- [ ] All cards use shadow elevation pattern (300ms)
|
|
514
512
|
- [ ] All inputs use ring pattern (200ms)
|
|
515
|
-
- [ ] All durations from
|
|
513
|
+
- [ ] All durations from data.yaml (150/300/500ms)
|
|
516
514
|
- [ ] All properties GPU-accelerated (transform, opacity)
|
|
517
515
|
- [ ] No random durations (e.g., 200ms, 400ms) unless intentional
|
|
518
516
|
- [ ] Tested on mobile (animations not janky)
|
|
@@ -528,7 +526,7 @@ className="hover:scale-105 transform"
|
|
|
528
526
|
4. **Short Durations (150-300ms):** Feels responsive, not sluggish
|
|
529
527
|
5. **GPU Properties:** 60fps smooth animations, no jank
|
|
530
528
|
|
|
531
|
-
**Inspiration:** Based on extracted animations from reference sites +
|
|
529
|
+
**Inspiration:** Based on extracted animations from reference sites + data.yaml
|
|
532
530
|
|
|
533
531
|
---
|
|
534
532
|
|
|
@@ -573,7 +571,7 @@ className="hover:scale-105 transform"
|
|
|
573
571
|
→ **Format:** SVG (preferred) or PNG sprite (if 10+ icons)
|
|
574
572
|
→ **Optimization:** Remove unnecessary metadata (use SVGO)
|
|
575
573
|
→ **Place at:** `/public/icons/` or inline in component
|
|
576
|
-
→ **Style:** Match
|
|
574
|
+
→ **Style:** Match data.yaml colors
|
|
577
575
|
→ **Estimated size:** 1-3KB per icon
|
|
578
576
|
|
|
579
577
|
**If using 10+ icons:** Consider SVG sprite sheet (combine → 1 HTTP request)
|
|
@@ -588,18 +586,18 @@ className="hover:scale-105 transform"
|
|
|
588
586
|
## 4. Design Notes
|
|
589
587
|
|
|
590
588
|
**Design System Files:**
|
|
591
|
-
- Tokens
|
|
592
|
-
-
|
|
589
|
+
- Tokens + Psychology: \`design-system/data.yaml\` (agent reads this)
|
|
590
|
+
- Human summary: \`design-system/README.md\` (for humans)
|
|
593
591
|
|
|
594
592
|
**Key Design Tokens:**
|
|
595
|
-
- Primary color: [from
|
|
596
|
-
- Font family: [from
|
|
597
|
-
- Spacing scale: [from
|
|
598
|
-
- Component library: [from
|
|
599
|
-
- Shadows: [from
|
|
593
|
+
- Primary color: [from data.yaml]
|
|
594
|
+
- Font family: [from data.yaml]
|
|
595
|
+
- Spacing scale: [from data.yaml]
|
|
596
|
+
- Component library: [from data.yaml]
|
|
597
|
+
- Shadows: [from data.yaml]
|
|
600
598
|
|
|
601
599
|
**Agent Instructions:**
|
|
602
|
-
- uxui-frontend reads
|
|
600
|
+
- uxui-frontend reads data.yaml in STEP 0.5
|
|
603
601
|
- Use theme tokens (text-foreground/70) for theme-awareness
|
|
604
602
|
- Use spacing scale (p-4, p-6) for consistency
|
|
605
603
|
|
|
@@ -702,8 +700,8 @@ Result:
|
|
|
702
700
|
- Warning: "This change appears to be backend/API work. /pageplan is for UI tasks."
|
|
703
701
|
- Ask: "Continue anyway? (Y/N)"
|
|
704
702
|
|
|
705
|
-
4. **
|
|
706
|
-
- Warning: "No
|
|
703
|
+
4. **data.yaml missing:**
|
|
704
|
+
- Warning: "No data.yaml found. Run /designsetup first for best results."
|
|
707
705
|
- Continue: Use general design principles as fallback
|
|
708
706
|
|
|
709
707
|
---
|
|
@@ -729,9 +727,9 @@ Result:
|
|
|
729
727
|
```
|
|
730
728
|
/designsetup → /pageplan → /csetup → /cdev
|
|
731
729
|
↓ ↓ ↓ ↓
|
|
732
|
-
|
|
730
|
+
data.yaml page-plan.md research uxui-frontend
|
|
733
731
|
patterns/ (visual) -checklist reads both
|
|
734
|
-
|
|
732
|
+
README.md (content)
|
|
735
733
|
```
|
|
736
734
|
|
|
737
735
|
**Separation of Concerns:**
|