impeccable 2.0.0 → 2.0.1
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.
- package/README.bak.md +237 -0
- package/README.md +37 -207
- package/README.npm.md +67 -0
- package/package.json +4 -1
- package/source/skills/critique/scripts/detect-antipatterns-browser.js +1556 -0
package/README.bak.md
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
# Impeccable
|
|
2
|
+
|
|
3
|
+
The vocabulary you didn't know you needed. 1 skill, 20 commands, and curated anti-patterns for impeccable frontend design.
|
|
4
|
+
|
|
5
|
+
> **Quick start:** Visit [impeccable.style](https://impeccable.style) to download ready-to-use bundles.
|
|
6
|
+
|
|
7
|
+
## Why Impeccable?
|
|
8
|
+
|
|
9
|
+
Anthropic created [frontend-design](https://github.com/anthropics/skills/tree/main/skills/frontend-design), a skill that guides Claude toward better UI design. Impeccable builds on that foundation with deeper expertise and more control.
|
|
10
|
+
|
|
11
|
+
Every LLM learned from the same generic templates. Without guidance, you get the same predictable mistakes: Inter font, purple gradients, cards nested in cards, gray text on colored backgrounds.
|
|
12
|
+
|
|
13
|
+
Impeccable fights that bias with:
|
|
14
|
+
- **An expanded skill** with 7 domain-specific reference files ([view source](source/skills/frontend-design/))
|
|
15
|
+
- **20 steering commands** to audit, review, polish, distill, animate, and more
|
|
16
|
+
- **Curated anti-patterns** that explicitly tell the AI what NOT to do
|
|
17
|
+
|
|
18
|
+
## What's Included
|
|
19
|
+
|
|
20
|
+
### The Skill: frontend-design
|
|
21
|
+
|
|
22
|
+
A comprehensive design skill with 7 domain-specific references ([view skill](source/skills/frontend-design/SKILL.md)):
|
|
23
|
+
|
|
24
|
+
| Reference | Covers |
|
|
25
|
+
|-----------|--------|
|
|
26
|
+
| [typography](source/skills/frontend-design/reference/typography.md) | Type systems, font pairing, modular scales, OpenType |
|
|
27
|
+
| [color-and-contrast](source/skills/frontend-design/reference/color-and-contrast.md) | OKLCH, tinted neutrals, dark mode, accessibility |
|
|
28
|
+
| [spatial-design](source/skills/frontend-design/reference/spatial-design.md) | Spacing systems, grids, visual hierarchy |
|
|
29
|
+
| [motion-design](source/skills/frontend-design/reference/motion-design.md) | Easing curves, staggering, reduced motion |
|
|
30
|
+
| [interaction-design](source/skills/frontend-design/reference/interaction-design.md) | Forms, focus states, loading patterns |
|
|
31
|
+
| [responsive-design](source/skills/frontend-design/reference/responsive-design.md) | Mobile-first, fluid design, container queries |
|
|
32
|
+
| [ux-writing](source/skills/frontend-design/reference/ux-writing.md) | Button labels, error messages, empty states |
|
|
33
|
+
|
|
34
|
+
### 20 Commands
|
|
35
|
+
|
|
36
|
+
| Command | What it does |
|
|
37
|
+
|---------|--------------|
|
|
38
|
+
| `/teach-impeccable` | One-time setup: gather design context, save to config |
|
|
39
|
+
| `/audit` | Run technical quality checks (a11y, performance, responsive) |
|
|
40
|
+
| `/critique` | UX design review: hierarchy, clarity, emotional resonance |
|
|
41
|
+
| `/normalize` | Align with design system standards |
|
|
42
|
+
| `/polish` | Final pass before shipping |
|
|
43
|
+
| `/distill` | Strip to essence |
|
|
44
|
+
| `/clarify` | Improve unclear UX copy |
|
|
45
|
+
| `/optimize` | Performance improvements |
|
|
46
|
+
| `/harden` | Error handling, i18n, edge cases |
|
|
47
|
+
| `/animate` | Add purposeful motion |
|
|
48
|
+
| `/colorize` | Introduce strategic color |
|
|
49
|
+
| `/bolder` | Amplify boring designs |
|
|
50
|
+
| `/quieter` | Tone down overly bold designs |
|
|
51
|
+
| `/delight` | Add moments of joy |
|
|
52
|
+
| `/extract` | Pull into reusable components |
|
|
53
|
+
| `/adapt` | Adapt for different devices |
|
|
54
|
+
| `/onboard` | Design onboarding flows |
|
|
55
|
+
| `/typeset` | Fix font choices, hierarchy, sizing |
|
|
56
|
+
| `/arrange` | Fix layout, spacing, visual rhythm |
|
|
57
|
+
| `/overdrive` | Add technically extraordinary effects |
|
|
58
|
+
|
|
59
|
+
#### Usage Examples
|
|
60
|
+
|
|
61
|
+
**`/audit`** - Run quality checks, get a report (no edits)
|
|
62
|
+
```
|
|
63
|
+
/audit blog # Audit blog hub + post pages
|
|
64
|
+
/audit dashboard # Check dashboard components
|
|
65
|
+
/audit checkout flow # Focus on checkout UX
|
|
66
|
+
```
|
|
67
|
+
*When to use:* Before making changes, to understand what needs fixing.
|
|
68
|
+
|
|
69
|
+
**`/normalize`** - Align with design system
|
|
70
|
+
```
|
|
71
|
+
/normalize blog # Apply design tokens, fix spacing
|
|
72
|
+
/normalize buttons # Standardize button styles
|
|
73
|
+
```
|
|
74
|
+
*When to use:* After audit, to fix inconsistencies.
|
|
75
|
+
|
|
76
|
+
**`/critique`** - UX design review
|
|
77
|
+
```
|
|
78
|
+
/critique landing page # Review landing page UX
|
|
79
|
+
/critique onboarding # Check onboarding flow
|
|
80
|
+
```
|
|
81
|
+
*When to use:* When you want design feedback, not technical fixes.
|
|
82
|
+
|
|
83
|
+
**`/polish`** - Final pass before shipping
|
|
84
|
+
```
|
|
85
|
+
/polish feature modal # Clean up modal before release
|
|
86
|
+
/polish settings page # Final review of settings UI
|
|
87
|
+
```
|
|
88
|
+
*When to use:* Last step before deploying to production.
|
|
89
|
+
|
|
90
|
+
**Combining commands:**
|
|
91
|
+
```
|
|
92
|
+
/audit /normalize /polish blog # Full workflow: audit → fix → polish
|
|
93
|
+
/critique /harden checkout # UX review + add error handling
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Anti-Patterns
|
|
97
|
+
|
|
98
|
+
The skill includes explicit guidance on what to avoid:
|
|
99
|
+
|
|
100
|
+
- Don't use overused fonts (Arial, Inter, system defaults)
|
|
101
|
+
- Don't use gray text on colored backgrounds
|
|
102
|
+
- Don't use pure black/gray (always tint)
|
|
103
|
+
- Don't wrap everything in cards or nest cards inside cards
|
|
104
|
+
- Don't use bounce/elastic easing (feels dated)
|
|
105
|
+
|
|
106
|
+
## See It In Action
|
|
107
|
+
|
|
108
|
+
Visit [impeccable.style](https://impeccable.style#casestudies) to see before/after case studies of real projects transformed with Impeccable commands.
|
|
109
|
+
|
|
110
|
+
## Installation
|
|
111
|
+
|
|
112
|
+
### Option 1: Download from Website (Recommended)
|
|
113
|
+
|
|
114
|
+
Visit [impeccable.style](https://impeccable.style), download the ZIP for your tool, and extract to your project.
|
|
115
|
+
|
|
116
|
+
### Option 2: Copy from Repository
|
|
117
|
+
|
|
118
|
+
**Cursor:**
|
|
119
|
+
```bash
|
|
120
|
+
cp -r dist/cursor/.cursor your-project/
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
> **Note:** Cursor skills require setup:
|
|
124
|
+
> 1. Switch to Nightly channel in Cursor Settings → Beta
|
|
125
|
+
> 2. Enable Agent Skills in Cursor Settings → Rules
|
|
126
|
+
>
|
|
127
|
+
> [Learn more about Cursor skills](https://cursor.com/docs/context/skills)
|
|
128
|
+
|
|
129
|
+
**Claude Code:**
|
|
130
|
+
```bash
|
|
131
|
+
# Project-specific
|
|
132
|
+
cp -r dist/claude-code/.claude your-project/
|
|
133
|
+
|
|
134
|
+
# Or global (applies to all projects)
|
|
135
|
+
cp -r dist/claude-code/.claude/* ~/.claude/
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**OpenCode:**
|
|
139
|
+
```bash
|
|
140
|
+
cp -r dist/opencode/.opencode your-project/
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
**Pi:**
|
|
144
|
+
```bash
|
|
145
|
+
cp -r dist/pi/.pi your-project/
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Gemini CLI:**
|
|
149
|
+
```bash
|
|
150
|
+
cp -r dist/gemini/.gemini your-project/
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
> **Note:** Gemini CLI skills require setup:
|
|
154
|
+
> 1. Install preview version: `npm i -g @google/gemini-cli@preview`
|
|
155
|
+
> 2. Run `/settings` and enable "Skills"
|
|
156
|
+
> 3. Run `/skills list` to verify installation
|
|
157
|
+
>
|
|
158
|
+
> [Learn more about Gemini CLI skills](https://geminicli.com/docs/cli/skills/)
|
|
159
|
+
|
|
160
|
+
**Codex CLI:**
|
|
161
|
+
```bash
|
|
162
|
+
cp -r dist/codex/.codex/* ~/.codex/
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**Trae:**
|
|
166
|
+
```bash
|
|
167
|
+
# Trae China (domestic version)
|
|
168
|
+
cp -r dist/trae/.trae-cn/skills/* ~/.trae-cn/skills/
|
|
169
|
+
|
|
170
|
+
# Trae International
|
|
171
|
+
cp -r dist/trae/.trae/skills/* ~/.trae/skills/
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
> **Note:** Trae has two versions with different config directories:
|
|
175
|
+
> - **Trae China**: `~/.trae-cn/skills/`
|
|
176
|
+
> - **Trae International**: `~/.trae/skills/`
|
|
177
|
+
>
|
|
178
|
+
> After copying, restart Trae IDE to activate the skills.
|
|
179
|
+
|
|
180
|
+
## Usage
|
|
181
|
+
|
|
182
|
+
Once installed, use commands in your AI harness:
|
|
183
|
+
|
|
184
|
+
```
|
|
185
|
+
/audit # Find issues
|
|
186
|
+
/normalize # Fix inconsistencies
|
|
187
|
+
/polish # Final cleanup
|
|
188
|
+
/distill # Remove complexity
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Most commands accept an optional argument to focus on a specific area:
|
|
192
|
+
|
|
193
|
+
```
|
|
194
|
+
/audit header
|
|
195
|
+
/polish checkout-form
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
**Note:** Codex CLI uses a different syntax: `/prompts:audit`, `/prompts:polish`, etc.
|
|
199
|
+
|
|
200
|
+
## CLI
|
|
201
|
+
|
|
202
|
+
Impeccable includes a standalone CLI for detecting anti-patterns without an AI harness:
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
bun bin/impeccable.mjs detect src/ # scan a directory
|
|
206
|
+
bun bin/impeccable.mjs detect index.html # scan an HTML file
|
|
207
|
+
bun bin/impeccable.mjs detect https://example.com # scan a URL (Puppeteer)
|
|
208
|
+
bun bin/impeccable.mjs detect --fast --json . # regex-only, JSON output
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
The detector catches 25 issues across AI slop (side-tab borders, purple gradients, bounce easing, dark glows) and general design quality (line length, cramped padding, small touch targets, skipped headings, and more).
|
|
212
|
+
|
|
213
|
+
## Supported Tools
|
|
214
|
+
|
|
215
|
+
- [Cursor](https://cursor.com)
|
|
216
|
+
- [Claude Code](https://claude.ai/code)
|
|
217
|
+
- [OpenCode](https://opencode.ai)
|
|
218
|
+
- [Pi](https://pi.dev)
|
|
219
|
+
- [Gemini CLI](https://github.com/google-gemini/gemini-cli)
|
|
220
|
+
- [Codex CLI](https://github.com/openai/codex)
|
|
221
|
+
- [VS Code Copilot](https://code.visualstudio.com)
|
|
222
|
+
- [Kiro](https://kiro.dev)
|
|
223
|
+
- [Trae](https://trae.ai)
|
|
224
|
+
|
|
225
|
+
## Contributing
|
|
226
|
+
|
|
227
|
+
See [DEVELOP.md](DEVELOP.md) for contributor guidelines and build instructions.
|
|
228
|
+
|
|
229
|
+
## License
|
|
230
|
+
|
|
231
|
+
Apache 2.0. See [LICENSE](LICENSE).
|
|
232
|
+
|
|
233
|
+
The frontend-design skill builds on [Anthropic's original](https://github.com/anthropics/skills/tree/main/skills/frontend-design). See [NOTICE.md](NOTICE.md) for attribution.
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
Created by [Paul Bakaus](https://www.paulbakaus.com)
|
package/README.md
CHANGED
|
@@ -1,237 +1,67 @@
|
|
|
1
|
-
# Impeccable
|
|
2
|
-
|
|
3
|
-
The vocabulary you didn't know you needed. 1 skill, 20 commands, and curated anti-patterns for impeccable frontend design.
|
|
4
|
-
|
|
5
|
-
> **Quick start:** Visit [impeccable.style](https://impeccable.style) to download ready-to-use bundles.
|
|
6
|
-
|
|
7
|
-
## Why Impeccable?
|
|
8
|
-
|
|
9
|
-
Anthropic created [frontend-design](https://github.com/anthropics/skills/tree/main/skills/frontend-design), a skill that guides Claude toward better UI design. Impeccable builds on that foundation with deeper expertise and more control.
|
|
10
|
-
|
|
11
|
-
Every LLM learned from the same generic templates. Without guidance, you get the same predictable mistakes: Inter font, purple gradients, cards nested in cards, gray text on colored backgrounds.
|
|
12
|
-
|
|
13
|
-
Impeccable fights that bias with:
|
|
14
|
-
- **An expanded skill** with 7 domain-specific reference files ([view source](source/skills/frontend-design/))
|
|
15
|
-
- **20 steering commands** to audit, review, polish, distill, animate, and more
|
|
16
|
-
- **Curated anti-patterns** that explicitly tell the AI what NOT to do
|
|
17
|
-
|
|
18
|
-
## What's Included
|
|
19
|
-
|
|
20
|
-
### The Skill: frontend-design
|
|
21
|
-
|
|
22
|
-
A comprehensive design skill with 7 domain-specific references ([view skill](source/skills/frontend-design/SKILL.md)):
|
|
23
|
-
|
|
24
|
-
| Reference | Covers |
|
|
25
|
-
|-----------|--------|
|
|
26
|
-
| [typography](source/skills/frontend-design/reference/typography.md) | Type systems, font pairing, modular scales, OpenType |
|
|
27
|
-
| [color-and-contrast](source/skills/frontend-design/reference/color-and-contrast.md) | OKLCH, tinted neutrals, dark mode, accessibility |
|
|
28
|
-
| [spatial-design](source/skills/frontend-design/reference/spatial-design.md) | Spacing systems, grids, visual hierarchy |
|
|
29
|
-
| [motion-design](source/skills/frontend-design/reference/motion-design.md) | Easing curves, staggering, reduced motion |
|
|
30
|
-
| [interaction-design](source/skills/frontend-design/reference/interaction-design.md) | Forms, focus states, loading patterns |
|
|
31
|
-
| [responsive-design](source/skills/frontend-design/reference/responsive-design.md) | Mobile-first, fluid design, container queries |
|
|
32
|
-
| [ux-writing](source/skills/frontend-design/reference/ux-writing.md) | Button labels, error messages, empty states |
|
|
33
|
-
|
|
34
|
-
### 20 Commands
|
|
35
|
-
|
|
36
|
-
| Command | What it does |
|
|
37
|
-
|---------|--------------|
|
|
38
|
-
| `/teach-impeccable` | One-time setup: gather design context, save to config |
|
|
39
|
-
| `/audit` | Run technical quality checks (a11y, performance, responsive) |
|
|
40
|
-
| `/critique` | UX design review: hierarchy, clarity, emotional resonance |
|
|
41
|
-
| `/normalize` | Align with design system standards |
|
|
42
|
-
| `/polish` | Final pass before shipping |
|
|
43
|
-
| `/distill` | Strip to essence |
|
|
44
|
-
| `/clarify` | Improve unclear UX copy |
|
|
45
|
-
| `/optimize` | Performance improvements |
|
|
46
|
-
| `/harden` | Error handling, i18n, edge cases |
|
|
47
|
-
| `/animate` | Add purposeful motion |
|
|
48
|
-
| `/colorize` | Introduce strategic color |
|
|
49
|
-
| `/bolder` | Amplify boring designs |
|
|
50
|
-
| `/quieter` | Tone down overly bold designs |
|
|
51
|
-
| `/delight` | Add moments of joy |
|
|
52
|
-
| `/extract` | Pull into reusable components |
|
|
53
|
-
| `/adapt` | Adapt for different devices |
|
|
54
|
-
| `/onboard` | Design onboarding flows |
|
|
55
|
-
| `/typeset` | Fix font choices, hierarchy, sizing |
|
|
56
|
-
| `/arrange` | Fix layout, spacing, visual rhythm |
|
|
57
|
-
| `/overdrive` | Add technically extraordinary effects |
|
|
58
|
-
|
|
59
|
-
#### Usage Examples
|
|
60
|
-
|
|
61
|
-
**`/audit`** - Run quality checks, get a report (no edits)
|
|
62
|
-
```
|
|
63
|
-
/audit blog # Audit blog hub + post pages
|
|
64
|
-
/audit dashboard # Check dashboard components
|
|
65
|
-
/audit checkout flow # Focus on checkout UX
|
|
66
|
-
```
|
|
67
|
-
*When to use:* Before making changes, to understand what needs fixing.
|
|
68
|
-
|
|
69
|
-
**`/normalize`** - Align with design system
|
|
70
|
-
```
|
|
71
|
-
/normalize blog # Apply design tokens, fix spacing
|
|
72
|
-
/normalize buttons # Standardize button styles
|
|
73
|
-
```
|
|
74
|
-
*When to use:* After audit, to fix inconsistencies.
|
|
75
|
-
|
|
76
|
-
**`/critique`** - UX design review
|
|
77
|
-
```
|
|
78
|
-
/critique landing page # Review landing page UX
|
|
79
|
-
/critique onboarding # Check onboarding flow
|
|
80
|
-
```
|
|
81
|
-
*When to use:* When you want design feedback, not technical fixes.
|
|
1
|
+
# Impeccable CLI
|
|
82
2
|
|
|
83
|
-
|
|
84
|
-
```
|
|
85
|
-
/polish feature modal # Clean up modal before release
|
|
86
|
-
/polish settings page # Final review of settings UI
|
|
87
|
-
```
|
|
88
|
-
*When to use:* Last step before deploying to production.
|
|
3
|
+
Detect UI anti-patterns and design quality issues from the command line. Scans HTML, CSS, JSX, TSX, Vue, and Svelte files for 25 specific patterns including AI-generated UI tells, accessibility violations, and general design quality problems.
|
|
89
4
|
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
/audit /normalize /polish blog # Full workflow: audit → fix → polish
|
|
93
|
-
/critique /harden checkout # UX review + add error handling
|
|
94
|
-
```
|
|
5
|
+
## Quick Start
|
|
95
6
|
|
|
96
|
-
### Anti-Patterns
|
|
97
|
-
|
|
98
|
-
The skill includes explicit guidance on what to avoid:
|
|
99
|
-
|
|
100
|
-
- Don't use overused fonts (Arial, Inter, system defaults)
|
|
101
|
-
- Don't use gray text on colored backgrounds
|
|
102
|
-
- Don't use pure black/gray (always tint)
|
|
103
|
-
- Don't wrap everything in cards or nest cards inside cards
|
|
104
|
-
- Don't use bounce/elastic easing (feels dated)
|
|
105
|
-
|
|
106
|
-
## See It In Action
|
|
107
|
-
|
|
108
|
-
Visit [impeccable.style](https://impeccable.style#casestudies) to see before/after case studies of real projects transformed with Impeccable commands.
|
|
109
|
-
|
|
110
|
-
## Installation
|
|
111
|
-
|
|
112
|
-
### Option 1: Download from Website (Recommended)
|
|
113
|
-
|
|
114
|
-
Visit [impeccable.style](https://impeccable.style), download the ZIP for your tool, and extract to your project.
|
|
115
|
-
|
|
116
|
-
### Option 2: Copy from Repository
|
|
117
|
-
|
|
118
|
-
**Cursor:**
|
|
119
7
|
```bash
|
|
120
|
-
|
|
121
|
-
|
|
8
|
+
# Scan files or directories
|
|
9
|
+
npx impeccable detect src/
|
|
122
10
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
> 2. Enable Agent Skills in Cursor Settings → Rules
|
|
126
|
-
>
|
|
127
|
-
> [Learn more about Cursor skills](https://cursor.com/docs/context/skills)
|
|
11
|
+
# Scan a live URL (requires Puppeteer)
|
|
12
|
+
npx impeccable detect https://example.com
|
|
128
13
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
# Project-specific
|
|
132
|
-
cp -r dist/claude-code/.claude your-project/
|
|
14
|
+
# JSON output for CI/tooling
|
|
15
|
+
npx impeccable detect --json src/
|
|
133
16
|
|
|
134
|
-
#
|
|
135
|
-
|
|
17
|
+
# Regex-only mode (faster, no jsdom)
|
|
18
|
+
npx impeccable detect --fast src/
|
|
136
19
|
```
|
|
137
20
|
|
|
138
|
-
|
|
139
|
-
```bash
|
|
140
|
-
cp -r dist/opencode/.opencode your-project/
|
|
141
|
-
```
|
|
21
|
+
## What It Detects
|
|
142
22
|
|
|
143
|
-
**
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
23
|
+
**AI Slop Tells** -- patterns that scream "AI generated this":
|
|
24
|
+
- Side-tab accent borders, gradient text on headings
|
|
25
|
+
- Purple/violet gradients and cyan-on-dark palettes
|
|
26
|
+
- Dark mode with glowing accents, border + border-radius clashes
|
|
147
27
|
|
|
148
|
-
**
|
|
149
|
-
```bash
|
|
150
|
-
cp -r dist/gemini/.gemini your-project/
|
|
151
|
-
```
|
|
28
|
+
**Typography Issues** -- overused fonts (Inter, Roboto), flat type hierarchy, single font families
|
|
152
29
|
|
|
153
|
-
|
|
154
|
-
> 1. Install preview version: `npm i -g @google/gemini-cli@preview`
|
|
155
|
-
> 2. Run `/settings` and enable "Skills"
|
|
156
|
-
> 3. Run `/skills list` to verify installation
|
|
157
|
-
>
|
|
158
|
-
> [Learn more about Gemini CLI skills](https://geminicli.com/docs/cli/skills/)
|
|
30
|
+
**Color & Contrast** -- WCAG AA violations, gray text on colored backgrounds, pure black/white
|
|
159
31
|
|
|
160
|
-
**
|
|
161
|
-
```bash
|
|
162
|
-
cp -r dist/codex/.codex/* ~/.codex/
|
|
163
|
-
```
|
|
32
|
+
**Layout & Composition** -- nested cards, monotonous spacing, everything-centered layouts
|
|
164
33
|
|
|
165
|
-
**
|
|
166
|
-
```bash
|
|
167
|
-
# Trae China (domestic version)
|
|
168
|
-
cp -r dist/trae/.trae-cn/skills/* ~/.trae-cn/skills/
|
|
169
|
-
|
|
170
|
-
# Trae International
|
|
171
|
-
cp -r dist/trae/.trae/skills/* ~/.trae/skills/
|
|
172
|
-
```
|
|
34
|
+
**Motion** -- bounce/elastic easing, layout property transitions
|
|
173
35
|
|
|
174
|
-
|
|
175
|
-
> - **Trae China**: `~/.trae-cn/skills/`
|
|
176
|
-
> - **Trae International**: `~/.trae/skills/`
|
|
177
|
-
>
|
|
178
|
-
> After copying, restart Trae IDE to activate the skills.
|
|
36
|
+
**Quality** -- tiny body text, cramped padding, long line lengths, small touch targets
|
|
179
37
|
|
|
180
|
-
|
|
38
|
+
25 detections in total. See the full list at [impeccable.style](https://impeccable.style).
|
|
181
39
|
|
|
182
|
-
|
|
40
|
+
## Exit Codes
|
|
183
41
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
/normalize # Fix inconsistencies
|
|
187
|
-
/polish # Final cleanup
|
|
188
|
-
/distill # Remove complexity
|
|
189
|
-
```
|
|
42
|
+
- `0` -- no issues found
|
|
43
|
+
- `2` -- anti-patterns detected
|
|
190
44
|
|
|
191
|
-
|
|
45
|
+
## Options
|
|
192
46
|
|
|
193
47
|
```
|
|
194
|
-
|
|
195
|
-
/polish checkout-form
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
**Note:** Codex CLI uses a different syntax: `/prompts:audit`, `/prompts:polish`, etc.
|
|
199
|
-
|
|
200
|
-
## CLI
|
|
201
|
-
|
|
202
|
-
Impeccable includes a standalone CLI for detecting anti-patterns without an AI harness:
|
|
48
|
+
impeccable detect [options] [file-or-dir-or-url...]
|
|
203
49
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
bun bin/impeccable.mjs detect https://example.com # scan a URL (Puppeteer)
|
|
208
|
-
bun bin/impeccable.mjs detect --fast --json . # regex-only, JSON output
|
|
50
|
+
--fast Regex-only mode (skip jsdom, faster but less accurate)
|
|
51
|
+
--json Output findings as JSON
|
|
52
|
+
--help Show help
|
|
209
53
|
```
|
|
210
54
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
## Supported Tools
|
|
55
|
+
## Requirements
|
|
214
56
|
|
|
215
|
-
-
|
|
216
|
-
-
|
|
217
|
-
-
|
|
218
|
-
- [Pi](https://pi.dev)
|
|
219
|
-
- [Gemini CLI](https://github.com/google-gemini/gemini-cli)
|
|
220
|
-
- [Codex CLI](https://github.com/openai/codex)
|
|
221
|
-
- [VS Code Copilot](https://code.visualstudio.com)
|
|
222
|
-
- [Kiro](https://kiro.dev)
|
|
223
|
-
- [Trae](https://trae.ai)
|
|
57
|
+
- Node.js 18+
|
|
58
|
+
- `jsdom` (included as dependency, used for HTML scanning)
|
|
59
|
+
- `puppeteer` (optional, only needed for URL scanning)
|
|
224
60
|
|
|
225
|
-
##
|
|
61
|
+
## Part of Impeccable
|
|
226
62
|
|
|
227
|
-
|
|
63
|
+
This CLI is part of [Impeccable](https://impeccable.style), a cross-provider design skill pack for AI-powered development tools. The full suite includes 20 steering commands for Claude, Cursor, Gemini, Codex, and more.
|
|
228
64
|
|
|
229
65
|
## License
|
|
230
66
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
The frontend-design skill builds on [Anthropic's original](https://github.com/anthropics/skills/tree/main/skills/frontend-design). See [NOTICE.md](NOTICE.md) for attribution.
|
|
234
|
-
|
|
235
|
-
---
|
|
236
|
-
|
|
237
|
-
Created by [Paul Bakaus](https://www.paulbakaus.com)
|
|
67
|
+
See [LICENSE](https://github.com/pbakaus/impeccable/blob/main/LICENSE) file.
|
package/README.npm.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Impeccable CLI
|
|
2
|
+
|
|
3
|
+
Detect UI anti-patterns and design quality issues from the command line. Scans HTML, CSS, JSX, TSX, Vue, and Svelte files for 25 specific patterns including AI-generated UI tells, accessibility violations, and general design quality problems.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Scan files or directories
|
|
9
|
+
npx impeccable detect src/
|
|
10
|
+
|
|
11
|
+
# Scan a live URL (requires Puppeteer)
|
|
12
|
+
npx impeccable detect https://example.com
|
|
13
|
+
|
|
14
|
+
# JSON output for CI/tooling
|
|
15
|
+
npx impeccable detect --json src/
|
|
16
|
+
|
|
17
|
+
# Regex-only mode (faster, no jsdom)
|
|
18
|
+
npx impeccable detect --fast src/
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## What It Detects
|
|
22
|
+
|
|
23
|
+
**AI Slop Tells** -- patterns that scream "AI generated this":
|
|
24
|
+
- Side-tab accent borders, gradient text on headings
|
|
25
|
+
- Purple/violet gradients and cyan-on-dark palettes
|
|
26
|
+
- Dark mode with glowing accents, border + border-radius clashes
|
|
27
|
+
|
|
28
|
+
**Typography Issues** -- overused fonts (Inter, Roboto), flat type hierarchy, single font families
|
|
29
|
+
|
|
30
|
+
**Color & Contrast** -- WCAG AA violations, gray text on colored backgrounds, pure black/white
|
|
31
|
+
|
|
32
|
+
**Layout & Composition** -- nested cards, monotonous spacing, everything-centered layouts
|
|
33
|
+
|
|
34
|
+
**Motion** -- bounce/elastic easing, layout property transitions
|
|
35
|
+
|
|
36
|
+
**Quality** -- tiny body text, cramped padding, long line lengths, small touch targets
|
|
37
|
+
|
|
38
|
+
25 detections in total. See the full list at [impeccable.style](https://impeccable.style).
|
|
39
|
+
|
|
40
|
+
## Exit Codes
|
|
41
|
+
|
|
42
|
+
- `0` -- no issues found
|
|
43
|
+
- `2` -- anti-patterns detected
|
|
44
|
+
|
|
45
|
+
## Options
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
impeccable detect [options] [file-or-dir-or-url...]
|
|
49
|
+
|
|
50
|
+
--fast Regex-only mode (skip jsdom, faster but less accurate)
|
|
51
|
+
--json Output findings as JSON
|
|
52
|
+
--help Show help
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Requirements
|
|
56
|
+
|
|
57
|
+
- Node.js 18+
|
|
58
|
+
- `jsdom` (included as dependency, used for HTML scanning)
|
|
59
|
+
- `puppeteer` (optional, only needed for URL scanning)
|
|
60
|
+
|
|
61
|
+
## Part of Impeccable
|
|
62
|
+
|
|
63
|
+
This CLI is part of [Impeccable](https://impeccable.style), a cross-provider design skill pack for AI-powered development tools. The full suite includes 20 steering commands for Claude, Cursor, Gemini, Codex, and more.
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
See [LICENSE](https://github.com/pbakaus/impeccable/blob/main/LICENSE) file.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "impeccable",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"author": "Paul Bakaus",
|
|
5
5
|
"bin": {
|
|
6
6
|
"impeccable": "./bin/impeccable"
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"bin/",
|
|
10
10
|
"source/skills/critique/scripts/detect-antipatterns.mjs",
|
|
11
|
+
"source/skills/critique/scripts/detect-antipatterns-browser.js",
|
|
11
12
|
"LICENSE"
|
|
12
13
|
],
|
|
13
14
|
"dependencies": {
|
|
@@ -37,6 +38,8 @@
|
|
|
37
38
|
"node": ">=18"
|
|
38
39
|
},
|
|
39
40
|
"scripts": {
|
|
41
|
+
"prepublishOnly": "cp README.md README.bak.md && cp README.npm.md README.md",
|
|
42
|
+
"postpublish": "mv README.bak.md README.md",
|
|
40
43
|
"build": "bun run scripts/build.js",
|
|
41
44
|
"clean": "rm -rf dist build",
|
|
42
45
|
"rebuild": "bun run clean && bun run build",
|