@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.
Files changed (141) hide show
  1. package/.claude/CHANGELOG.md +60 -0
  2. package/.claude/CLAUDE.md +105 -45
  3. package/.claude/agents/01-integration.md +0 -0
  4. package/.claude/agents/02-uxui-frontend.md +1 -1
  5. package/.claude/agents/03-test-debug.md +0 -0
  6. package/.claude/agents/04-frontend.md +0 -0
  7. package/.claude/agents/05-backend.md +0 -0
  8. package/.claude/agents/06-database.md +0 -0
  9. package/.claude/agents/07-ux-tester.md +92 -84
  10. package/.claude/agents/CLAUDE.md +18 -0
  11. package/.claude/agents/_shared/CLAUDE.md +11 -0
  12. package/.claude/agents/_shared/README.md +0 -0
  13. package/.claude/agents/_shared/agent-boundaries.md +0 -0
  14. package/.claude/agents/_shared/documentation-policy.md +0 -0
  15. package/.claude/agents/_shared/package-manager.md +0 -0
  16. package/.claude/agents/_shared/pre-work-checklist.md +45 -2
  17. package/.claude/commands/CLAUDE.md +20 -0
  18. package/.claude/commands/cdev.md +20 -4
  19. package/.claude/commands/csetup.md +0 -0
  20. package/.claude/commands/cstatus.md +0 -0
  21. package/.claude/commands/cview.md +0 -0
  22. package/.claude/commands/designsetup.md +0 -0
  23. package/.claude/commands/extract.md +22 -20
  24. package/.claude/commands/pageplan.md +0 -0
  25. package/.claude/commands/pstatus.md +0 -0
  26. package/.claude/contexts/_core/CLAUDE.md +11 -0
  27. package/.claude/contexts/_core/README.md +33 -0
  28. package/.claude/contexts/{patterns → _core}/code-standards.md +0 -0
  29. package/.claude/contexts/{patterns → _core}/development-principles.md +0 -0
  30. package/.claude/contexts/design/CLAUDE.md +17 -0
  31. package/.claude/contexts/design/accessibility.md +2 -2
  32. package/.claude/contexts/design/box-thinking.md +0 -0
  33. package/.claude/contexts/design/color-theory.md +2 -2
  34. package/.claude/contexts/design/index.md +0 -0
  35. package/.claude/contexts/design/layout.md +0 -0
  36. package/.claude/contexts/design/responsive.md +0 -0
  37. package/.claude/contexts/design/shadows.md +0 -0
  38. package/.claude/contexts/design/spacing.md +0 -0
  39. package/.claude/contexts/design/typography.md +0 -0
  40. package/.claude/contexts/domain/README.md +0 -0
  41. package/.claude/contexts/patterns/CLAUDE.md +13 -0
  42. package/.claude/contexts/patterns/agent-coordination.md +0 -0
  43. package/.claude/contexts/patterns/agent-discovery.md +0 -0
  44. package/.claude/contexts/patterns/animation-patterns.md +0 -0
  45. package/.claude/contexts/patterns/change-workflow.md +1 -1
  46. package/.claude/contexts/patterns/error-handling.md +0 -0
  47. package/.claude/contexts/patterns/error-recovery.md +0 -0
  48. package/.claude/contexts/patterns/frontend-component-strategy.md +0 -0
  49. package/.claude/contexts/patterns/git-workflow.md +0 -0
  50. package/.claude/contexts/patterns/logging.md +0 -0
  51. package/.claude/contexts/patterns/performance-optimization.md +1 -1
  52. package/.claude/contexts/patterns/task-breakdown.md +0 -0
  53. package/.claude/contexts/patterns/task-classification.md +0 -0
  54. package/.claude/contexts/patterns/tdd-classification.md +0 -0
  55. package/.claude/contexts/patterns/testing.md +0 -0
  56. package/.claude/contexts/patterns/ui-component-consistency.md +0 -0
  57. package/.claude/contexts/patterns/validation-framework.md +0 -0
  58. package/.claude/lib/CLAUDE.md +19 -0
  59. package/.claude/lib/README.md +1 -1
  60. package/.claude/lib/agent-executor.md +1 -1
  61. package/.claude/lib/agent-router.md +0 -0
  62. package/.claude/lib/context-loading-protocol.md +0 -0
  63. package/.claude/lib/design-validator.md +8 -8
  64. package/.claude/lib/detailed-guides/agent-system.md +0 -0
  65. package/.claude/lib/detailed-guides/best-practices-system.md +0 -0
  66. package/.claude/lib/detailed-guides/context-optimization.md +0 -0
  67. package/.claude/lib/detailed-guides/design-system.md +0 -0
  68. package/.claude/lib/detailed-guides/incremental-testing.md +0 -0
  69. package/.claude/lib/detailed-guides/page-planning.md +0 -0
  70. package/.claude/lib/detailed-guides/taskmaster-analysis.md +0 -0
  71. package/.claude/lib/document-loader.md +0 -0
  72. package/.claude/lib/feature-best-practices.md +0 -0
  73. package/.claude/lib/flags-updater.md +0 -0
  74. package/.claude/lib/handoff-protocol.md +0 -0
  75. package/.claude/lib/task-analyzer.md +2 -2
  76. package/.claude/lib/tdd-workflow.md +0 -0
  77. package/.claude/lib/validation-gates.md +0 -0
  78. package/.claude/settings.local.json +0 -0
  79. package/.claude/templates/PROJECT_STATUS.template.yml +0 -0
  80. package/.claude/templates/STYLE_GUIDE.template.md +0 -0
  81. package/.claude/templates/context-template.md +0 -0
  82. package/.claude/templates/design-context-template.md +0 -0
  83. package/.claude/templates/flags-template.json +0 -0
  84. package/.claude/templates/page-plan-example.md +0 -0
  85. package/.claude/templates/phases-sections/CLAUDE.md +13 -0
  86. package/.claude/templates/phases-sections/accessibility-test.md +0 -0
  87. package/.claude/templates/phases-sections/api-design.md +0 -0
  88. package/.claude/templates/phases-sections/backend-tests.md +0 -0
  89. package/.claude/templates/phases-sections/backend.md +0 -0
  90. package/.claude/templates/phases-sections/business-logic-validation.md +0 -0
  91. package/.claude/templates/phases-sections/component-tests.md +0 -0
  92. package/.claude/templates/phases-sections/contract-backend.md +0 -0
  93. package/.claude/templates/phases-sections/contract-frontend.md +0 -0
  94. package/.claude/templates/phases-sections/database.md +0 -0
  95. package/.claude/templates/phases-sections/e2e-tests.md +0 -0
  96. package/.claude/templates/phases-sections/fix-implementation.md +0 -0
  97. package/.claude/templates/phases-sections/frontend-integration.md +0 -0
  98. package/.claude/templates/phases-sections/frontend-mockup.md +0 -0
  99. package/.claude/templates/phases-sections/manual-flow-test.md +0 -0
  100. package/.claude/templates/phases-sections/manual-ux-test.md +0 -0
  101. package/.claude/templates/phases-sections/refactor-implementation.md +0 -0
  102. package/.claude/templates/phases-sections/refactor.md +0 -0
  103. package/.claude/templates/phases-sections/regression-tests.md +0 -0
  104. package/.claude/templates/phases-sections/responsive-test.md +0 -0
  105. package/.claude/templates/phases-sections/script-implementation.md +0 -0
  106. package/.claude/templates/phases-sections/test-coverage.md +0 -0
  107. package/.claude/templates/phases-sections/user-approval.md +0 -0
  108. package/.claude/templates/phases-sections/ux-testing.md +6 -10
  109. package/LICENSE +0 -0
  110. package/README.md +0 -0
  111. package/bin/CLAUDE.md +11 -0
  112. package/bin/cli.js +0 -0
  113. package/lib/CLAUDE.md +11 -0
  114. package/lib/helpers.js +0 -0
  115. package/lib/init.js +0 -0
  116. package/lib/update.js +0 -0
  117. package/package.json +3 -2
  118. package/skills/design-extract/CLAUDE.md +12 -0
  119. package/skills/design-extract/SKILL.md +76 -0
  120. package/skills/design-extract/references/CLAUDE.md +16 -0
  121. package/skills/design-extract/references/error-handling.md +161 -0
  122. package/skills/design-extract/references/extraction-steps.md +183 -0
  123. package/skills/design-extract/references/output-format.md +250 -0
  124. package/skills/design-extract/references/style-detection.md +137 -0
  125. package/skills/design-extract/templates/CLAUDE.md +11 -0
  126. package/skills/design-extract/templates/data.yaml.template +95 -0
  127. package/skills/design-setup/CLAUDE.md +11 -0
  128. package/skills/design-setup/SKILL.md +104 -0
  129. package/skills/design-setup/references/CLAUDE.md +11 -0
  130. package/skills/design-setup/references/data-yaml-schema.md +205 -0
  131. package/skills/design-setup/references/error-handling.md +157 -0
  132. package/skills/design-setup/references/generation-steps.md +192 -0
  133. package/skills/design-setup/references/interactive-workflow.md +151 -0
  134. package/skills/page-planner/CLAUDE.md +11 -0
  135. package/skills/page-planner/SKILL.md +112 -0
  136. package/skills/page-planner/references/CLAUDE.md +11 -0
  137. package/skills/page-planner/references/animation-patterns.md +169 -0
  138. package/skills/page-planner/references/generation-steps.md +166 -0
  139. package/skills/page-planner/references/wireframe-patterns.md +182 -0
  140. package/skills/page-planner/templates/CLAUDE.md +11 -0
  141. package/skills/page-planner/templates/page-plan.md +303 -0
@@ -0,0 +1,205 @@
1
+ # data.yaml Schema
2
+
3
+ Complete schema for the generated design system file.
4
+
5
+ ---
6
+
7
+ ## File Location
8
+
9
+ ```
10
+ design-system/data.yaml
11
+ ```
12
+
13
+ ---
14
+
15
+ ## Complete Schema
16
+
17
+ ```yaml
18
+ # Design System
19
+ # Generated by: /designsetup
20
+ # Source: {site}
21
+ # Style: {style}
22
+
23
+ meta:
24
+ generated_at: "2026-02-03T15:30:00Z"
25
+ source_site: "airbnb"
26
+ style: "Modern SaaS"
27
+ theme: "Travel & Adventure"
28
+
29
+ psychology:
30
+ style_classification: "Modern SaaS"
31
+
32
+ emotions_evoked:
33
+ - emotion: "Trust"
34
+ reason: "Clean typography and ample whitespace"
35
+ - emotion: "Excitement"
36
+ reason: "Vibrant accent colors"
37
+
38
+ target_audience:
39
+ primary:
40
+ description: "Young professionals"
41
+ age_range: "25-40"
42
+ tech_savvy: "high"
43
+ secondary:
44
+ description: "Families"
45
+ age_range: "30-50"
46
+
47
+ visual_principles:
48
+ - name: "Hierarchy"
49
+ description: "Clear visual hierarchy"
50
+ - name: "Whitespace"
51
+ description: "Generous padding"
52
+
53
+ why_it_works:
54
+ - "Large hero images create emotional connection"
55
+ - "Simple navigation reduces cognitive load"
56
+
57
+ design_philosophy:
58
+ core_belief: "Design should feel human"
59
+ key_principles:
60
+ - "Simplicity over complexity"
61
+ - "Content-first approach"
62
+
63
+ style:
64
+ detected: "Modern SaaS"
65
+ characteristics:
66
+ - "Clean lines"
67
+ - "Soft shadows"
68
+ - "Rounded corners"
69
+ feel: "Professional yet approachable"
70
+
71
+ colors:
72
+ primary:
73
+ DEFAULT: "#FF5A5F"
74
+ foreground: "#ffffff"
75
+ hover: "#E04E52"
76
+ secondary:
77
+ DEFAULT: "#00A699"
78
+ foreground: "#ffffff"
79
+ hover: "#008F84"
80
+ background:
81
+ DEFAULT: "#ffffff"
82
+ muted: "#f1f5f9"
83
+ subtle: "#f8fafc"
84
+ foreground:
85
+ DEFAULT: "#0a0a0a"
86
+ muted: "#64748b"
87
+ subtle: "#94a3b8"
88
+ accent:
89
+ DEFAULT: "#f97316"
90
+ foreground: "#ffffff"
91
+ semantic:
92
+ success: "#10b981"
93
+ warning: "#f59e0b"
94
+ error: "#ef4444"
95
+ info: "#3b82f6"
96
+
97
+ typography:
98
+ font_family:
99
+ sans: "'Inter', sans-serif"
100
+ heading: "'Inter', sans-serif"
101
+ mono: "'Fira Code', monospace"
102
+ weights:
103
+ - "400"
104
+ - "500"
105
+ - "600"
106
+ - "700"
107
+ sizes:
108
+ xs: "12px"
109
+ sm: "14px"
110
+ base: "16px"
111
+ lg: "18px"
112
+ xl: "20px"
113
+ 2xl: "24px"
114
+ 3xl: "30px"
115
+ 4xl: "36px"
116
+ 5xl: "48px"
117
+
118
+ spacing:
119
+ base: "8px"
120
+ scale:
121
+ - 4
122
+ - 8
123
+ - 12
124
+ - 16
125
+ - 24
126
+ - 32
127
+ - 48
128
+ - 64
129
+ - 96
130
+
131
+ border_radius:
132
+ sm: "4px"
133
+ md: "8px"
134
+ lg: "12px"
135
+ full: "9999px"
136
+
137
+ shadows:
138
+ sm: "0 1px 2px rgba(0, 0, 0, 0.05)"
139
+ md: "0 4px 6px rgba(0, 0, 0, 0.1)"
140
+ lg: "0 10px 15px rgba(0, 0, 0, 0.1)"
141
+
142
+ animations:
143
+ durations:
144
+ fast: "150ms"
145
+ normal: "200ms"
146
+ slow: "300ms"
147
+ easing:
148
+ default: "ease-in-out"
149
+ bounce: "cubic-bezier(0.68, -0.55, 0.265, 1.55)"
150
+ component_animations:
151
+ button_hover: "scale + shadow"
152
+ card_hover: "translateY + shadow"
153
+ scroll_animations:
154
+ enabled: true
155
+ patterns:
156
+ - "fade-in"
157
+ - "parallax"
158
+ - "stacking-cards"
159
+
160
+ theme:
161
+ name: "Travel & Adventure"
162
+ decorative_elements:
163
+ - "world maps"
164
+ - "compass icons"
165
+ - "destination pins"
166
+ avoid_elements:
167
+ - "corporate icons"
168
+ - "generic stock photos"
169
+ ```
170
+
171
+ ---
172
+
173
+ ## Section Descriptions
174
+
175
+ | Section | Purpose |
176
+ |---------|---------|
177
+ | `meta` | File metadata (generated date, source) |
178
+ | `psychology` | UX/UI psychology analysis from extraction |
179
+ | `style` | Design style classification |
180
+ | `colors` | Color tokens with variants |
181
+ | `typography` | Font families, weights, sizes |
182
+ | `spacing` | Grid system and scale |
183
+ | `border_radius` | Radius values |
184
+ | `shadows` | Shadow levels |
185
+ | `animations` | Animation settings |
186
+ | `theme` | Decorative direction |
187
+
188
+ ---
189
+
190
+ ## Usage by Agents
191
+
192
+ ```markdown
193
+ # In agent workflow
194
+
195
+ ## STEP 0.5: Load Design System
196
+
197
+ Read: design-system/data.yaml
198
+
199
+ Extract:
200
+ - colors.primary.DEFAULT → For buttons, links
201
+ - typography.font_family.sans → For all text
202
+ - spacing.scale → For padding/margin values
203
+ - animations.durations → For transitions
204
+ - theme.decorative_elements → For landing pages
205
+ ```
@@ -0,0 +1,157 @@
1
+ # Error Handling
2
+
3
+ How to handle failures during design setup.
4
+
5
+ ---
6
+
7
+ ## Error 1: No Extracted Data
8
+
9
+ **When:** No `design-system/extracted/*/data.yaml` files found
10
+
11
+ **Message:**
12
+ ```
13
+ ❌ No extracted data found
14
+
15
+ Please extract at least 1 site:
16
+ /extract https://airbnb.com
17
+
18
+ Then run: /designsetup @prd.md
19
+ ```
20
+
21
+ **Action:** Stop execution.
22
+
23
+ ---
24
+
25
+ ## Error 2: AI Analysis Fails
26
+
27
+ **When:** LLM call fails during context analysis or theme generation
28
+
29
+ **Message:**
30
+ ```
31
+ ❌ AI analysis failed: {error.message}
32
+
33
+ This may be due to:
34
+ - Extracted data too large (try fewer sites)
35
+ - API rate limit (wait and retry)
36
+ - Invalid context files
37
+
38
+ Retry or use --debug for details
39
+ ```
40
+
41
+ **Action:** Allow retry or proceed with fallback (interactive questions).
42
+
43
+ ---
44
+
45
+ ## Error 3: User Cancels
46
+
47
+ **When:** User selects "Cancel" at any point
48
+
49
+ **Message:**
50
+ ```
51
+ ⚠️ Design setup cancelled
52
+
53
+ Your data is preserved:
54
+ - Extracted: design-system/extracted/
55
+ - Options: design-system/synthesis/options/ (if any)
56
+
57
+ Run /designsetup again when ready.
58
+ ```
59
+
60
+ **Action:** Stop execution, preserve existing data.
61
+
62
+ ---
63
+
64
+ ## Error 4: Max Rounds Reached
65
+
66
+ **When:** User has adjusted 3 times without accepting
67
+
68
+ **Message:**
69
+ ```
70
+ ⚠️ ครบ 3 รอบแล้ว
71
+
72
+ แนะนำ:
73
+ 1. รัน /extract กับ reference ใหม่
74
+ 2. หรือ accept แล้วค่อย manual edit ไฟล์ที่สร้าง
75
+ ```
76
+
77
+ **Action:** Force decision (Yes to generate / Cancel to exit).
78
+
79
+ ---
80
+
81
+ ## Error 5: Write Fails
82
+
83
+ **When:** Cannot write to design-system/ directory
84
+
85
+ **Actions:**
86
+ 1. Try to save backup to `/tmp/design-system-backup/`
87
+ 2. Display error with backup location:
88
+
89
+ ```
90
+ ❌ Failed to write files
91
+
92
+ Check permissions: design-system/
93
+
94
+ Backup saved: /tmp/design-system-backup/
95
+ ```
96
+
97
+ ---
98
+
99
+ ## Error 6: Context File Not Found
100
+
101
+ **When:** User-provided context file doesn't exist
102
+
103
+ **Message:**
104
+ ```
105
+ ⚠️ Context file not found: {filename}
106
+ Skipping this file...
107
+ ```
108
+
109
+ **Action:** Continue with other files, warn user.
110
+
111
+ ---
112
+
113
+ ## Error 7: Invalid Extracted Data
114
+
115
+ **When:** Extracted YAML is malformed or missing required fields
116
+
117
+ **Message:**
118
+ ```
119
+ ⚠️ Invalid data in {site}/data.yaml
120
+ Missing: {missing fields}
121
+ Skipping this site...
122
+ ```
123
+
124
+ **Action:** Continue with other sites if available.
125
+
126
+ ---
127
+
128
+ ## Graceful Degradation
129
+
130
+ | Scenario | Fallback |
131
+ |----------|----------|
132
+ | No context files | Use interactive questions |
133
+ | AI analysis fails | Use interactive questions |
134
+ | Some extractions invalid | Use valid ones only |
135
+ | Theme generation fails | Use "Abstract" theme |
136
+ | Pattern generation fails | Skip patterns, generate data.yaml only |
137
+
138
+ ---
139
+
140
+ ## Recovery Suggestions
141
+
142
+ For persistent errors:
143
+
144
+ 1. **Clear and re-extract:**
145
+ ```bash
146
+ rm -rf design-system/extracted/
147
+ /extract https://site.com
148
+ ```
149
+
150
+ 2. **Use fewer sites:**
151
+ Large extractions may exceed context limits
152
+
153
+ 3. **Simplify context:**
154
+ Use shorter, focused context files
155
+
156
+ 4. **Manual generation:**
157
+ If all else fails, manually create `data.yaml` based on extraction data
@@ -0,0 +1,192 @@
1
+ # Generation Steps
2
+
3
+ After user confirms selections, generate the design system files.
4
+
5
+ ---
6
+
7
+ ## STEP 5.5: Generate data.yaml
8
+
9
+ ### Build Tokens Data Structure
10
+
11
+ **1. Meta:**
12
+ ```yaml
13
+ meta:
14
+ generated_at: "{ISO timestamp}"
15
+ source_site: "{selectedStyle.site}"
16
+ style: "{selectedStyle.style}"
17
+ theme: "{selectedTheme.name}"
18
+ ```
19
+
20
+ **2. Style:**
21
+ ```yaml
22
+ style:
23
+ name: "{selectedStyle.style}"
24
+ confidence: {confidence}
25
+ characteristics: [list]
26
+ feel: "{feel}"
27
+ source_site: "{site}"
28
+ ```
29
+
30
+ **3. Theme:**
31
+ ```yaml
32
+ theme:
33
+ name: "{selectedTheme.name}"
34
+ description: "{description}"
35
+ feeling: "{feeling}"
36
+ decorative_elements:
37
+ use: [list of elements to use]
38
+ avoid: [list of elements to avoid]
39
+ icons_suggestion: [Lucide icon names]
40
+ ```
41
+
42
+ **4. Animations:**
43
+ ```yaml
44
+ animations:
45
+ enabled: true/false
46
+ libraries: [list]
47
+ selected_patterns: [user selections]
48
+ scroll_animations:
49
+ enabled: true/false
50
+ patterns: [list]
51
+ component_animations:
52
+ button_hover: "{effect}"
53
+ card_hover: "{effect}"
54
+ input_focus: "ring"
55
+ duration:
56
+ fast: "150ms"
57
+ normal: "200ms"
58
+ slow: "300ms"
59
+ easing:
60
+ default: "ease-in-out"
61
+ bounce: "cubic-bezier(0.68, -0.55, 0.265, 1.55)"
62
+ ```
63
+
64
+ **5. Colors:**
65
+ ```yaml
66
+ colors:
67
+ primary:
68
+ DEFAULT: "{hex}"
69
+ foreground: "#ffffff"
70
+ hover: "{darkened hex}"
71
+ secondary:
72
+ DEFAULT: "{hex}"
73
+ foreground: "#ffffff"
74
+ background:
75
+ DEFAULT: "#ffffff"
76
+ muted: "#f1f5f9"
77
+ subtle: "#f8fafc"
78
+ foreground:
79
+ DEFAULT: "#0a0a0a"
80
+ muted: "#64748b"
81
+ semantic:
82
+ success: "#10b981"
83
+ warning: "#f59e0b"
84
+ error: "#ef4444"
85
+ info: "#3b82f6"
86
+ ```
87
+
88
+ **6. Typography:**
89
+ ```yaml
90
+ typography:
91
+ font_family:
92
+ sans: "{font from extraction}"
93
+ mono: "'Fira Code', monospace"
94
+ font_size:
95
+ xs: "12px"
96
+ sm: "14px"
97
+ base: "16px"
98
+ lg: "18px"
99
+ xl: "20px"
100
+ 2xl: "24px"
101
+ font_weight:
102
+ normal: "400"
103
+ medium: "500"
104
+ semibold: "600"
105
+ bold: "700"
106
+ ```
107
+
108
+ **7. Spacing:**
109
+ ```yaml
110
+ spacing:
111
+ scale: [4, 8, 12, 16, 24, 32, 48, 64]
112
+ grid_base: "8px"
113
+ ```
114
+
115
+ **8. Psychology (from extraction):**
116
+ ```yaml
117
+ psychology:
118
+ style_classification: "{style}"
119
+ emotions_evoked:
120
+ - emotion: "{emotion}"
121
+ reason: "{reason}"
122
+ target_audience:
123
+ primary:
124
+ description: "{desc}"
125
+ age_range: "{range}"
126
+ why_it_works:
127
+ - "{reason 1}"
128
+ - "{reason 2}"
129
+ ```
130
+
131
+ ---
132
+
133
+ ## STEP 5.6: Generate patterns/*.md
134
+
135
+ ### buttons.md
136
+ - Primary, Secondary, Ghost, Outline, Icon variants
137
+ - Small, Medium, Large sizes
138
+ - Hover animations based on selection
139
+
140
+ ### cards.md
141
+ - Default, Interactive, Feature, Pricing, Testimonial variants
142
+ - Hover effects based on selection
143
+
144
+ ### forms.md
145
+ - Input, Error input, Select, Checkbox
146
+ - Form layout examples
147
+
148
+ ### scroll-animations.md
149
+ - Fade In on Scroll
150
+ - Stacking Cards (GSAP)
151
+ - Parallax Section
152
+ - Slide In from Side
153
+
154
+ ### decorations.md
155
+ - Gradient backgrounds
156
+ - Blob shapes
157
+ - Grid patterns
158
+ - Floating elements
159
+ - Dividers
160
+
161
+ Each file includes:
162
+ - Header with source, style, when to load
163
+ - TSX code examples
164
+ - Usage guidelines
165
+
166
+ ---
167
+
168
+ ## STEP 5.7: Generate README.md
169
+
170
+ Human-readable guide (~100 lines) with:
171
+
172
+ 1. **Overview** - Style + theme description
173
+ 2. **Color Palette** - All colors with usage
174
+ 3. **Typography** - Font family, sizes, weights
175
+ 4. **Spacing System** - Base unit, scale
176
+ 5. **Shadows** - Elevation levels
177
+ 6. **Border Radius** - Values and usage
178
+ 7. **Theme** - Decorative direction (USE/AVOID)
179
+ 8. **Animations** - Enabled patterns
180
+ 9. **Component Library** - Recommended (shadcn/ui)
181
+ 10. **Code Patterns** - Links to pattern files
182
+ 11. **Critical Rules** - DO and DON'T
183
+
184
+ ---
185
+
186
+ ## STEP 6: Final Report
187
+
188
+ Display completion summary:
189
+ - Style selected
190
+ - Theme selected
191
+ - Files created (data.yaml, README.md, patterns/*.md)
192
+ - Next steps (/pageplan, /csetup, /cdev)
@@ -0,0 +1,151 @@
1
+ # Interactive Workflow (3-Round Loop)
2
+
3
+ ## Overview
4
+
5
+ The design setup uses a 3-round interactive loop where users can adjust and refine until satisfied (or max 3 rounds reached).
6
+
7
+ ---
8
+
9
+ ## STEP 0: Discovery & Validation
10
+
11
+ ### 0.1: Find Extracted Data
12
+
13
+ Search for: `design-system/extracted/*/data.yaml`
14
+
15
+ **If no files found:** Stop with error, instruct to run `/extract` first.
16
+
17
+ ### 0.2: Load Extracted Data
18
+
19
+ For each extracted site:
20
+ 1. Extract site name from path
21
+ 2. Parse YAML content
22
+ 3. Store in memory (map site name → data)
23
+
24
+ ### 0.3: Load Context Files (Optional)
25
+
26
+ If user provided `@context-files`:
27
+ 1. Remove `@` prefix
28
+ 2. Read file content
29
+ 3. Store with filename as key
30
+
31
+ ### 0.4: Report Discovery
32
+
33
+ Display found sites, context files, and start analysis message.
34
+
35
+ ---
36
+
37
+ ## STEP 1: Context Analysis
38
+
39
+ ### 1.1: AI Analysis (if context files provided)
40
+
41
+ Analyze context files to identify:
42
+ - `target_audience`: age_range, demographics, tech_savvy
43
+ - `brand_personality`: bold, professional, playful, minimal, technical
44
+ - `product_type`: SaaS, E-commerce, Marketing, Internal Tool
45
+ - `market_position`: differentiation strategy
46
+ - `design_preferences`: any mentioned preferences
47
+
48
+ ### 1.2: Interactive Questions (fallback)
49
+
50
+ If no context or analysis insufficient, ask:
51
+
52
+ 1. **Product Type**: SaaS Dashboard / E-commerce / Marketing Site / Internal Tool
53
+ 2. **Target Audience**: Gen Z / Millennials / Enterprise / Developers
54
+ 3. **Brand Personality** (multi-select): Bold / Professional / Playful / Minimal
55
+
56
+ ---
57
+
58
+ ## STEP 2: Interactive Selection Loop
59
+
60
+ ### 2.1: Style Selection
61
+
62
+ For each extracted site, display:
63
+ ```
64
+ Option [Letter]: [Style Name] [⭐ RECOMMENDED if highest score]
65
+ Source: [site name]
66
+ Match Score: [score]%
67
+
68
+ 📝 Characteristics: [list]
69
+ 🎭 Feel: [description]
70
+ 🎨 Colors: [primary colors]
71
+ 🎬 Animations: [available animations]
72
+ 📜 Scroll Patterns: [patterns]
73
+ 🖼️ Decorative Elements: [elements]
74
+ ```
75
+
76
+ **Match Score Calculation:**
77
+ - Base = confidence from extraction
78
+ - +15 if brand includes "bold" and style is Neo-Brutalism/Playful
79
+ - +15 if brand includes "professional" and style is Minimalist/Modern SaaS
80
+ - +15 if brand includes "playful" and style is Playful/Creative
81
+ - +15 if brand includes "minimal" and style is Minimalist
82
+ - Cap at 100
83
+
84
+ **User Options:**
85
+ - Select A, B, C... → Store as selectedStyle
86
+ - Select "Mix/Custom" → Get feedback, increment round, loop back
87
+
88
+ ### 2.2: Animation Selection (Multi-select)
89
+
90
+ Collect all available animations from extracted sites:
91
+ - Animation libraries (GSAP, Framer Motion, etc.)
92
+ - Scroll patterns (parallax, fade-in, stacking-cards)
93
+ - Component animations (button hover, card hover)
94
+
95
+ Display numbered list, user selects multiple.
96
+
97
+ ### 2.3: Theme Selection
98
+
99
+ AI recommends 3-4 themes based on project context:
100
+ ```
101
+ Theme [Letter]: [Name]
102
+ 📝 Description: [description]
103
+ 🎭 Feeling: [feeling]
104
+ ✅ USE: [decorative elements]
105
+ ❌ AVOID: [elements to avoid]
106
+ 🎯 Icons: [Lucide suggestions]
107
+ 💡 Why: [match reason]
108
+ ```
109
+
110
+ **User Options:**
111
+ - Select A, B, C... → Store theme
112
+ - Select "No Theme" → Use abstract/geometric
113
+ - Select "Custom" → Input custom theme description
114
+
115
+ ### 2.4: Confirmation
116
+
117
+ Display summary and ask:
118
+ - "Yes, Generate" → Exit loop, proceed to generation
119
+ - "Adjust" → Increment round, loop back
120
+ - "Start Over" → Reset round to 1, loop back
121
+
122
+ ### 2.5: Max Rounds
123
+
124
+ After 3 rounds, force decision:
125
+ - "Yes" → Generate with current settings
126
+ - "Cancel" → Exit without generating
127
+
128
+ ---
129
+
130
+ ## Loop Flow Diagram
131
+
132
+ ```
133
+ ┌─────────────────────────────────────────────────────────────┐
134
+ │ START (Round 1) │
135
+ └─────────────────────────────────────────────────────────────┘
136
+
137
+ ┌─────────────────────────────────────────────────────────────┐
138
+ │ Style Selection → Animation Selection → Theme Selection │
139
+ └─────────────────────────────────────────────────────────────┘
140
+
141
+ ┌─────────────────────────────────────────────────────────────┐
142
+ │ Confirmation │
143
+ │ ┌─────────┐ ┌─────────┐ ┌─────────────┐ │
144
+ │ │ Yes │ │ Adjust │ │ Start Over │ │
145
+ │ └────┬────┘ └────┬────┘ └──────┬──────┘ │
146
+ │ │ │ │ │
147
+ │ ↓ ↓ ↓ │
148
+ │ Generate Round++ Round=1 │
149
+ │ Files (max 3) (restart) │
150
+ └─────────────────────────────────────────────────────────────┘
151
+ ```
@@ -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
+ | #184 | 11:10 PM | 🔵 | Page Planner skill generates visual UI plans with wireframes and animation blueprints | ~827 |
11
+ </claude-mem-context>