@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
@@ -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/STYLE_TOKENS.json`** (lightweight, ~500 tokens) ✅
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/STYLE_TOKENS.json` // 🆕 Lightweight tokens
76
- const styleGuidePath = `design-system/STYLE_GUIDE.md` // Validate only, don't load
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 (STYLE_TOKENS.json)\n\n`
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 STYLE_GUIDE.md exists (don't load!)
135
- const hasStyleGuide = fileExists(styleGuidePath)
136
- if (!hasStyleGuide) {
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 (vs 5K+ if loading full STYLE_GUIDE.md)
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/STYLE_TOKENS.json` (animation tokens)
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 STYLE_TOKENS.json:**
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 STYLE_TOKENS.json (150/300/500ms)
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 + STYLE_TOKENS.json
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 STYLE_GUIDE colors
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 (lightweight): \`design-system/STYLE_TOKENS.json\`
592
- - Full guide (reference): \`design-system/STYLE_GUIDE.md\`
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 STYLE_TOKENS.json]
596
- - Font family: [from STYLE_TOKENS.json]
597
- - Spacing scale: [from STYLE_TOKENS.json]
598
- - Component library: [from STYLE_TOKENS.json]
599
- - Shadows: [from STYLE_TOKENS.json]
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 STYLE_TOKENS.json in STEP 0.5
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. **STYLE_GUIDE.md missing:**
706
- - Warning: "No STYLE_GUIDE.md found. Run /designsetup first for best results."
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
- tokens.json page-plan.md research uxui-frontend
730
+ data.yaml page-plan.md research uxui-frontend
733
731
  patterns/ (visual) -checklist reads both
734
- STYLE_GUIDE (content)
732
+ README.md (content)
735
733
  ```
736
734
 
737
735
  **Separation of Concerns:**