design-polish
by vp-k
Design reference-based polishing with WCAG accessibility checks. Trend search, Gap analysis, and improvement suggestions.
2 skills GitHub
Commands
design-polish디자인 레퍼런스 기반 폴리싱. 트렌드 검색, Gap 분석, WCAG 접근성 체크, 개선안 도출
design-renewal디자인 전면 리뉴얼. 디자인 시스템 교체, 팔레트/타이포/컴포넌트 전면 변경, WCAG 접근성 체크 포함
Documentation
# design-polish v2.0
Claude Code plugin for design intelligence-driven polishing.
Combines built-in design knowledge base + visual comparison + WCAG accessibility checks + trend search.
## Features
- **Design Knowledge Base** — 66 styles, 96 color palettes, 57 typography pairings, 13 tech stack guides
- **Service Type Rules** — 20 service type UI reasoning rules with automatic detection
- **Component Checklists** — Do/Don't for Button, Card, Modal, Input, Navigation, Toast
- **UX Rules & Anti-Patterns** — 52+ rules across 6 categories
- **BM25 Search Engine** — Node.js search across all design data (no Python dependency)
- **Screenshot Capture** — Puppeteer-based local project capture
- **Reference Site Search** — Mobbin, Godly, Dribbble, SiteInspire, etc.
- **WCAG Accessibility** — axe-core based automated checks
- **8-Level Priority System** — P1 (CRITICAL) to P8 (LOW) improvements
- **Auto-Apply** — Code improvements with `--apply` flag
## Directory Structure
```
plugins/design-polish/
├── knowledge/ # Markdown — direct Read()
│ ├── industry-rules.md # 20 service type UI reasoning rules
│ ├── component-checklist.md # 6 component Do/Don't checklists
│ └── ux-rules.md # 52+ UX rules across 6 categories
├── data/ # JSON — BM25 searchable
│ ├── styles.json # 66 design styles
│ ├── colors.json # 96 color palettes (with HEX codes)
│ ├── typography.json # 57 font pairings (with Google Fonts URLs)
│ └── stacks.json # 13 tech stack guides
├── scripts/
│ ├── capture.cjs # Puppeteer screenshot + axe-core
│ └── search.cjs # BM25 search engine (Node.js)
├── skills/
│ ├── design-polish/
│ │ └── SKILL.md # Polish skill specification
│ └── design-renewal/
│ └── SKILL.md # Renewal skill specification
├── commands/
│ ├── design-polish.md # Polish command definition
│ └── design-renewal.md # Renewal command definition
├── package.json
└── README.md
```
## Installation
```bash
# Clone the plugin
git clone https://github.com/<your-org>/design-polish ~/.claude/plugins/marketplaces/design-polish
# Install dependencies (puppeteer + axe-core only, no Python)
cd ~/.claude/plugins/marketplaces/design-polish
npm install
```
## Usage
In Claude Code:
### /design-polish — Non-destructive polishing
```
/design-polish # Full polishing + WCAG check
/design-polish --apply # Polish + apply changes
/design-polish --wcag-only # WCAG check only
/design-polish --no-wcag # Skip WCAG check
/design-polish godly hero # Search Godly for hero section
/design-polish --apply godly hero # Search + apply
```
### /design-renewal — Full design system renewal
```
/design-renewal # Full renewal (analyze + apply)
/design-renewal --analyze # Analysis only (no code changes)
/design-renewal glassmorphism # Glassmorphism style renewal
/design-renewal dark # Dark theme renewal
/design-renewal minimal godly # Minimal style, Godly reference
/design-renewal --wcag-only # WCAG check only
/design-renewal brutalist mobbin hero # Brutalism, Mobbin hero search
```
### Comparison
| | /design-polish | /design-renewal |
|--|---------------|-----------------|
| Scope | Tweaks (CSS fixes) | Full renewal (design system swap) |
| Colors | Contrast fixes | Entire palette replacement |
| Layout | Margin/alignment | Structure reorganization |
| Components | hover/focus fixes | Full style overhaul |
| Typography | Size/line-height | Font pairing replacement |
| Risk | Low (non-destructive) | High (large-scale changes) |
## search.cjs — BM25 Search CLI
Search the design knowledge base from the command line:
```bash
# Style search
node scripts/search.cjs --domain style "glass modern saas"
# Color palette search
node scripts/search.cjs --domain color "healthcare calm"
# Typography search
node scripts/search.cjs --domain typography "luxury elegant"
# Tech stack guide search
node scripts/search.cjs --domain stack --stack react "performance image"
# Auto-detect domain
node scripts/search.cjs "saas dashboard blue"
# Adjust result count
node scripts/search.cjs --domain color --max 5 "fintech"
```
Output is JSON:
```json
{
"domain": "style",
"query": "glass modern saas",
"results": [
{ "score": 8.93, "data": { "name": "Glassmorphism", ... } }
]
}
```
## Workflow
```
0. Project analysis + service type detection + screenshot
1. WCAG accessibility check (axe-core)
1.5. Design knowledge loading (Read + search.cjs)
2. Reference site selection
3. Trend search + reference capture
4. Gap analysis (visual + knowledge-based)
5. Improvement plan (8-level priority)
6. Result output
7. Code apply (--apply)
```
## Priority System
| Priority | Category | Impact |
|----------|----------|--------|
| P1 | Accessibility (WCAG) | CRITICAL |
| P2 | Touch/Interaction | CRITICAL |
| P3 | Performance | HIGH |
| P4 | Layout/Responsive | HIGH |
| P5 | Typography/Color | MEDIUM |
| P6 | Animation | MEDIUM |
| P7 | Style Fit | MEDIUM |
| P8 | Charts/Data | LOW |
## WCAG Checks
| Check | WCAG Criteria |
|-------|---------------|
| Color contrast | 4.5:1 (AA) |
| Large text contrast | 3:1 (AA) |
| UI component contrast | 3:1 |
| Touch target size | 44x44px |
| Text size | 12px minimum |
| Link distinction | Underline or 3:1 contrast |
## Output
```
.design-polish/
├── screenshots/
│ ├── current-main.png
│ └── reference-*.png
└── accessibility/
└── wcag-report.json
```
## Environment Variables
| Variable | Default | Description |
|----------|---------|-------------|
| BASE_URL | http://localhost:3000 | Local server URL |
| OUTPUT_DIR | .design-polish/screenshots | Screenshot directory |
| A11Y_DIR | .design-polish/accessibility | Accessibility report directory |
| WAIT_TIME | 2000 | Wait time after page load (ms) |
| TIMEOUT | 30000 | Page load timeout (ms) |
| FULL_PAGE | false | Capture full page |
## Data Sources
Design knowledge is adapted from [ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) (MIT License), converted from CSV/Python to JSON/Node.js for zero-dependency integration.
## License
MIT