Skip to content

Commit f0caa7c

Browse files
authored
Merge pull request #100 from nextlevelbuilder/fix/restore-claude-skills-folder
fix: restore .claude/skills for CLI online install
2 parents bbd3cc9 + 5fe9624 commit f0caa7c

28 files changed

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

0 commit comments

Comments
 (0)