Skip to content

Commit d5fbbfd

Browse files
viettranxclaude
andcommitted
feat: v2.0.0 - Design System Generator with 100 reasoning rules
## Major Features - Add --design-system flag for AI-powered design recommendations - 100 industry-specific reasoning rules in ui-reasoning.csv - Multi-domain parallel search (product, style, color, landing, typography) - Anti-patterns to avoid for each industry ## New Files - data/ui-reasoning.csv - 100 UI category rules with style priority, effects, anti-patterns - scripts/design_system.py - Reasoning engine with BM25 ranking ## Workflow Updates - All agent workflows updated with new design system generation step - Step 2 now requires --design-system for comprehensive recommendations - Updated example workflow with beauty spa case study ## CLI Updates - Version bumped to 2.0.0 - Added Qoder and Roo Code support - Synced all agent folders to cli/assets/ ## README Updates - Added version badges and PayPal donation button - New "What's New in v2.0" section with architecture diagram - Updated CLI installation instructions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1d5659b commit d5fbbfd

136 files changed

Lines changed: 14734 additions & 1759 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.agent/workflows/ui-ux-pro-max.md

Lines changed: 72 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ description: Plan and implement UI
33
auto_execution_mode: 3
44
---
55

6-
# UI/UX Pro Max - Design Intelligence
6+
# ui-ux-pro-max
77

8-
Searchable database of UI styles, color palettes, font pairings, chart types, product recommendations, UX guidelines, and stack-specific best practices.
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.
99

1010
## Prerequisites
1111

@@ -46,28 +46,46 @@ Extract key information from user request:
4646
- **Industry**: healthcare, fintech, gaming, education, etc.
4747
- **Stack**: React, Vue, Next.js, or default to `html-tailwind`
4848

49-
### Step 2: Search Relevant Domains
49+
### Step 2: Generate Design System (REQUIRED)
5050

51-
Use `search.py` multiple times to gather comprehensive information. Search until you have enough context.
51+
**Always start with `--design-system`** to get comprehensive recommendations with reasoning:
52+
53+
```bash
54+
python3 .shared/ui-ux-pro-max/scripts/search.py "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]
55+
```
56+
57+
This command:
58+
1. Searches 5 domains in parallel (product, style, color, landing, typography)
59+
2. Applies reasoning rules from `ui-reasoning.csv` to select best matches
60+
3. Returns complete design system: pattern, style, colors, typography, effects
61+
4. Includes anti-patterns to avoid
62+
63+
**Example:**
64+
```bash
65+
python3 .shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
66+
```
67+
68+
### Step 3: Supplement with Detailed Searches (as needed)
69+
70+
After getting the design system, use domain searches to get additional details:
5271

5372
```bash
5473
python3 .shared/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
5574
```
5675

57-
**Recommended search order:**
76+
**When to use detailed searches:**
5877

59-
1. **Product** - Get style recommendations for product type
60-
2. **Style** - Get detailed style guide (colors, effects, frameworks)
61-
3. **Typography** - Get font pairings with Google Fonts imports
62-
4. **Color** - Get color palette (Primary, Secondary, CTA, Background, Text, Border)
63-
5. **Landing** - Get page structure (if landing page)
64-
6. **Chart** - Get chart recommendations (if dashboard/analytics)
65-
7. **UX** - Get best practices and anti-patterns
66-
8. **Stack** - Get stack-specific guidelines (default: html-tailwind)
78+
| Need | Domain | Example |
79+
|------|--------|---------|
80+
| More style options | `style` | `--domain style "glassmorphism dark"` |
81+
| Chart recommendations | `chart` | `--domain chart "real-time dashboard"` |
82+
| UX best practices | `ux` | `--domain ux "animation accessibility"` |
83+
| Alternative fonts | `typography` | `--domain typography "elegant luxury"` |
84+
| Landing structure | `landing` | `--domain landing "hero social-proof"` |
6785

68-
### Step 3: Stack Guidelines (Default: html-tailwind)
86+
### Step 4: Stack Guidelines (Default: html-tailwind)
6987

70-
If user doesn't specify a stack, **default to `html-tailwind`**.
88+
Get implementation-specific best practices. If user doesn't specify a stack, **default to `html-tailwind`**.
7189

7290
```bash
7391
python3 .shared/ui-ux-pro-max/scripts/search.py "<keyword>" --stack html-tailwind
@@ -90,6 +108,8 @@ Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`
90108
| `landing` | Page structure, CTA strategies | hero, hero-centric, testimonial, pricing, social-proof |
91109
| `chart` | Chart types, library recommendations | trend, comparison, timeline, funnel, pie |
92110
| `ux` | Best practices, anti-patterns | animation, accessibility, z-index, loading |
111+
| `react` | React/Next.js performance | waterfall, bundle, suspense, memo, rerender, cache |
112+
| `web` | Web interface guidelines | aria, focus, keyboard, semantic, virtualize |
93113
| `prompt` | AI prompts, CSS keywords | (style name) |
94114

95115
### Available Stacks
@@ -112,33 +132,51 @@ Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`
112132

113133
**User request:** "Làm landing page cho dịch vụ chăm sóc da chuyên nghiệp"
114134

115-
**AI should:**
135+
### Step 1: Analyze Requirements
136+
- Product type: Beauty/Spa service
137+
- Style keywords: elegant, professional, soft
138+
- Industry: Beauty/Wellness
139+
- Stack: html-tailwind (default)
140+
141+
### Step 2: Generate Design System (REQUIRED)
116142

117143
```bash
118-
# 1. Search product type
119-
python3 .shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --domain product
144+
python3 .shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness service elegant" --design-system -p "Serenity Spa"
145+
```
120146

121-
# 2. Search style (based on industry: beauty, elegant)
122-
python3 .shared/ui-ux-pro-max/scripts/search.py "elegant minimal soft" --domain style
147+
**Output:** Complete design system with pattern, style, colors, typography, effects, and anti-patterns.
123148

124-
# 3. Search typography
125-
python3 .shared/ui-ux-pro-max/scripts/search.py "elegant luxury" --domain typography
149+
### Step 3: Supplement with Detailed Searches (as needed)
126150

127-
# 4. Search color palette
128-
python3 .shared/ui-ux-pro-max/scripts/search.py "beauty spa wellness" --domain color
151+
```bash
152+
# Get UX guidelines for animation and accessibility
153+
python3 .shared/ui-ux-pro-max/scripts/search.py "animation accessibility" --domain ux
129154

130-
# 5. Search landing page structure
131-
python3 .shared/ui-ux-pro-max/scripts/search.py "hero-centric social-proof" --domain landing
155+
# Get alternative typography options if needed
156+
python3 .shared/ui-ux-pro-max/scripts/search.py "elegant luxury serif" --domain typography
157+
```
132158

133-
# 6. Search UX guidelines
134-
python3 .shared/ui-ux-pro-max/scripts/search.py "animation" --domain ux
135-
python3 .shared/ui-ux-pro-max/scripts/search.py "accessibility" --domain ux
159+
### Step 4: Stack Guidelines
136160

137-
# 7. Search stack guidelines (default: html-tailwind)
138-
python3 .shared/ui-ux-pro-max/scripts/search.py "layout responsive" --stack html-tailwind
161+
```bash
162+
python3 .shared/ui-ux-pro-max/scripts/search.py "layout responsive form" --stack html-tailwind
139163
```
140164

141-
**Then:** Synthesize all search results and implement the design.
165+
**Then:** Synthesize design system + detailed searches and implement the design.
166+
167+
---
168+
169+
## Output Formats
170+
171+
The `--design-system` flag supports two output formats:
172+
173+
```bash
174+
# ASCII box (default) - best for terminal display
175+
python3 .shared/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system
176+
177+
# Markdown - best for documentation
178+
python3 .shared/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system -f markdown
179+
```
142180

143181
---
144182

@@ -150,10 +188,6 @@ python3 .shared/ui-ux-pro-max/scripts/search.py "layout responsive" --stack html
150188
4. **Always check UX** - Search "animation", "z-index", "accessibility" for common issues
151189
5. **Use stack flag** - Get implementation-specific best practices
152190
6. **Iterate** - If first search doesn't match, try different keywords
153-
7. **Split Into Multiple Files** - For better maintainability:
154-
- Separate components into individual files (e.g., `Header.tsx`, `Footer.tsx`)
155-
- Extract reusable styles into dedicated files
156-
- Keep each file focused and under 200-300 lines
157191

158192
---
159193

@@ -206,6 +240,7 @@ Before delivering UI code, verify these items:
206240
- [ ] All icons from consistent icon set (Heroicons/Lucide)
207241
- [ ] Brand logos are correct (verified from Simple Icons)
208242
- [ ] Hover states don't cause layout shift
243+
- [ ] Use theme colors directly (bg-primary) not var() wrapper
209244

210245
### Interaction
211246
- [ ] All clickable elements have `cursor-pointer`
@@ -222,7 +257,7 @@ Before delivering UI code, verify these items:
222257
### Layout
223258
- [ ] Floating elements have proper spacing from edges
224259
- [ ] No content hidden behind fixed navbars
225-
- [ ] Responsive at 320px, 768px, 1024px, 1440px
260+
- [ ] Responsive at 375px, 768px, 1024px, 1440px
226261
- [ ] No horizontal scroll on mobile
227262

228263
### Accessibility

.claude/skills/ui-ux-pro-max/SKILL.md

Lines changed: 67 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -130,28 +130,46 @@ Extract key information from user request:
130130
- **Industry**: healthcare, fintech, gaming, education, etc.
131131
- **Stack**: React, Vue, Next.js, or default to `html-tailwind`
132132

133-
### Step 2: Search Relevant Domains
133+
### Step 2: Generate Design System (REQUIRED)
134134

135-
Use `search.py` multiple times to gather comprehensive information. Search until you have enough context.
135+
**Always start with `--design-system`** to get comprehensive recommendations with reasoning:
136+
137+
```bash
138+
python3 .claude/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 .claude/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
150+
```
151+
152+
### Step 3: Supplement with Detailed Searches (as needed)
153+
154+
After getting the design system, use domain searches to get additional details:
136155

137156
```bash
138157
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
139158
```
140159

141-
**Recommended search order:**
160+
**When to use detailed searches:**
142161

143-
1. **Product** - Get style recommendations for product type
144-
2. **Style** - Get detailed style guide (colors, effects, frameworks)
145-
3. **Typography** - Get font pairings with Google Fonts imports
146-
4. **Color** - Get color palette (Primary, Secondary, CTA, Background, Text, Border)
147-
5. **Landing** - Get page structure (if landing page)
148-
6. **Chart** - Get chart recommendations (if dashboard/analytics)
149-
7. **UX** - Get best practices and anti-patterns
150-
8. **Stack** - Get stack-specific guidelines (default: html-tailwind)
162+
| Need | Domain | Example |
163+
|------|--------|---------|
164+
| More style options | `style` | `--domain style "glassmorphism dark"` |
165+
| Chart recommendations | `chart` | `--domain chart "real-time dashboard"` |
166+
| UX best practices | `ux` | `--domain ux "animation accessibility"` |
167+
| Alternative fonts | `typography` | `--domain typography "elegant luxury"` |
168+
| Landing structure | `landing` | `--domain landing "hero social-proof"` |
151169

152-
### Step 3: Stack Guidelines (Default: html-tailwind)
170+
### Step 4: Stack Guidelines (Default: html-tailwind)
153171

154-
If user doesn't specify a stack, **default to `html-tailwind`**.
172+
Get implementation-specific best practices. If user doesn't specify a stack, **default to `html-tailwind`**.
155173

156174
```bash
157175
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "<keyword>" --stack html-tailwind
@@ -198,33 +216,51 @@ Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`
198216

199217
**User request:** "Làm landing page cho dịch vụ chăm sóc da chuyên nghiệp"
200218

201-
**AI should:**
219+
### Step 1: Analyze Requirements
220+
- Product type: Beauty/Spa service
221+
- Style keywords: elegant, professional, soft
222+
- Industry: Beauty/Wellness
223+
- Stack: html-tailwind (default)
224+
225+
### Step 2: Generate Design System (REQUIRED)
202226

203227
```bash
204-
# 1. Search product type
205-
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --domain product
228+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness service elegant" --design-system -p "Serenity Spa"
229+
```
206230

207-
# 2. Search style (based on industry: beauty, elegant)
208-
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "elegant minimal soft" --domain style
231+
**Output:** Complete design system with pattern, style, colors, typography, effects, and anti-patterns.
209232

210-
# 3. Search typography
211-
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "elegant luxury" --domain typography
233+
### Step 3: Supplement with Detailed Searches (as needed)
212234

213-
# 4. Search color palette
214-
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "beauty spa wellness" --domain color
235+
```bash
236+
# Get UX guidelines for animation and accessibility
237+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "animation accessibility" --domain ux
215238

216-
# 5. Search landing page structure
217-
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "hero-centric social-proof" --domain landing
239+
# Get alternative typography options if needed
240+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "elegant luxury serif" --domain typography
241+
```
218242

219-
# 6. Search UX guidelines
220-
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "animation" --domain ux
221-
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "accessibility" --domain ux
243+
### Step 4: Stack Guidelines
222244

223-
# 7. Search stack guidelines (default: html-tailwind)
224-
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "layout responsive" --stack html-tailwind
245+
```bash
246+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "layout responsive form" --stack html-tailwind
225247
```
226248

227-
**Then:** Synthesize all search results and implement the design.
249+
**Then:** Synthesize design system + detailed searches and implement the design.
250+
251+
---
252+
253+
## Output Formats
254+
255+
The `--design-system` flag supports two output formats:
256+
257+
```bash
258+
# ASCII box (default) - best for terminal display
259+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system
260+
261+
# Markdown - best for documentation
262+
python3 .claude/skills/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system -f markdown
263+
```
228264

229265
---
230266

@@ -305,7 +341,7 @@ Before delivering UI code, verify these items:
305341
### Layout
306342
- [ ] Floating elements have proper spacing from edges
307343
- [ ] No content hidden behind fixed navbars
308-
- [ ] Responsive at 320px, 768px, 1024px, 1440px
344+
- [ ] Responsive at 375px, 768px, 1024px, 1440px
309345
- [ ] No horizontal scroll on mobile
310346

311347
### Accessibility

0 commit comments

Comments
 (0)