@neyugn/agent-kits 0.5.0 → 0.5.3

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/README.md +66 -81
  2. package/README.vi.md +79 -52
  3. package/README.zh.md +69 -88
  4. package/common/skills/filter-agent/SKILL.md +33 -45
  5. package/common/skills/filter-skill/SKILL.md +51 -73
  6. package/common/skills/scan-techstack/SKILL.md +30 -36
  7. package/dist/cli.js +85 -0
  8. package/kits/coder/agents/ai-engineer.md +27 -39
  9. package/kits/coder/agents/backend-specialist.md +31 -45
  10. package/kits/coder/agents/cloud-architect.md +31 -45
  11. package/kits/coder/agents/code-reviewer.md +45 -67
  12. package/kits/coder/agents/data-engineer.md +22 -32
  13. package/kits/coder/agents/database-specialist.md +30 -44
  14. package/kits/coder/agents/debugger.md +28 -42
  15. package/kits/coder/agents/devops-engineer.md +35 -53
  16. package/kits/coder/agents/documentation-writer.md +48 -68
  17. package/kits/coder/agents/frontend-specialist.md +30 -46
  18. package/kits/coder/agents/i18n-specialist.md +37 -51
  19. package/kits/coder/agents/integration-specialist.md +38 -54
  20. package/kits/coder/agents/mobile-developer.md +37 -53
  21. package/kits/coder/agents/multi-tenant-architect.md +25 -37
  22. package/kits/coder/agents/orchestrator.md +20 -32
  23. package/kits/coder/agents/performance-analyst.md +43 -65
  24. package/kits/coder/agents/project-planner.md +25 -39
  25. package/kits/coder/agents/queue-specialist.md +26 -38
  26. package/kits/coder/agents/realtime-specialist.md +44 -64
  27. package/kits/coder/agents/security-auditor.md +44 -64
  28. package/kits/coder/agents/test-engineer.md +30 -44
  29. package/kits/coder/agents/ux-researcher.md +26 -38
  30. package/kits/coder/rules/sections/classifier.md +11 -7
  31. package/kits/coder/rules/sections/code.md +5 -4
  32. package/kits/coder/skills/accessibility-patterns/SKILL.md +67 -81
  33. package/kits/coder/skills/ai-rag-patterns/SKILL.md +27 -23
  34. package/kits/coder/skills/api-patterns/SKILL.md +40 -43
  35. package/kits/coder/skills/auth-patterns/SKILL.md +47 -51
  36. package/kits/coder/skills/aws-patterns/SKILL.md +52 -57
  37. package/kits/coder/skills/brainstorming/SKILL.md +26 -23
  38. package/kits/coder/skills/clean-code/SKILL.md +74 -90
  39. package/kits/coder/skills/database-design/SKILL.md +32 -31
  40. package/kits/coder/skills/docker-patterns/SKILL.md +46 -49
  41. package/kits/coder/skills/documentation-templates/SKILL.md +21 -13
  42. package/kits/coder/skills/e2e-testing/SKILL.md +52 -58
  43. package/kits/coder/skills/flutter-patterns/SKILL.md +44 -46
  44. package/kits/coder/skills/frontend-design/SKILL.md +28 -24
  45. package/kits/coder/skills/github-actions/SKILL.md +43 -45
  46. package/kits/coder/skills/gitlab-ci-patterns/SKILL.md +35 -33
  47. package/kits/coder/skills/graphql-patterns/SKILL.md +35 -33
  48. package/kits/coder/skills/i18n-localization/SKILL.md +37 -35
  49. package/kits/coder/skills/kubernetes-patterns/SKILL.md +35 -33
  50. package/kits/coder/skills/mermaid-diagrams/SKILL.md +54 -60
  51. package/kits/coder/skills/mobile-design/SKILL.md +51 -61
  52. package/kits/coder/skills/monitoring-observability/SKILL.md +32 -30
  53. package/kits/coder/skills/multi-tenancy/SKILL.md +16 -8
  54. package/kits/coder/skills/nodejs-best-practices/SKILL.md +19 -14
  55. package/kits/coder/skills/performance-profiling/SKILL.md +31 -29
  56. package/kits/coder/skills/plan-writing/SKILL.md +52 -59
  57. package/kits/coder/skills/postgres-patterns/SKILL.md +39 -39
  58. package/kits/coder/skills/prompt-engineering/SKILL.md +40 -42
  59. package/kits/coder/skills/queue-patterns/SKILL.md +22 -16
  60. package/kits/coder/skills/react-native-patterns/SKILL.md +35 -33
  61. package/kits/coder/skills/react-patterns/SKILL.md +46 -52
  62. package/kits/coder/skills/realtime-patterns/SKILL.md +44 -46
  63. package/kits/coder/skills/redis-patterns/SKILL.md +35 -33
  64. package/kits/coder/skills/security-fundamentals/SKILL.md +45 -46
  65. package/kits/coder/skills/seo-patterns/SKILL.md +56 -62
  66. package/kits/coder/skills/systematic-debugging/SKILL.md +38 -39
  67. package/kits/coder/skills/tailwind-patterns/SKILL.md +21 -13
  68. package/kits/coder/skills/terraform-patterns/SKILL.md +53 -57
  69. package/kits/coder/skills/testing-patterns/SKILL.md +42 -47
  70. package/kits/coder/skills/typescript-patterns/SKILL.md +54 -68
  71. package/kits/coder/skills/ui-ux-pro-max/SKILL.md +362 -364
  72. package/package.json +1 -1
@@ -1,364 +1,362 @@
1
- ---
2
- name: ui-ux-pro-max
3
- description: "UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples."
4
- ---
5
-
6
- # UI/UX Pro Max - Design Intelligence
7
-
8
- Comprehensive design guide for web and mobile applications. Contains 50+ styles, 97 color palettes, 57 font pairings, 99 UX guidelines, and 25 chart types across 9 technology stacks. Searchable database with priority-based recommendations.
9
-
10
- ## When to Apply
11
-
12
- Reference these guidelines when:
13
-
14
- - Designing new UI components or pages
15
- - Choosing color palettes and typography
16
- - Reviewing code for UX issues
17
- - Building landing pages or dashboards
18
- - Implementing accessibility requirements
19
-
20
- ## Rule Categories by Priority
21
-
22
- | Priority | Category | Impact | Domain |
23
- | -------- | ------------------- | -------- | --------------------- |
24
- | 1 | Accessibility | CRITICAL | `ux` |
25
- | 2 | Touch & Interaction | CRITICAL | `ux` |
26
- | 3 | Performance | HIGH | `ux` |
27
- | 4 | Layout & Responsive | HIGH | `ux` |
28
- | 5 | Typography & Color | MEDIUM | `typography`, `color` |
29
- | 6 | Animation | MEDIUM | `ux` |
30
- | 7 | Style Selection | MEDIUM | `style`, `product` |
31
- | 8 | Charts & Data | LOW | `chart` |
32
-
33
- ## Quick Reference
34
-
35
- ### 1. Accessibility (CRITICAL)
36
-
37
- - `color-contrast` - Minimum 4.5:1 ratio for normal text
38
- - `focus-states` - Visible focus rings on interactive elements
39
- - `alt-text` - Descriptive alt text for meaningful images
40
- - `aria-labels` - aria-label for icon-only buttons
41
- - `keyboard-nav` - Tab order matches visual order
42
- - `form-labels` - Use label with for attribute
43
-
44
- ### 2. Touch & Interaction (CRITICAL)
45
-
46
- - `touch-target-size` - Minimum 44x44px touch targets
47
- - `hover-vs-tap` - Use click/tap for primary interactions
48
- - `loading-buttons` - Disable button during async operations
49
- - `error-feedback` - Clear error messages near problem
50
- - `cursor-pointer` - Add cursor-pointer to clickable elements
51
-
52
- ### 3. Performance (HIGH)
53
-
54
- - `image-optimization` - Use WebP, srcset, lazy loading
55
- - `reduced-motion` - Check prefers-reduced-motion
56
- - `content-jumping` - Reserve space for async content
57
-
58
- ### 4. Layout & Responsive (HIGH)
59
-
60
- - `viewport-meta` - width=device-width initial-scale=1
61
- - `readable-font-size` - Minimum 16px body text on mobile
62
- - `horizontal-scroll` - Ensure content fits viewport width
63
- - `z-index-management` - Define z-index scale (10, 20, 30, 50)
64
-
65
- ### 5. Typography & Color (MEDIUM)
66
-
67
- - `line-height` - Use 1.5-1.75 for body text
68
- - `line-length` - Limit to 65-75 characters per line
69
- - `font-pairing` - Match heading/body font personalities
70
-
71
- ### 6. Animation (MEDIUM)
72
-
73
- - `duration-timing` - Use 150-300ms for micro-interactions
74
- - `transform-performance` - Use transform/opacity, not width/height
75
- - `loading-states` - Skeleton screens or spinners
76
-
77
- ### 7. Style Selection (MEDIUM)
78
-
79
- - `style-match` - Match style to product type
80
- - `consistency` - Use same style across all pages
81
- - `no-emoji-icons` - Use SVG icons, not emojis
82
-
83
- ### 8. Charts & Data (LOW)
84
-
85
- - `chart-type` - Match chart type to data type
86
- - `color-guidance` - Use accessible color palettes
87
- - `data-table` - Provide table alternative for accessibility
88
-
89
- ## How to Use
90
-
91
- Search specific domains using the CLI tool below.
92
-
93
- ---
94
-
95
- ## Prerequisites
96
-
97
- Check if Python is installed:
98
-
99
- ```bash
100
- python3 --version || python --version
101
- ```
102
-
103
- If Python is not installed, install it based on user's OS:
104
-
105
- **macOS:**
106
-
107
- ```bash
108
- brew install python3
109
- ```
110
-
111
- **Ubuntu/Debian:**
112
-
113
- ```bash
114
- sudo apt update && sudo apt install python3
115
- ```
116
-
117
- **Windows:**
118
-
119
- ```powershell
120
- winget install Python.Python.3.12
121
- ```
122
-
123
- ---
124
-
125
- ## How to Use This Skill
126
-
127
- When user requests UI/UX work (design, build, create, implement, review, fix, improve), follow this workflow:
128
-
129
- ### Step 1: Analyze User Requirements
130
-
131
- Extract key information from user request:
132
-
133
- - **Product type**: SaaS, e-commerce, portfolio, dashboard, landing page, etc.
134
- - **Style keywords**: minimal, playful, professional, elegant, dark mode, etc.
135
- - **Industry**: healthcare, fintech, gaming, education, etc.
136
- - **Stack**: React, Vue, Next.js, or default to `html-tailwind`
137
-
138
- ### Step 2: Generate Design System (REQUIRED)
139
-
140
- **Always start with `--design-system`** to get comprehensive recommendations with reasoning:
141
-
142
- ```bash
143
- python3 .agent/skills/ui-ux-pro-max/scripts/search.py "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]
144
- ```
145
-
146
- This command:
147
-
148
- 1. Searches 5 domains in parallel (product, style, color, landing, typography)
149
- 2. Applies reasoning rules from `ui-reasoning.csv` to select best matches
150
- 3. Returns complete design system: pattern, style, colors, typography, effects
151
- 4. Includes anti-patterns to avoid
152
-
153
- **Example:**
154
-
155
- ```bash
156
- python3 .agent/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
157
- ```
158
-
159
- ### Step 3: Supplement with Detailed Searches (as needed)
160
-
161
- After getting the design system, use domain searches to get additional details:
162
-
163
- ```bash
164
- python3 .agent/skills/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
165
- ```
166
-
167
- **When to use detailed searches:**
168
-
169
- | Need | Domain | Example |
170
- | --------------------- | ------------ | --------------------------------------- |
171
- | More style options | `style` | `--domain style "glassmorphism dark"` |
172
- | Chart recommendations | `chart` | `--domain chart "real-time dashboard"` |
173
- | UX best practices | `ux` | `--domain ux "animation accessibility"` |
174
- | Alternative fonts | `typography` | `--domain typography "elegant luxury"` |
175
- | Landing structure | `landing` | `--domain landing "hero social-proof"` |
176
-
177
- ### Step 4: Stack Guidelines (Default: html-tailwind)
178
-
179
- Get implementation-specific best practices. If user doesn't specify a stack, **default to `html-tailwind`**.
180
-
181
- ```bash
182
- python3 .agent/skills/ui-ux-pro-max/scripts/search.py "<keyword>" --stack html-tailwind
183
- ```
184
-
185
- Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`, `react-native`, `flutter`, `shadcn`
186
-
187
- ---
188
-
189
- ## Search Reference
190
-
191
- ### Available Domains
192
-
193
- | Domain | Use For | Example Keywords |
194
- | ------------ | ------------------------------------ | -------------------------------------------------------- |
195
- | `product` | Product type recommendations | SaaS, e-commerce, portfolio, healthcare, beauty, service |
196
- | `style` | UI styles, colors, effects | glassmorphism, minimalism, dark mode, brutalism |
197
- | `typography` | Font pairings, Google Fonts | elegant, playful, professional, modern |
198
- | `color` | Color palettes by product type | saas, ecommerce, healthcare, beauty, fintech, service |
199
- | `landing` | Page structure, CTA strategies | hero, hero-centric, testimonial, pricing, social-proof |
200
- | `chart` | Chart types, library recommendations | trend, comparison, timeline, funnel, pie |
201
- | `ux` | Best practices, anti-patterns | animation, accessibility, z-index, loading |
202
- | `react` | React/Next.js performance | waterfall, bundle, suspense, memo, rerender, cache |
203
- | `web` | Web interface guidelines | aria, focus, keyboard, semantic, virtualize |
204
- | `prompt` | AI prompts, CSS keywords | (style name) |
205
-
206
- ### Available Stacks
207
-
208
- | Stack | Focus |
209
- | --------------- | ---------------------------------------------- |
210
- | `html-tailwind` | Tailwind utilities, responsive, a11y (DEFAULT) |
211
- | `react` | State, hooks, performance, patterns |
212
- | `nextjs` | SSR, routing, images, API routes |
213
- | `vue` | Composition API, Pinia, Vue Router |
214
- | `svelte` | Runes, stores, SvelteKit |
215
- | `swiftui` | Views, State, Navigation, Animation |
216
- | `react-native` | Components, Navigation, Lists |
217
- | `flutter` | Widgets, State, Layout, Theming |
218
- | `shadcn` | shadcn/ui components, theming, forms, patterns |
219
-
220
- ---
221
-
222
- ## Example Workflow
223
-
224
- **User request:** "Làm landing page cho dịch vụ chăm sóc da chuyên nghiệp"
225
-
226
- ### Step 1: Analyze Requirements
227
-
228
- - Product type: Beauty/Spa service
229
- - Style keywords: elegant, professional, soft
230
- - Industry: Beauty/Wellness
231
- - Stack: html-tailwind (default)
232
-
233
- ### Step 2: Generate Design System (REQUIRED)
234
-
235
- ```bash
236
- python3 .agent/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness service elegant" --design-system -p "Serenity Spa"
237
- ```
238
-
239
- **Output:** Complete design system with pattern, style, colors, typography, effects, and anti-patterns.
240
-
241
- ### Step 3: Supplement with Detailed Searches (as needed)
242
-
243
- ```bash
244
- # Get UX guidelines for animation and accessibility
245
- python3 .agent/skills/ui-ux-pro-max/scripts/search.py "animation accessibility" --domain ux
246
-
247
- # Get alternative typography options if needed
248
- python3 .agent/skills/ui-ux-pro-max/scripts/search.py "elegant luxury serif" --domain typography
249
- ```
250
-
251
- ### Step 4: Stack Guidelines
252
-
253
- ```bash
254
- python3 .agent/skills/ui-ux-pro-max/scripts/search.py "layout responsive form" --stack html-tailwind
255
- ```
256
-
257
- **Then:** Synthesize design system + detailed searches and implement the design.
258
-
259
- ---
260
-
261
- ## Output Formats
262
-
263
- The `--design-system` flag supports two output formats:
264
-
265
- ```bash
266
- # ASCII box (default) - best for terminal display
267
- python3 .agent/skills/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system
268
-
269
- # Markdown - best for documentation
270
- python3 .agent/skills/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system -f markdown
271
- ```
272
-
273
- ---
274
-
275
- ## Tips for Better Results
276
-
277
- 1. **Be specific with keywords** - "healthcare SaaS dashboard" > "app"
278
- 2. **Search multiple times** - Different keywords reveal different insights
279
- 3. **Combine domains** - Style + Typography + Color = Complete design system
280
- 4. **Always check UX** - Search "animation", "z-index", "accessibility" for common issues
281
- 5. **Use stack flag** - Get implementation-specific best practices
282
- 6. **Iterate** - If first search doesn't match, try different keywords
283
-
284
- ---
285
-
286
- ## Common Rules for Professional UI
287
-
288
- These are frequently overlooked issues that make UI look unprofessional:
289
-
290
- ### Icons & Visual Elements
291
-
292
- | Rule | Do | Don't |
293
- | -------------------------- | ----------------------------------------------- | -------------------------------------- |
294
- | **No emoji icons** | Use SVG icons (Heroicons, Lucide, Simple Icons) | Use emojis like 🎨 🚀 ⚙️ as UI icons |
295
- | **Stable hover states** | Use color/opacity transitions on hover | Use scale transforms that shift layout |
296
- | **Correct brand logos** | Research official SVG from Simple Icons | Guess or use incorrect logo paths |
297
- | **Consistent icon sizing** | Use fixed viewBox (24x24) with w-6 h-6 | Mix different icon sizes randomly |
298
-
299
- ### Interaction & Cursor
300
-
301
- | Rule | Do | Don't |
302
- | ---------------------- | ----------------------------------------------------- | -------------------------------------------- |
303
- | **Cursor pointer** | Add `cursor-pointer` to all clickable/hoverable cards | Leave default cursor on interactive elements |
304
- | **Hover feedback** | Provide visual feedback (color, shadow, border) | No indication element is interactive |
305
- | **Smooth transitions** | Use `transition-colors duration-200` | Instant state changes or too slow (>500ms) |
306
-
307
- ### Light/Dark Mode Contrast
308
-
309
- | Rule | Do | Don't |
310
- | ------------------------- | ----------------------------------- | --------------------------------------- |
311
- | **Glass card light mode** | Use `bg-white/80` or higher opacity | Use `bg-white/10` (too transparent) |
312
- | **Text contrast light** | Use `#0F172A` (slate-900) for text | Use `#94A3B8` (slate-400) for body text |
313
- | **Muted text light** | Use `#475569` (slate-600) minimum | Use gray-400 or lighter |
314
- | **Border visibility** | Use `border-gray-200` in light mode | Use `border-white/10` (invisible) |
315
-
316
- ### Layout & Spacing
317
-
318
- | Rule | Do | Don't |
319
- | ------------------------ | ----------------------------------- | -------------------------------------- |
320
- | **Floating navbar** | Add `top-4 left-4 right-4` spacing | Stick navbar to `top-0 left-0 right-0` |
321
- | **Content padding** | Account for fixed navbar height | Let content hide behind fixed elements |
322
- | **Consistent max-width** | Use same `max-w-6xl` or `max-w-7xl` | Mix different container widths |
323
-
324
- ---
325
-
326
- ## Pre-Delivery Checklist
327
-
328
- Before delivering UI code, verify these items:
329
-
330
- ### Visual Quality
331
-
332
- - [ ] No emojis used as icons (use SVG instead)
333
- - [ ] All icons from consistent icon set (Heroicons/Lucide)
334
- - [ ] Brand logos are correct (verified from Simple Icons)
335
- - [ ] Hover states don't cause layout shift
336
- - [ ] Use theme colors directly (bg-primary) not var() wrapper
337
-
338
- ### Interaction
339
-
340
- - [ ] All clickable elements have `cursor-pointer`
341
- - [ ] Hover states provide clear visual feedback
342
- - [ ] Transitions are smooth (150-300ms)
343
- - [ ] Focus states visible for keyboard navigation
344
-
345
- ### Light/Dark Mode
346
-
347
- - [ ] Light mode text has sufficient contrast (4.5:1 minimum)
348
- - [ ] Glass/transparent elements visible in light mode
349
- - [ ] Borders visible in both modes
350
- - [ ] Test both modes before delivery
351
-
352
- ### Layout
353
-
354
- - [ ] Floating elements have proper spacing from edges
355
- - [ ] No content hidden behind fixed navbars
356
- - [ ] Responsive at 375px, 768px, 1024px, 1440px
357
- - [ ] No horizontal scroll on mobile
358
-
359
- ### Accessibility
360
-
361
- - [ ] All images have alt text
362
- - [ ] Form inputs have labels
363
- - [ ] Color is not the only indicator
364
- - [ ] `prefers-reduced-motion` respected
1
+ ---
2
+ name: ui-ux-pro-max
3
+ description: "UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples."
4
+ ---
5
+
6
+ # UI/UX Pro Max - Design Intelligence
7
+
8
+ Comprehensive design guide for web and mobile applications. Contains 50+ styles, 97 color palettes, 57 font pairings, 99 UX guidelines, and 25 chart types across 9 technology stacks. Searchable database with priority-based recommendations.
9
+
10
+ ## When to Apply
11
+
12
+ Reference these guidelines when:
13
+
14
+ - Designing new UI components or pages
15
+ - Choosing color palettes and typography
16
+ - Reviewing code for UX issues
17
+ - Building landing pages or dashboards
18
+ - Implementing accessibility requirements
19
+
20
+ ## Rule Categories by Priority
21
+
22
+ | Priority | Category | Impact | Domain |
23
+ | -------- | ------------------- | -------- | --------------------- |
24
+ | 1 | Accessibility | CRITICAL | `ux` |
25
+ | 2 | Touch & Interaction | CRITICAL | `ux` |
26
+ | 3 | Performance | HIGH | `ux` |
27
+ | 4 | Layout & Responsive | HIGH | `ux` |
28
+ | 5 | Typography & Color | MEDIUM | `typography`, `color` |
29
+ | 6 | Animation | MEDIUM | `ux` |
30
+ | 7 | Style Selection | MEDIUM | `style`, `product` |
31
+ | 8 | Charts & Data | LOW | `chart` |
32
+
33
+ ## Quick Reference
34
+
35
+ ### 1. Accessibility (CRITICAL)
36
+
37
+ - `color-contrast` - Minimum 4.5:1 ratio for normal text
38
+ - `focus-states` - Visible focus rings on interactive elements
39
+ - `alt-text` - Descriptive alt text for meaningful images
40
+ - `aria-labels` - aria-label for icon-only buttons
41
+ - `keyboard-nav` - Tab order matches visual order
42
+ - `form-labels` - Use label with for attribute
43
+
44
+ ### 2. Touch & Interaction (CRITICAL)
45
+
46
+ - `touch-target-size` - Minimum 44x44px touch targets
47
+ - `hover-vs-tap` - Use click/tap for primary interactions
48
+ - `loading-buttons` - Disable button during async operations
49
+ - `error-feedback` - Clear error messages near problem
50
+ - `cursor-pointer` - Add cursor-pointer to clickable elements
51
+
52
+ ### 3. Performance (HIGH)
53
+
54
+ - `image-optimization` - Use WebP, srcset, lazy loading
55
+ - `reduced-motion` - Check prefers-reduced-motion
56
+ - `content-jumping` - Reserve space for async content
57
+
58
+ ### 4. Layout & Responsive (HIGH)
59
+
60
+ - `viewport-meta` - width=device-width initial-scale=1
61
+ - `readable-font-size` - Minimum 16px body text on mobile
62
+ - `horizontal-scroll` - Ensure content fits viewport width
63
+ - `z-index-management` - Define z-index scale (10, 20, 30, 50)
64
+
65
+ ### 5. Typography & Color (MEDIUM)
66
+
67
+ - `line-height` - Use 1.5-1.75 for body text
68
+ - `line-length` - Limit to 65-75 characters per line
69
+ - `font-pairing` - Match heading/body font personalities
70
+
71
+ ### 6. Animation (MEDIUM)
72
+
73
+ - `duration-timing` - Use 150-300ms for micro-interactions
74
+ - `transform-performance` - Use transform/opacity, not width/height
75
+ - `loading-states` - Skeleton screens or spinners
76
+
77
+ ### 7. Style Selection (MEDIUM)
78
+
79
+ - `style-match` - Match style to product type
80
+ - `consistency` - Use same style across all pages
81
+ - `no-emoji-icons` - Use SVG icons, not emojis
82
+
83
+ ### 8. Charts & Data (LOW)
84
+
85
+ - `chart-type` - Match chart type to data type
86
+ - `color-guidance` - Use accessible color palettes
87
+ - `data-table` - Provide table alternative for accessibility
88
+
89
+ ## How to Use
90
+
91
+ Search specific domains using the CLI tool below.
92
+
93
+ ---
94
+
95
+ ## Prerequisites
96
+
97
+ Check if Python is installed:
98
+
99
+ ```bash
100
+ python3 --version || python --version
101
+ ```
102
+
103
+ If Python is not installed, install it based on user's OS:
104
+
105
+ **macOS:**
106
+
107
+ ```bash
108
+ brew install python3
109
+ ```
110
+
111
+ **Ubuntu/Debian:**
112
+
113
+ ```bash
114
+ sudo apt update && sudo apt install python3
115
+ ```
116
+
117
+ **Windows:**
118
+
119
+ ```powershell
120
+ winget install Python.Python.3.12
121
+ ```
122
+
123
+ ---
124
+
125
+ ## How to Use This Skill
126
+
127
+ When user requests UI/UX work (design, build, create, implement, review, fix, improve), follow this workflow:
128
+
129
+ ### Step 1: Analyze User Requirements
130
+
131
+ Extract key information from user request:
132
+
133
+ - **Product type**: SaaS, e-commerce, portfolio, dashboard, landing page, etc.
134
+ - **Style keywords**: minimal, playful, professional, elegant, dark mode, etc.
135
+ - **Industry**: healthcare, fintech, gaming, education, etc.
136
+ - **Stack**: React, Vue, Next.js, or default to `html-tailwind`
137
+
138
+ ### Step 2: Generate Design System (REQUIRED)
139
+
140
+ **Always start with `--design-system`** to get comprehensive recommendations with reasoning:
141
+
142
+ ```bash
143
+ python3 .agent/skills/ui-ux-pro-max/scripts/search.py "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]
144
+ ```
145
+
146
+ This command:
147
+
148
+ 1. Searches 5 domains in parallel (product, style, color, landing, typography)
149
+ 2. Applies reasoning rules from `ui-reasoning.csv` to select best matches
150
+ 3. Returns complete design system: pattern, style, colors, typography, effects
151
+ 4. Includes anti-patterns to avoid
152
+
153
+ **Example:**
154
+
155
+ ```bash
156
+ python3 .agent/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
157
+ ```
158
+
159
+ ### Step 3: Supplement with Detailed Searches (as needed)
160
+
161
+ After getting the design system, use domain searches to get additional details:
162
+
163
+ ```bash
164
+ python3 .agent/skills/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
165
+ ```
166
+
167
+ **When to use detailed searches:**
168
+
169
+ | Need | Domain | Example |
170
+ | --------------------- | ------------ | --------------------------------------- |
171
+ | More style options | `style` | `--domain style "glassmorphism dark"` |
172
+ | Chart recommendations | `chart` | `--domain chart "real-time dashboard"` |
173
+ | UX best practices | `ux` | `--domain ux "animation accessibility"` |
174
+ | Alternative fonts | `typography` | `--domain typography "elegant luxury"` |
175
+ | Landing structure | `landing` | `--domain landing "hero social-proof"` |
176
+
177
+ ### Step 4: Stack Guidelines (Default: html-tailwind)
178
+
179
+ Get implementation-specific best practices. If user doesn't specify a stack, **default to `html-tailwind`**.
180
+
181
+ ```bash
182
+ python3 .agent/skills/ui-ux-pro-max/scripts/search.py "<keyword>" --stack html-tailwind
183
+ ```
184
+
185
+ Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`, `react-native`, `flutter`, `shadcn`
186
+
187
+ ---
188
+
189
+ ## Search Reference
190
+
191
+ ### Available Domains
192
+
193
+ | Domain | Use For | Example Keywords |
194
+ | ------------ | ------------------------------------ | -------------------------------------------------------- |
195
+ | `product` | Product type recommendations | SaaS, e-commerce, portfolio, healthcare, beauty, service |
196
+ | `style` | UI styles, colors, effects | glassmorphism, minimalism, dark mode, brutalism |
197
+ | `typography` | Font pairings, Google Fonts | elegant, playful, professional, modern |
198
+ | `color` | Color palettes by product type | saas, ecommerce, healthcare, beauty, fintech, service |
199
+ | `landing` | Page structure, CTA strategies | hero, hero-centric, testimonial, pricing, social-proof |
200
+ | `chart` | Chart types, library recommendations | trend, comparison, timeline, funnel, pie |
201
+ | `ux` | Best practices, anti-patterns | animation, accessibility, z-index, loading |
202
+ | `react` | React/Next.js performance | waterfall, bundle, suspense, memo, rerender, cache |
203
+ | `web` | Web interface guidelines | aria, focus, keyboard, semantic, virtualize |
204
+ | `prompt` | AI prompts, CSS keywords | (style name) |
205
+
206
+ ### Available Stacks
207
+
208
+ - `html-tailwind`: Tailwind utilities, responsive, a11y (DEFAULT)
209
+ - `react`: State, hooks, performance, patterns
210
+ - `nextjs`: SSR, routing, images, API routes
211
+ - `vue`: Composition API, Pinia, Vue Router
212
+ - `svelte`: Runes, stores, SvelteKit
213
+ - `swiftui`: Views, State, Navigation, Animation
214
+ - `react-native`: Components, Navigation, Lists
215
+ - `flutter`: Widgets, State, Layout, Theming
216
+ - `shadcn`: shadcn/ui components, theming, forms, patterns
217
+
218
+ ---
219
+
220
+ ## Example Workflow
221
+
222
+ **User request:** "Làm landing page cho dịch vụ chăm sóc da chuyên nghiệp"
223
+
224
+ ### Step 1: Analyze Requirements
225
+
226
+ - Product type: Beauty/Spa service
227
+ - Style keywords: elegant, professional, soft
228
+ - Industry: Beauty/Wellness
229
+ - Stack: html-tailwind (default)
230
+
231
+ ### Step 2: Generate Design System (REQUIRED)
232
+
233
+ ```bash
234
+ python3 .agent/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness service elegant" --design-system -p "Serenity Spa"
235
+ ```
236
+
237
+ **Output:** Complete design system with pattern, style, colors, typography, effects, and anti-patterns.
238
+
239
+ ### Step 3: Supplement with Detailed Searches (as needed)
240
+
241
+ ```bash
242
+ # Get UX guidelines for animation and accessibility
243
+ python3 .agent/skills/ui-ux-pro-max/scripts/search.py "animation accessibility" --domain ux
244
+
245
+ # Get alternative typography options if needed
246
+ python3 .agent/skills/ui-ux-pro-max/scripts/search.py "elegant luxury serif" --domain typography
247
+ ```
248
+
249
+ ### Step 4: Stack Guidelines
250
+
251
+ ```bash
252
+ python3 .agent/skills/ui-ux-pro-max/scripts/search.py "layout responsive form" --stack html-tailwind
253
+ ```
254
+
255
+ **Then:** Synthesize design system + detailed searches and implement the design.
256
+
257
+ ---
258
+
259
+ ## Output Formats
260
+
261
+ The `--design-system` flag supports two output formats:
262
+
263
+ ```bash
264
+ # ASCII box (default) - best for terminal display
265
+ python3 .agent/skills/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system
266
+
267
+ # Markdown - best for documentation
268
+ python3 .agent/skills/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system -f markdown
269
+ ```
270
+
271
+ ---
272
+
273
+ ## Tips for Better Results
274
+
275
+ 1. **Be specific with keywords** - "healthcare SaaS dashboard" > "app"
276
+ 2. **Search multiple times** - Different keywords reveal different insights
277
+ 3. **Combine domains** - Style + Typography + Color = Complete design system
278
+ 4. **Always check UX** - Search "animation", "z-index", "accessibility" for common issues
279
+ 5. **Use stack flag** - Get implementation-specific best practices
280
+ 6. **Iterate** - If first search doesn't match, try different keywords
281
+
282
+ ---
283
+
284
+ ## Common Rules for Professional UI
285
+
286
+ These are frequently overlooked issues that make UI look unprofessional:
287
+
288
+ ### Icons & Visual Elements
289
+
290
+ | Rule | Do | Don't |
291
+ | -------------------------- | ----------------------------------------------- | -------------------------------------- |
292
+ | **No emoji icons** | Use SVG icons (Heroicons, Lucide, Simple Icons) | Use emojis like 🎨 🚀 ⚙️ as UI icons |
293
+ | **Stable hover states** | Use color/opacity transitions on hover | Use scale transforms that shift layout |
294
+ | **Correct brand logos** | Research official SVG from Simple Icons | Guess or use incorrect logo paths |
295
+ | **Consistent icon sizing** | Use fixed viewBox (24x24) with w-6 h-6 | Mix different icon sizes randomly |
296
+
297
+ ### Interaction & Cursor
298
+
299
+ | Rule | Do | Don't |
300
+ | ---------------------- | ----------------------------------------------------- | -------------------------------------------- |
301
+ | **Cursor pointer** | Add `cursor-pointer` to all clickable/hoverable cards | Leave default cursor on interactive elements |
302
+ | **Hover feedback** | Provide visual feedback (color, shadow, border) | No indication element is interactive |
303
+ | **Smooth transitions** | Use `transition-colors duration-200` | Instant state changes or too slow (>500ms) |
304
+
305
+ ### Light/Dark Mode Contrast
306
+
307
+ | Rule | Do | Don't |
308
+ | ------------------------- | ----------------------------------- | --------------------------------------- |
309
+ | **Glass card light mode** | Use `bg-white/80` or higher opacity | Use `bg-white/10` (too transparent) |
310
+ | **Text contrast light** | Use `#0F172A` (slate-900) for text | Use `#94A3B8` (slate-400) for body text |
311
+ | **Muted text light** | Use `#475569` (slate-600) minimum | Use gray-400 or lighter |
312
+ | **Border visibility** | Use `border-gray-200` in light mode | Use `border-white/10` (invisible) |
313
+
314
+ ### Layout & Spacing
315
+
316
+ | Rule | Do | Don't |
317
+ | ------------------------ | ----------------------------------- | -------------------------------------- |
318
+ | **Floating navbar** | Add `top-4 left-4 right-4` spacing | Stick navbar to `top-0 left-0 right-0` |
319
+ | **Content padding** | Account for fixed navbar height | Let content hide behind fixed elements |
320
+ | **Consistent max-width** | Use same `max-w-6xl` or `max-w-7xl` | Mix different container widths |
321
+
322
+ ---
323
+
324
+ ## Pre-Delivery Checklist
325
+
326
+ Before delivering UI code, verify these items:
327
+
328
+ ### Visual Quality
329
+
330
+ - [ ] No emojis used as icons (use SVG instead)
331
+ - [ ] All icons from consistent icon set (Heroicons/Lucide)
332
+ - [ ] Brand logos are correct (verified from Simple Icons)
333
+ - [ ] Hover states don't cause layout shift
334
+ - [ ] Use theme colors directly (bg-primary) not var() wrapper
335
+
336
+ ### Interaction
337
+
338
+ - [ ] All clickable elements have `cursor-pointer`
339
+ - [ ] Hover states provide clear visual feedback
340
+ - [ ] Transitions are smooth (150-300ms)
341
+ - [ ] Focus states visible for keyboard navigation
342
+
343
+ ### Light/Dark Mode
344
+
345
+ - [ ] Light mode text has sufficient contrast (4.5:1 minimum)
346
+ - [ ] Glass/transparent elements visible in light mode
347
+ - [ ] Borders visible in both modes
348
+ - [ ] Test both modes before delivery
349
+
350
+ ### Layout
351
+
352
+ - [ ] Floating elements have proper spacing from edges
353
+ - [ ] No content hidden behind fixed navbars
354
+ - [ ] Responsive at 375px, 768px, 1024px, 1440px
355
+ - [ ] No horizontal scroll on mobile
356
+
357
+ ### Accessibility
358
+
359
+ - [ ] All images have alt text
360
+ - [ ] Form inputs have labels
361
+ - [ ] Color is not the only indicator
362
+ - [ ] `prefers-reduced-motion` respected