impeccable 4.8.0 → 4.8.2

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.repo.md CHANGED
@@ -1,369 +1,174 @@
1
1
  # Impeccable
2
2
 
3
- Design guidance for AI coding agents. 1 skill, 24 commands, live browser iteration, and 62 deterministic detector rules for AI-generated frontend design.
3
+ The design vocabulary for your coding agent. Steer with `polish` and `bolder`, review with `critique` and `audit`, and catch AI slop before it ships.
4
4
 
5
- > **Quick start:** From your project root, run `npx impeccable install`, then run `/impeccable init` inside your AI coding tool. Full docs: [impeccable.style](https://impeccable.style).
6
-
7
- ## Why Impeccable?
8
-
9
- Anthropic's [frontend-design](https://github.com/anthropics/skills/tree/main/skills/frontend-design) was the first widely-used design skill for Claude. Impeccable started from there.
10
-
11
- Every model trained on the same SaaS templates. Skip the guidance and you get the same handful of tells on every project: Inter for everything, purple-to-blue gradients, cards nested in cards, gray text on colored backgrounds, the rounded-square icon tile above every heading.
12
-
13
- Impeccable adds:
14
- - **One setup flow.** `/impeccable init` records durable product truth in `PRODUCT.md`, so later commands know the audience, purpose, operating context, constraints, voice, and evidence without confusing those facts with surface-level visual direction.
15
- - **24 commands.** A shared design vocabulary with your AI: `polish`, `audit`, `critique`, `distill`, `animate`, `bolder`, `quieter`, and more.
16
- - **62 deterministic detector rules** plus LLM-only critique checks. The CLI and browser extension run the deterministic rules with no LLM and no API key.
17
-
18
- ## What's Included
19
-
20
- ### The Skill: impeccable
21
-
22
- The skill installs as one command:
23
-
24
- ```bash
25
- /impeccable <command> <target>
26
- ```
27
-
28
- Start every new project with:
29
-
30
- ```bash
31
- /impeccable init
32
- ```
33
-
34
- `init` inspects the project, asks only for material gaps in durable product truth, and writes `PRODUCT.md`. Visitor mode and visual direction are chosen later for each surface; incumbent or newly built visual systems are recorded separately in `DESIGN.md`.
35
-
36
- ### 24 Commands
37
-
38
- All commands are accessed through `/impeccable`:
39
-
40
- | Command | What it does |
41
- |---------|--------------|
42
- | `/impeccable craft` | Full shape-then-build flow with visual iteration |
43
- | `/impeccable init` | One-time setup: gather durable product context, write PRODUCT.md, configure live mode when applicable, recommend next steps |
44
- | `/impeccable document` | Generate root DESIGN.md from existing project code |
45
- | `/impeccable extract` | Pull reusable components and tokens into the design system |
46
- | `/impeccable shape` | Plan UX/UI before writing code |
47
- | `/impeccable critique` | UX design review: hierarchy, clarity, emotional resonance |
48
- | `/impeccable audit` | Run technical quality checks (a11y, performance, responsive) |
49
- | `/impeccable polish` | Final pass, design system alignment, and shipping readiness |
50
- | `/impeccable bolder` | Amplify boring designs |
51
- | `/impeccable quieter` | Tone down overly bold designs |
52
- | `/impeccable distill` | Strip to essence |
53
- | `/impeccable harden` | Error handling, i18n, text overflow, edge cases |
54
- | `/impeccable onboard` | First-run flows, empty states, activation paths |
55
- | `/impeccable animate` | Add purposeful motion |
56
- | `/impeccable colorize` | Introduce strategic color |
57
- | `/impeccable typeset` | Fix font choices, hierarchy, sizing |
58
- | `/impeccable layout` | Fix layout, spacing, visual rhythm |
59
- | `/impeccable delight` | Add moments of joy |
60
- | `/impeccable overdrive` | Add technically extraordinary effects |
61
- | `/impeccable clarify` | Improve unclear UX copy |
62
- | `/impeccable adapt` | Adapt for different devices |
63
- | `/impeccable optimize` | Performance improvements |
64
- | `/impeccable live` | Visual variant mode: iterate on elements in the browser |
65
- | `/impeccable generate` | Generate variants of a named element in the live browser, no manual picking |
66
-
67
- Use `/impeccable pin <command>` to create standalone shortcuts (e.g., `pin audit` creates `/audit`).
68
-
69
- #### Usage Examples
70
-
71
- ```
72
- /impeccable audit blog # Audit blog hub + post pages
73
- /impeccable critique landing # UX design review
74
- /impeccable polish settings # Final pass before shipping
75
- /impeccable harden checkout # Add error handling + edge cases
76
- ```
77
-
78
- Or use `/impeccable` directly with a description:
79
- ```
80
- /impeccable redo this hero section
81
- ```
82
-
83
- ### Anti-Patterns
84
-
85
- The skill includes explicit guidance on what to avoid:
86
-
87
- - Don't use overused fonts (Arial, Inter, system defaults)
88
- - Don't use gray text on colored backgrounds
89
- - Don't use pure black/gray (always tint)
90
- - Don't wrap everything in cards or nest cards inside cards
91
- - Don't use bounce/elastic easing (feels dated)
92
-
93
- ## See It In Action
94
-
95
- Visit [the Neo Mirai case study](https://impeccable.style/cases/neo-mirai) to see a before/after case study of a real project transformed with Impeccable commands.
96
-
97
- ## Installation
98
-
99
- The skill needs no runtime of its own. Every skill copy ships a small launcher (`scripts/impeccable`, plus `impeccable.cmd` for Windows) that runs the Impeccable engine, a self-contained binary that either sits next to the launcher or is downloaded once on first run into `~/.impeccable/bin/`. Node is only involved if you use the `npx impeccable` installer, which is a shim around the same binary; the manual and Git options below work without it.
100
-
101
- ### Option 1: CLI installer (Recommended)
102
-
103
- From the root of your project, run:
5
+ From your project root:
104
6
 
105
7
  ```bash
106
8
  npx impeccable install
107
9
  ```
108
10
 
109
- This shows the harness folders or installed CLIs it detected (for example `~/.claude`, `~/.codex`, `~/.grok`, `~/.hermes`, `~/.veto`, or project-local `.cursor`), lets you keep the detected set or customize providers, then asks whether to install into the current project or globally. Use `--providers=claude,codex,replit,cursor,grok,hermes,veto` and `--scope=project|global` to skip those choices in scripts. On Claude Code, Cursor, Codex, GitHub Copilot, and Grok Build, it also installs the provider-native hook manifest for the current project. Veto receives the packaged skill under `~/.veto/skills/` and does not run native Impeccable edit hooks. Works with Cursor, Claude Code, Gemini CLI, Codex CLI, Replit Agent, Grok Build, Hermes Agent, Veto, and every other supported tool. Reload your harness afterward.
11
+ Reload your coding tool, then run `/impeccable init` in your agent (`$impeccable init` on Codex).
110
12
 
111
- To refresh an existing install, run:
13
+ Works with Claude Code, Cursor, Codex CLI, GitHub Copilot, Devin, Replit Agent, Gemini CLI, Grok Build, OpenCode, Google Antigravity, Kiro, Trae, Rovo Dev, Qoder, Mistral Vibe, Pi, Hermes Agent, DeepSeek Harness, and Veto. Full docs live at [impeccable.style/docs](https://impeccable.style/docs).
112
14
 
113
- ```bash
114
- npx impeccable update
115
- ```
15
+ | Without Impeccable | With Impeccable |
16
+ |---|---|
17
+ | ![Villa Castagneto built without Impeccable: cream background, a thin serif headline with an italic accent, two pill buttons, and flat vector illustrations in rounded cards](https://github.com/pbakaus/impeccable/raw/main/docs/images/readme-without.webp) | ![Villa Castagneto built with Impeccable: a full-bleed engraved night scene of the villa on its cliff above the sea, a condensed cream and vermilion headline, and a month strip along the bottom](https://github.com/pbakaus/impeccable/raw/main/docs/images/readme-with.webp) |
116
18
 
117
- Codex users should open `/hooks` after install or update and approve the project hook when prompted. Codex tracks trust by hook definition, so updates that change `.codex/hooks.json` can require approval again. Grok Build users need project folder trust (`/hooks-trust` or launch with `--trust`) before `.grok/hooks/` scripts run.
19
+ Same model (Fable 5.1), same brief: a fourteen-room family guesthouse on the Ligurian coast. Without Impeccable, it builds the tasteful default: cream page, thin serif, italic accent, pill buttons. With it, the page is built around one picture: the house at night, seen from the water.
118
20
 
119
- See [Allow the hook in your harness](https://impeccable.style/docs/hooks#allow-the-hook-in-your-harness) for harness-specific trust and verification steps.
21
+ For a full project, see the [Neo Mirai case study](https://impeccable.style/cases/neo-mirai): a conference site taken from mockup to shipped page.
120
22
 
121
- ### Option 2: Git Submodule
23
+ ## Why
122
24
 
123
- For teams that want to keep Impeccable vendored and updated through Git, add this repo as a submodule and link the compiled provider build into your harness folders:
25
+ Inter for everything. Purple-to-blue gradients. Cards nested in cards, gray text on colored backgrounds, a rounded-square icon tile above every heading. Ask an agent for a page with no other guidance and these show up again and again, across models and projects.
124
26
 
125
- ```bash
126
- git submodule add https://github.com/pbakaus/impeccable .impeccable
127
- npx impeccable link --source=.impeccable --providers=claude,cursor
128
- git add .gitmodules .impeccable .claude .cursor
129
- git commit -m "Add Impeccable skills"
130
- ```
131
-
132
- Use the providers your project needs, for example `claude`, `cursor`, `gemini`, `codex`, `github`, `grok`, `devin`, `hermes`, `opencode`, `pi`, `qoder`, `trae`, `trae-cn`, `rovo-dev`, `vibe`, or `veto`. The command links individual skill folders from `.impeccable/dist/universal/` and leaves existing real skill directories untouched unless you pass `--force`.
27
+ - **Words for what you want.** "Make it pop" leaves your agent to guess. `/impeccable bolder the pricing cards` loads a playbook written for that one move and points it at one target.
28
+ - **A reviewer.** `critique` scores the design against usability heuristics and ranks what to fix first. `audit` checks accessibility, performance, theming, and responsive behavior, with findings ranked P0 (blocking) to P3 (polish).
29
+ - **A slop detector.** 62 deterministic rules flag the tells above, plus quality problems like cramped padding and skipped headings. No LLM, no API key.
133
30
 
134
- To update later:
31
+ Impeccable is strongest on interfaces that already exist: point it at a page or a component and iterate. It builds new pages too; see [Build something new](https://impeccable.style/docs/new-work) for how to get the most out of that harder mode. To start, pick one component:
135
32
 
136
- ```bash
137
- git submodule update --remote .impeccable
138
- npx impeccable link --source=.impeccable --providers=claude,cursor
139
33
  ```
140
-
141
- ### Option 3: Plugin install
142
-
143
- **GitHub Copilot in VS Code:**
144
-
145
- Install [Impeccable from the Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=renaissance-geek.impeccable), or run:
146
-
147
- ```bash
148
- code --install-extension renaissance-geek.impeccable
34
+ /impeccable critique the pricing cards
149
35
  ```
150
36
 
151
- Requires VS Code 1.109.3+, Copilot Chat access, and a trusted local workspace. Open Chat in Agent mode and try `/impeccable polish`. This skill-only extension does not install automatic hooks; avoid a duplicate Impeccable skill in the same workspace/profile. See [VS Code distribution details](docs/VSCODE-EXTENSION.md).
37
+ ## How it works
152
38
 
153
- **Claude Code:**
154
- ```bash
155
- /plugin marketplace add pbakaus/impeccable
156
- ```
39
+ Run `/impeccable init` once per project. It reads your code, asks only what it can't infer (who the product is for, what it needs to do, the constraints), and writes `PRODUCT.md`. Every later command reads it. Run `/impeccable document` to capture your existing visual system in `DESIGN.md`, so changes stay on-brand. [More on context files](https://impeccable.style/docs/context).
157
40
 
158
- > Claude Code only. After adding the marketplace, open `/plugin` and install Impeccable from the list.
41
+ Then name a command and a target:
159
42
 
160
- **Grok Build:**
161
- ```bash
162
- grok plugin install pbakaus/impeccable#plugin --trust
163
43
  ```
164
-
165
- > Grok Build only. The `#plugin` suffix installs the slim plugin package (skills, agents, and hooks) instead of the full monorepo. Then run `/impeccable init` in a Grok session. Project-scoped installs via `npx impeccable install --providers=grok` also work and write `.grok/skills/` plus `.grok/hooks/impeccable.json`.
166
-
167
- ### Option 4: Download from Website
168
-
169
- Visit [impeccable.style](https://impeccable.style), download the ZIP for your tool, and extract to your project.
170
-
171
- ### Option 5: Copy from Repository
172
-
173
- **Cursor:**
174
- ```bash
175
- cp -r dist/cursor/.cursor your-project/
44
+ /impeccable critique the onboarding flow
45
+ /impeccable quieter the landing page
46
+ /impeccable polish settings
47
+ /impeccable harden checkout
176
48
  ```
177
49
 
178
- > **Note:** Cursor skills require setup:
179
- > 1. Switch to Nightly channel in Cursor Settings → Beta
180
- > 2. Enable Agent Skills in Cursor Settings → Rules
181
- >
182
- > [Learn more about Cursor skills](https://cursor.com/docs/context/skills)
50
+ Or just describe what you want: `/impeccable redo this hero section`. Narrow targets get better results; a single section reviewed closely beats a whole page at a glance. Pin a command you use often with `/impeccable pin audit` to get `/audit` as its own shortcut.
183
51
 
184
- **Claude Code:**
185
- ```bash
186
- # Project-specific
187
- cp -r dist/claude-code/.claude your-project/
52
+ ### 24 commands
188
53
 
189
- # Or global (applies to all projects)
190
- cp -r dist/claude-code/.claude/* ~/.claude/
191
- ```
54
+ | | Commands |
55
+ |---|---|
56
+ | **Steer** | `bolder` amplifies safe designs · `quieter` tones down loud ones · `distill` removes what the page doesn't need · `colorize` brings color to a gray interface · `typeset` fixes fonts, hierarchy, and sizing · `layout` fixes spacing and rhythm · `animate` adds transitions and interaction feedback · `delight` adds personality · `overdrive` goes for shaders, spring physics, and scroll-driven effects |
57
+ | **Review** | `critique` is a scored UX review · `audit` is a technical quality report |
58
+ | **Finish** | `polish` is the final pass before shipping · `harden` covers errors, i18n, overflow, and edge cases · `clarify` rewrites unclear copy · `adapt` handles screen sizes and devices · `optimize` fixes loading and rendering performance · `onboard` designs first-run flows and empty states |
59
+ | **Iterate live** | `live` lets you pick an element in the browser and cycle through variants · `generate` produces variants of a named element without manual picking |
60
+ | **Plan and set up** | `shape` plans UX before code · `init` writes `PRODUCT.md` · `document` writes `DESIGN.md` · `extract` pulls repeated patterns into your design system |
192
61
 
193
- **OpenCode:**
194
- ```bash
195
- cp -r dist/opencode/.opencode your-project/
196
- ```
62
+ The 24th, `craft`, is a deprecated alias for a plain build request. Type `/impeccable` alone to see the list in your agent. Each command has its own page: [impeccable.style/docs](https://impeccable.style/docs).
197
63
 
198
- **DeepSeek Harness:**
199
- ```bash
200
- # Project-specific
201
- cp -r dist/dsh/.dsh your-project/
64
+ On Codex, open `/skills` or type `$impeccable` instead of the slash command.
202
65
 
203
- # Or global (applies to all projects)
204
- mkdir -p "${DSH_HOME:-$HOME/.dsh}/skills"
205
- cp -r dist/dsh/.dsh/skills/* "${DSH_HOME:-$HOME/.dsh}/skills/"
206
- ```
66
+ ### Live mode
207
67
 
208
- The CLI honors `DSH_HOME` only when it resolves inside your home directory (or to home itself); otherwise it uses `~/.dsh`. An outside-home manual copy is not managed by `impeccable install/update`.
68
+ `/impeccable live` opens your running dev server with an overlay. Select an element, pick a direction, and Impeccable hot-swaps variants in place. Accept one and it is written back to your source. It works with Vite, Next, SvelteKit, Astro, Nuxt, and plain HTML. [Iterate in the browser](https://impeccable.style/tutorials/iterate-live).
209
69
 
210
- **Devin:**
211
- ```bash
212
- # Project-specific (Devin web, CLI, and Desktop all read .devin/skills/)
213
- cp -r dist/devin/.devin your-project/
70
+ Live mode edits a local checkout only; don't inject it into a deployed site or weaken a production CSP to make it work. Applying copy edits runs your `package.json`'s optional `impeccable:manual-edit-validate` script with your permissions, so review it before using live mode in an unfamiliar repo.
214
71
 
215
- # Or global (Devin CLI and Desktop; use %APPDATA%\devin\skills on Windows)
216
- mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/devin/skills"
217
- cp -r dist/devin/.devin/skills/* "${XDG_CONFIG_HOME:-$HOME/.config}/devin/skills/"
218
- ```
72
+ Apply sends staged copy edits to your chat agent while a live session is polling. If none has polled in the last minute, it runs the `codex` CLI from your PATH instead (or `claude` when codex is missing), with approvals, permission checks, and sandboxing off (`--dangerously-bypass-approvals-and-sandbox` or `--permission-mode bypassPermissions`) and your environment inherited. Its prompt carries the staged edits, the edited elements' HTML and nearby text, the page URL, and candidate source paths. Set `IMPECCABLE_LIVE_COPY_AGENT=chat` in the environment that starts live mode to keep Apply in your chat session, or `off` to disable Apply. The server reads it once at startup.
219
73
 
220
- **Hermes Agent:**
221
- ```bash
222
- # Global (applies to all projects; uses the active profile, or ~/.hermes by default)
223
- cp -r dist/hermes/.hermes/skills/* "${HERMES_HOME:-$HOME/.hermes}/skills/"
74
+ ## Three ways to run the detector
224
75
 
225
- # Or project-specific
226
- cp -r dist/hermes/.hermes your-project/
227
- ```
76
+ **In your agent.** The design hook scans every UI file your agent edits and hands the findings back before the agent calls the work done. This is where most slop gets caught: without the hook, the detector only runs when someone remembers to run it. It's available on Claude Code, Cursor, Codex, GitHub Copilot, Grok Build, and Hermes Agent, and the installer sets it up. Say yes. [Automatic design checks](https://impeccable.style/docs/hooks).
228
77
 
229
- > **Note:** Hermes gates project-local skills behind a per-repo trust decision
230
- > (they are procedure documents, so auto-loading them from any cloned repo is
231
- > treated as a prompt-injection vector). After a project-scoped install, run
232
- > `hermes skills trust` once from the project root. Global installs into the
233
- > active `$HERMES_HOME/skills/` (or `~/.hermes/skills/` when unset) load without
234
- > a trust step. `/impeccable <command>` then
235
- > routes through the skill's Commands table; the design hook does not install
236
- > on Hermes (no hook surface).
237
- >
238
- > [Learn more about Hermes skills](https://hermes-agent.nousresearch.com/docs/user-guide/features/skills)
239
-
240
- **Pi:**
241
- ```bash
242
- cp -r dist/pi/.pi your-project/
243
- ```
78
+ **In CI or your terminal.** The CLI needs no agent:
244
79
 
245
- **Gemini CLI:**
246
80
  ```bash
247
- cp -r dist/gemini/.gemini your-project/
81
+ npx impeccable detect src/ # scan a directory
82
+ npx impeccable detect https://example.com # scan a rendered page (uses your installed Chrome or Edge)
83
+ npx impeccable detect --json . # machine-readable output
84
+ npx impeccable detect --github src/ # GitHub Actions annotations
85
+ npx impeccable detect --list-rules # every rule with its id and description
248
86
  ```
249
87
 
250
- > **Note:** Gemini CLI skills require setup:
251
- > 1. Install preview version: `npm i -g @google/gemini-cli@preview`
252
- > 2. Run `/settings` and enable "Skills"
253
- > 3. Run `/skills list` to verify installation
254
- >
255
- > [Learn more about Gemini CLI skills](https://geminicli.com/docs/cli/skills/)
88
+ Source files like JSX and TSX get the pattern rules only. Rules that need a rendered page, such as low contrast and tiny text, run when you scan a URL, so point the CLI at your dev server too: `npx impeccable detect http://localhost:5173`.
256
89
 
257
- **Codex CLI:**
258
- ```bash
259
- # Project-local
260
- cp -r dist/agents/.agents your-project/
261
- mkdir -p your-project/.codex
262
- cp dist/codex/.codex/hooks.json your-project/.codex/hooks.json
263
-
264
- # Or install the skill user-wide. Copy .codex/hooks.json into each project
265
- # where you want the design hook to run.
266
- mkdir -p ~/.agents/skills
267
- cp -r dist/agents/.agents/skills/* ~/.agents/skills/
268
- ```
90
+ Exit code `2` means findings, `1` means a target couldn't be scanned. To allow your brand font everywhere, run `npx impeccable ignores add-value overused-font Inter --reason "Brand font"`. To turn a rule off for one file, add a comment: `<!-- impeccable-disable overused-font: exported brand doc -->`. [Run a detector scan](https://impeccable.style/docs/detector) · [Configuration and ignores](https://impeccable.style/docs/config).
269
91
 
270
- > The asset-producer subagent ships nested inside the skill's own `agents/` folder, which Codex auto-discovers. No separate `.codex/agents/` copy is needed. The hook is project-local because Codex discovers hooks from `.codex/hooks.json` next to trusted project config.
92
+ **In your browser.** The [Chrome extension](https://chromewebstore.google.com/detail/impeccable/bdkgmiklpdmaojlpflclinlofgjfpabf) overlays the same findings on any live page, yours or anyone else's. [Review with a visual overlay](https://impeccable.style/tutorials/critique-with-overlay).
271
93
 
272
- **GitHub Copilot:**
273
- ```bash
274
- cp -r dist/github/.github your-project/
275
- ```
94
+ ## Installation
276
95
 
277
- **Trae:**
278
96
  ```bash
279
- # Trae China (domestic version)
280
- cp -r dist/trae/.trae-cn/skills/* ~/.trae-cn/skills/
281
-
282
- # Trae International
283
- cp -r dist/trae/.trae/skills/* ~/.trae/skills/
97
+ npx impeccable install
284
98
  ```
285
99
 
286
- > **Note:** Trae has two versions with different config directories:
287
- > - **Trae China**: `~/.trae-cn/skills/`
288
- > - **Trae International**: `~/.trae/skills/`
289
- >
290
- > After copying, restart Trae IDE to activate the skills.
100
+ The installer detects your coding tools, asks whether to install for this project or globally, and offers the design hook where your tool supports one. Accept the hook. Reload your tool afterward. `npx impeccable update` refreshes an existing install. For scripts, pass `--providers=claude,codex,cursor` and `--scope=project|global`.
291
101
 
292
- **Rovo Dev:**
293
- ```bash
294
- # Project-specific
295
- cp -r dist/rovo-dev/.rovodev your-project/
102
+ Three tools need one more step before the hook runs. In Codex, open `/hooks` and approve the project hook (again after an update that changes it). In Grok Build, run `/hooks-trust` or launch with `--trust`. In Hermes Agent, the hook is a plugin: run `hermes plugins enable impeccable-design-hook` once. [Allow the hook in your harness](https://impeccable.style/docs/hooks#allow-the-hook-in-your-harness).
296
103
 
297
- # Or global (applies to all projects)
298
- cp -r dist/rovo-dev/.rovodev/skills/* ~/.rovodev/skills/
299
- ```
104
+ Node is only needed for `npx`. The skill itself runs a self-contained engine binary that ships next to it or downloads once into `~/.impeccable/bin/`.
300
105
 
301
- **Qoder:**
302
- ```bash
303
- # Project-specific
304
- cp -r dist/qoder/.qoder your-project/
106
+ <details>
107
+ <summary><b>Claude Code, Copilot, and Grok plugins</b></summary>
305
108
 
306
- # Or global (applies to all projects)
307
- cp -r dist/qoder/.qoder/skills/* ~/.qoder/skills/
308
- ```
109
+ **Claude Code:** `/plugin marketplace add pbakaus/impeccable`, then open `/plugin` and install Impeccable.
309
110
 
310
- **Mistral Vibe:**
311
- ```bash
312
- # Project-specific
313
- cp -r dist/vibe/.vibe your-project/
111
+ **GitHub Copilot in VS Code:** install [Impeccable from the Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=renaissance-geek.impeccable) or run `code --install-extension renaissance-geek.impeccable`. Needs VS Code 1.109.3+, Copilot Chat, and a trusted workspace. It installs the skill without the hook. [Details](docs/VSCODE-EXTENSION.md).
314
112
 
315
- # Or global (applies to all projects)
316
- cp -r dist/vibe/.vibe/skills/* ~/.vibe/skills/
317
- ```
318
-
319
- **Grok Build:**
320
- ```bash
321
- # Project-specific
322
- cp -r dist/grok/.grok your-project/
113
+ **Grok Build:** `grok plugin install pbakaus/impeccable#plugin --trust` installs the skill, agents, and hook.
323
114
 
324
- # Or global (applies to all projects)
325
- cp -r dist/grok/.grok/skills/* ~/.grok/skills/
326
- ```
115
+ </details>
327
116
 
328
- > Prefer `npx impeccable install --providers=grok` or `grok plugin install pbakaus/impeccable#plugin --trust` so the design hook installs too. Project hooks need `/hooks-trust` (or `--trust`) once per folder.
117
+ <details>
118
+ <summary><b>Git submodule (a pinned version for the whole team)</b></summary>
329
119
 
330
- **Google Antigravity:**
331
120
  ```bash
332
- # Project-specific
333
- cp -r dist/antigravity/.agent your-project/
334
-
335
- # Or global (applies to all projects)
336
- mkdir -p ~/.gemini/config/skills
337
- cp -r dist/antigravity/.agent/skills/* ~/.gemini/config/skills/
121
+ git submodule add https://github.com/pbakaus/impeccable vendor/impeccable
122
+ npx impeccable link --source=vendor/impeccable --providers=claude,cursor
338
123
  ```
339
124
 
340
- ## Usage
125
+ Commit `.gitmodules`, the submodule, and the generated links. Teammates run `git submodule update --init --recursive`. To upgrade, run `git submodule update --remote vendor/impeccable`, rerun the `link` command, and commit. Linking installs skills, not hooks. Existing skill folders stay put unless you pass `--force`.
341
126
 
342
- Once installed, every command runs through the single `/impeccable` skill:
127
+ </details>
343
128
 
344
- ```
345
- /impeccable audit # Find issues
346
- /impeccable polish # Final cleanup
347
- /impeccable distill # Remove complexity
348
- /impeccable critique # Full design review
349
- ```
129
+ <details>
130
+ <summary><b>Manual copy, no Node required</b></summary>
350
131
 
351
- Type `/impeccable` alone to see the full command list.
132
+ Download the ZIP for your tool from [impeccable.style](https://impeccable.style), or clone this repo: each tool's build is committed at the repo root. Copy `skills/impeccable` from the folder below into the same place in your project, or into the global folder.
352
133
 
353
- Most commands accept an optional argument to focus on a specific area:
134
+ | Tool | Repo folder | Global skills folder |
135
+ |---|---|---|
136
+ | Claude Code | `.claude/` | `~/.claude/skills/` |
137
+ | Cursor | `.cursor/` | |
138
+ | Codex CLI, Replit Agent | `.agents/` | `~/.agents/skills/` |
139
+ | Devin | `.devin/` | `${XDG_CONFIG_HOME:-$HOME/.config}/devin/skills/` |
140
+ | GitHub Copilot | `.github/` | |
141
+ | Gemini CLI | `.gemini/` | |
142
+ | Google Antigravity | `.agent/` | `~/.gemini/config/skills/` |
143
+ | OpenCode | `.opencode/` | |
144
+ | Grok Build | `.grok/` | `~/.grok/skills/` |
145
+ | Hermes Agent | `.hermes/` | `${HERMES_HOME:-$HOME/.hermes}/skills/` |
146
+ | DeepSeek Harness | `.dsh/` | `${DSH_HOME:-$HOME/.dsh}/skills/` |
147
+ | Pi | `.pi/` | |
148
+ | Qoder | `.qoder/` | `~/.qoder/skills/` |
149
+ | Rovo Dev | `.rovodev/` | `~/.rovodev/skills/` |
150
+ | Mistral Vibe | `.vibe/` | `~/.vibe/skills/` |
151
+ | Trae | `.trae/` | `~/.trae/skills/` |
152
+ | Trae China | `.trae-cn/` | `~/.trae-cn/skills/` |
354
153
 
355
- ```
356
- /impeccable audit the header
357
- /impeccable polish the checkout form
358
- ```
154
+ For example: `mkdir -p your-project/.claude/skills && cp -r .claude/skills/impeccable your-project/.claude/skills/`.
155
+
156
+ Notes:
157
+ - A manual copy skips the design hook and subagents. Run `npx impeccable install` to get them; it writes each tool's hook pointing at the right skill path.
158
+ - OpenCode also needs `.opencode/commands/impeccable.md` copied into your project's `.opencode/commands/` to provide `/impeccable`.
159
+ - Hermes asks you to trust project-local skills once: run `hermes skills trust` from the project root. Global installs need no trust step.
160
+ - Cursor and Gemini CLI may need Agent Skills enabled in settings. See the [Cursor](https://cursor.com/docs/context/skills) and [Gemini CLI](https://geminicli.com/docs/cli/skills/) skills docs.
161
+ - Restart Trae after copying.
162
+ - `impeccable install` and `update` manage a DeepSeek Harness global copy only when `DSH_HOME` is inside your home directory.
359
163
 
360
- If you reach for one command often, pin it with `/impeccable pin audit` to get `/audit` as a standalone shortcut.
164
+ </details>
361
165
 
362
- **Note:** Codex uses skills here, not `/prompts:` commands. Open `/skills` or type `$impeccable`. Repo-local installs live in `.agents/skills/`; user-wide installs live in `~/.agents/skills/`. GitHub Copilot uses `.github/skills/`. Restart the tool if a newly installed skill does not appear.
166
+ ## Project files and git
363
167
 
364
- ## Keeping `.impeccable` out of git
168
+ Impeccable writes its working files under `.impeccable/`. A few are shared project artifacts and belong in the repo: `config.json`, `live/config.json`, `design.json`, `surfaces/*.md`, and `critique/*.md`. Keep `PRODUCT.md` and `DESIGN.md` in the repo too. The rest is screenshots, caches, and runtime state.
365
169
 
366
- As you run commands, Impeccable writes working files under `.impeccable/`: critique and polish screenshots, live-mode session and preview state, runtime caches, and per-developer config. Most of it is ephemeral and should not be committed, while a few files are shared project artifacts that belong in the repo. Add this block to your project's `.gitignore`:
170
+ <details>
171
+ <summary><b>Copy the <code>.gitignore</code> entries</b></summary>
367
172
 
368
173
  ```gitignore
369
174
  # impeccable-ignore-start
@@ -391,152 +196,29 @@ As you run commands, Impeccable writes working files under `.impeccable/`: criti
391
196
  # impeccable-ignore-end
392
197
  ```
393
198
 
394
- The block is wrapped in `# impeccable-ignore-start` / `# impeccable-ignore-end` markers so you can recognize and refresh it later. The `**/` prefix makes each pattern match whether the active project's `.impeccable/` directory is at the repository root or under a nested workspace path like `apps/web/`.
395
-
396
- **Keep these tracked** (they are shared project artifacts, do not add them to `.gitignore`):
397
-
398
- - `.impeccable/config.json` (unified shared config)
399
- - `.impeccable/live/config.json` (live-mode framework wiring)
400
- - `.impeccable/design.json` (shared design spec)
401
- - `.impeccable/surfaces/*.md` (route- or artifact-specific strategy and direction contracts)
402
- - `.impeccable/critique/*.md` (review reports)
403
-
404
- Impeccable also keeps its own `.gitignore` in the folders that hold decision-round state: `.impeccable/questions/` and `.impeccable/mocks/worlds/` ignore everything in them, and `.impeccable/build/` ignores `state.json`. That keeps new runtime files out of commits even in a project without the block above. A `.gitignore` cannot untrack a file git already tracks, though: when one of these files was committed earlier, the next roll prints a one-time notice with the fix, `git rm -r --cached .impeccable/questions` (plus any other folder it names), and writes its roll record to an untracked file until then.
405
-
406
- If an ephemeral file (a screenshot, `config.local.json`) was committed before you added the block, `.gitignore` will not untrack it automatically. Run `git rm --cached <path>` to stop tracking it without deleting your local copy.
407
-
408
- ## Telemetry
409
-
410
- When a new design starts, the skill asks the roll API at impeccable.style to deal a hand of visual worlds from the catalog. That request is the feature, so it always happens. Unless you opt out, it also feeds an anonymous record of which hand was shown and which card won, which is how the catalog learns what works.
411
-
412
- What is sent, on the roll request and on the choice that follows it:
413
-
414
- - the roll key (a random value per decision round), scope (direction or surface), visitor mode, and re-roll round
415
- - the catalog revision the hand came from, and on the choice the kind of card that won (assigned, pick, challenger, canon, or a re-roll), its catalog id when a catalog world won, and its position on the page
416
- - the client version, whether the choice came from the decision page or the agent, and a random id for that choice so a report sent twice is counted once
417
-
418
- Never sent: your project's name, files, code, PRODUCT.md, or the names of the directions your agent wrote. Committed files such as surface briefs record only a seed reference, a hash of the roll key under a random salt kept in `~/.impeccable/seed-salt`, never the key itself. If no salt can be kept on a machine, the brief records no seed at all rather than a weaker hash. Roll keys are 128 random bits. If you pass your own short key with `--from`, its reference is easy to guess, so do not rely on it to keep that key private.
419
-
420
- To turn it off, run `npx impeccable telemetry off` (stored in `~/.impeccable/config.json`), or set `DO_NOT_TRACK=1` or `IMPECCABLE_NO_TELEMETRY=1`. A project can opt everyone out with `"telemetry": false` in `.impeccable/config.json`. `npx impeccable telemetry status` shows the current state. Opted out, the roll still works and the API is told not to record it. Details: https://impeccable.style/privacy
421
-
422
- ## Design hook
423
-
424
- On Claude Code, GitHub Copilot, Codex, Cursor, and Grok Build, `npx impeccable install` and `npx impeccable update` install a provider-native hook manifest along with the skill payload. The hook runs the Impeccable design detector on direct UI file edits and surfaces findings back into the agent flow. Claude Code, GitHub Copilot, Codex, and Cursor surface findings after the edit (and run a deeper pass on Stop where supported). Grok Build scans after the edit to warm Stop, then surfaces on Stop; PostToolUse stdout never reaches the model.
425
-
426
- Installed hook surfaces:
427
-
428
- - Claude Code: `.claude/settings.local.json` (gitignored, machine-local) runs `${CLAUDE_PROJECT_DIR}/.claude/skills/impeccable/scripts/impeccable hook`. A hook moved into the shared `settings.json` is honored in place.
429
- - GitHub Copilot: `.github/hooks/impeccable.json` (committed, shared by the Copilot CLI and the cloud agent) runs `.github/skills/impeccable/scripts/impeccable hook`. The Copilot CLI activates it once the file is on the repository's default branch and the folder is trusted.
430
- - Cursor: `.cursor/hooks.json` runs `.cursor/skills/impeccable/scripts/impeccable hook` on `postToolUse` for file writes. Projects set up with the older `preToolUse` write gate keep working; `npx impeccable update` moves them to the post-edit hook.
431
- - Codex: `.codex/hooks.json` runs `.agents/skills/impeccable/scripts/impeccable hook`, with a `commandWindows` sibling that calls `impeccable.cmd` for cmd.exe.
432
- - Grok Build: `.grok/hooks/impeccable.json` runs `.grok/skills/impeccable/scripts/impeccable hook`. Requires `/hooks-trust` or `--trust`. Findings reach the model on Stop, not after each edit.
433
-
434
- Every command goes through the launcher shipped in the skill's `scripts/` directory (`impeccable`, or `impeccable.cmd` on Windows), guarded so a missing launcher is a silent no-op. The launcher runs the engine binary that ships next to it, or downloads the pinned version once into `~/.impeccable/bin/`. No Node or other runtime is required for the hook or the skill.
435
-
436
- In Claude Code, installed command hooks run independently of model-tool approval. The first edit or Stop event can therefore download and cache the engine even if the session denies the model's launcher command. Review installed hooks before unattended runs; to disable all Claude Code hooks for a run, pass `--settings '{"disableAllHooks": true}'`. See [Claude Code's hook security guidance](https://code.claude.com/docs/en/hooks#security-considerations).
437
-
438
- The installer preserves unrelated hook entries and settings. If a hook manifest is malformed, install/update aborts by default; rerun with `--force` to back up the malformed file as `.bak` and replace it.
439
-
440
- On an interactive `install`/`update`, Impeccable explains the hook and offers to install it (default yes). Your choice is remembered per-developer in the gitignored `.impeccable/config.local.json`, so you are not asked again; `--no-hooks` skips it for that run without recording anything. Hook lifecycle settings live under the `hook` key of `.impeccable/config.json`; detector ignores live under `detector`, shared by `/impeccable hooks` and `npx impeccable detect`.
441
-
442
- For debugging, set `hook.auditLog` in `.impeccable/config.json` to a path (or the legacy `IMPECCABLE_HOOK_LOG` env var) to write one NDJSON line per hook invocation. Leave it unset for normal use.
443
-
444
- ## Build path: comp-first or code-first
445
-
446
- When a new surface gets designed, Impeccable either generates a full-fidelity comp first and builds to match it, or builds straight in code with the ambition written into a development-only direction contract in the surface brief and checked at the finish. Comp-first composes bolder and takes longer; code-first is leaner and faster. The choice covers landing pages and showcase surfaces. App screens and documents are built code-first either way, because they come out better built than pictured. `/impeccable init` asks once and records the answer as `buildPath` in `.impeccable/config.json`:
447
-
448
- ```json
449
- { "buildPath": "comp" }
450
- ```
451
-
452
- The values are `comp` and `code`, and nothing else is read. Set it in the gitignored `.impeccable/config.local.json` to override the team's committed value on one machine, which is what you want when your harness has no image generation. In a monorepo, commit it once at the repo root and any workspace that wants something else sets its own. The choice appears at all only where image generation is available, since without it there is nothing to comp.
453
-
454
- You do not have to re-run `init` to set it on a project that predates the setting, and you do not have to edit the file by hand either. Whatever is recorded is a default rather than a lock: every decision page carries a footer toggle, and flipping it binds that session only. Flip it on a project that has recorded nothing and Impeccable asks once, after the round, whether to keep it, then writes your answer. That is the whole migration path for an existing project: use the toggle when the default is wrong, and answer the question that follows.
455
-
456
- Codex requires one platform step that Impeccable cannot safely skip: open `/hooks` after install or update and approve the project hook. There is no Codex marketplace/plugin install flow for this hook.
457
-
458
- Full hook docs: [impeccable.style/docs/hooks](https://impeccable.style/docs/hooks).
459
-
460
- The Stop pass suppresses confirmed pre-existing findings when a verified before-edit baseline is available (currently Claude Edit/Write results for text scans). Other findings are marked new or attribution unknown; unknown is not evidence that your session caused the problem. Explicit `detect` scans remain unchanged.
461
-
462
- Manual copy commands are fallback/debug instructions. The normal path is:
463
-
464
- ```bash
465
- npx impeccable install
466
- npx impeccable update
467
- ```
468
-
469
- ## Live mode and production sites
470
-
471
- Live mode edits a local checkout through a development server or local static HTML. Injecting its localhost HTTP helper into a deployed production site, including an HTTPS site, is not supported. Do not disable browser security or weaken production CSP to make it work.
472
-
473
- Use live mode only in projects you trust to run locally. Applying copy edits automatically runs `package.json`'s optional `scripts["impeccable:manual-edit-validate"]` command in a shell, with your user permissions; review that script before using live mode in an unfamiliar checkout.
474
-
475
- For production inspection, use `npx impeccable detect https://example.com` or the browser extension. These inspect the rendered page; they do not provide live variant editing or write changes back to your source.
476
-
477
- ## CLI
478
-
479
- Impeccable includes a standalone CLI for detecting anti-patterns without an AI harness. `npx impeccable` is a small shim that runs the same engine binary the skill uses (installed as a platform-specific optional dependency, or fetched once into `~/.impeccable/bin/`); Node is needed only for `npx` itself, and you can also download the binary directly and put it on your PATH.
480
-
481
- ```bash
482
- npx impeccable detect src/ # scan a directory
483
- npx impeccable detect index.html # scan an HTML file
484
- npx impeccable detect https://example.com # scan a URL (uses an installed Chrome, Chromium, or Edge)
485
- npx impeccable detect --json . # CI-friendly JSON output
486
- npx impeccable detect --github src/ # GitHub Actions annotations on stdout
487
- npx impeccable detect --list-rules # catalog of detector rule ids, names, and descriptions
488
- npx impeccable detect --no-config src/ # raw scan, ignoring project config/context
489
- npx impeccable ignores list # show detector ignores
490
- npx impeccable ignores add-file "src/legacy/**"
491
- npx impeccable ignores add-value overused-font Inter --reason "Brand font"
492
- ```
493
-
494
- The detector catches 62 deterministic 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).
495
-
496
- Human-readable findings are diagnostics written to stderr, so redirect them with `2> findings.txt`. Use `--json` for machine-readable results on stdout, or `--github` for GitHub Actions annotations (one workflow command per finding). GitHub displays at most 10 annotations of each type per step and 50 per job, and the rest stay in the log; findings from the HTML engine may carry no line number, so they annotate the file. `--list-rules` prints the detector catalog to stdout and does not scan. Exit `0` means the scan completed without primary findings, exit `2` means it completed with primary findings, and exit `1` means at least one requested target could not be scanned; operational failure takes precedence for a partial multi-target scan. URL scans inspect the rendered DOM, computed layout, and accessible linked stylesheets; browser security still prevents reading cross-origin CSS without CORS. A clean detector run is evidence, not proof of visual or accessibility quality: it does not replace inspecting the rendered experience across relevant viewports.
497
-
498
- By default, `detect` respects the same `.impeccable/config.json` and `.impeccable/config.local.json` detector config as the design hook: `detector.ignoreRules`, `detector.ignoreFiles`, `detector.ignoreValues`, and `detector.designSystem.enabled`. Hook lifecycle settings such as `hook.enabled` only affect automatic hook execution.
499
-
500
- For a waiver that should travel with one file instead of the repo config, add an inline comment in the file: `<!-- impeccable-disable overused-font: exported brand doc -->`. The marker works in any comment syntax, scopes to the whole file (or one line with `impeccable-disable-line` / `impeccable-disable-next-line`), and is bypassed by `--no-inline-ignores` or `--no-config`.
199
+ </details>
501
200
 
502
- Full detector docs: [impeccable.style/docs/detector](https://impeccable.style/docs/detector).
201
+ The folders that hold decision-round state (`.impeccable/questions/`, `.impeccable/mocks/worlds/`) also ignore themselves. A `.gitignore` can't untrack a file git already tracks; if you committed one earlier, run `git rm --cached <path>`.
503
202
 
504
- ## Supported Tools
203
+ ## Good to know
505
204
 
506
- - [Cursor](https://cursor.com)
507
- - [Claude Code](https://claude.ai/code)
508
- - [GitHub Copilot](https://github.com/features/copilot)
509
- - [Devin](https://devin.ai)
510
- - [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)
511
- - [Gemini CLI](https://github.com/google-gemini/gemini-cli)
512
- - [Codex CLI](https://github.com/openai/codex)
513
- - [Grok Build](https://x.ai/cli)
514
- - [Hermes Agent](https://hermes-agent.nousresearch.com)
515
- - [OpenCode](https://opencode.ai)
516
- - [Pi](https://pi.dev)
517
- - [Kiro](https://kiro.dev)
518
- - [Trae](https://trae.ai)
519
- - [Rovo Dev](https://www.atlassian.com/software/rovo)
520
- - [Qoder](https://qoder.com)
521
- - [Mistral Vibe](https://docs.mistral.ai/vibe/code/overview)
522
- - [Veto](https://github.com/oleg-koval/veto)
523
- - [Google Antigravity](https://antigravity.google)
205
+ **Build path.** For new landing pages and showcase surfaces, Impeccable can generate a full-fidelity comp first and build to match it (bolder, slower), or build straight in code (leaner, faster). App screens and documents are always built in code. `init` asks once and saves the answer as `buildPath` in `.impeccable/config.json`; the decision page lets you override it for one session. The choice only appears when your harness can generate images. [Image generation](https://impeccable.style/docs/image-generation) · [Configuration](https://impeccable.style/docs/config).
524
206
 
525
- ## Community & Ecosystem
207
+ **Hooks run outside model approval.** In Claude Code, installed command hooks run even when you deny the model's own commands, so the first edit can download the engine. Review installed hooks before unattended runs, or pass `--settings '{"disableAllHooks": true}'` to turn them off for a run. The installer leaves hook entries it didn't add alone.
526
208
 
527
- Join the community and ecosystem conversations:
209
+ **Something broken?** `/impeccable doctor` finds stale context files, unused settings, and broken hooks. [Fix setup problems](https://impeccable.style/docs/doctor).
528
210
 
529
- - GitHub Discussions: file bugs, request features, and help newcomers.
530
- - [Impeccable on npm](https://www.npmjs.com/package/impeccable): grab the CLI, follow releases, and star the package.
531
- - Follow @pbakaus on Twitter for release notes, sample lint reports, and video highlights of new rules.
211
+ **Telemetry.** When a new design starts, the skill fetches a set of visual directions from the impeccable.style catalog. Turning telemetry off doesn't stop that request; it stops the anonymous record of which directions were shown and which one you picked, which is how the catalog learns what works. Your project name, files, code, and `PRODUCT.md` are never sent. Disable telemetry with `npx impeccable telemetry off`, `DO_NOT_TRACK=1`, or `"telemetry": false` in `.impeccable/config.json` for the whole project. The full list of what is sent is on the [privacy page](https://impeccable.style/privacy).
532
212
 
533
- ## Contributing
213
+ ## Community
534
214
 
535
- See [DEVELOP.md](docs/DEVELOP.md) for contributor guidelines and build instructions.
215
+ - [Issues](https://github.com/pbakaus/impeccable/issues) for bugs, questions, and ideas. Outside contributions start with an issue; see [DEVELOP.md](docs/DEVELOP.md).
216
+ - [Changelog](https://impeccable.style/changelog) for what shipped.
217
+ - Follow [@pbakaus](https://x.com/pbakaus) for release notes and new rules.
536
218
 
537
219
  ## License
538
220
 
539
- Apache 2.0. See [LICENSE](LICENSE).
221
+ Apache 2.0. See [LICENSE](LICENSE). Impeccable started from Anthropic's [frontend-design](https://github.com/anthropics/skills/tree/main/skills/frontend-design) skill.
540
222
 
541
223
  ---
542
224
 
package/cli/bin/cli.js CHANGED
@@ -4,7 +4,9 @@
4
4
  // the version-pinned user cache (~/.impeccable/bin/<version>/), then a
5
5
  // download into that cache from the public release channel. The cache and the
6
6
  // download are verified against skill/scripts/engine-checksums.txt (shipped in
7
- // the package); a <binary>.verified stamp records that a cached binary passed.
7
+ // the package); a <binary>.verified stamp holding the manifest digest and the
8
+ // binary's size records that a cached binary passed, until either changes or
9
+ // the binary is newer than the stamp.
8
10
  import { spawnSync } from 'node:child_process';
9
11
  import { createHash } from 'node:crypto';
10
12
  import fs from 'node:fs';
@@ -31,12 +33,21 @@ const MANIFEST = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', '
31
33
  const STAMP = `${CACHED}.verified`;
32
34
 
33
35
  function exists(p) { try { return !!p && fs.statSync(p).isFile(); } catch { return false; } }
36
+ // A stamp counts only while it holds an accepted digest and the binary's size,
37
+ // and the binary has not changed since it was written.
38
+ function stampValid(accepted) {
39
+ try {
40
+ const [digest, size] = fs.readFileSync(STAMP, 'utf8').trim().split(/\s+/);
41
+ const bin = fs.statSync(CACHED);
42
+ return accepted.includes(digest) && size === String(bin.size) && bin.mtimeMs <= fs.statSync(STAMP).mtimeMs;
43
+ } catch { return false; }
44
+ }
34
45
  // The digest MANIFEST records for this version and asset, or '' when none.
35
- function expectedDigest() {
46
+ function expectedDigest(wanted = ASSET) {
36
47
  try {
37
48
  for (const line of fs.readFileSync(MANIFEST, 'utf8').split(/\r?\n/)) {
38
49
  const [version, asset, sum] = line.trim().split(/\s+/);
39
- if (version === VERSION && asset === ASSET) return (sum || '').toLowerCase();
50
+ if (version === VERSION && asset === wanted) return (sum || '').toLowerCase();
40
51
  }
41
52
  } catch { /* no manifest: nothing verifies */ }
42
53
  return '';
@@ -68,7 +79,7 @@ async function download() {
68
79
  try { fs.rmSync(tmp, { force: true }); } catch { /* best effort */ }
69
80
  throw err;
70
81
  }
71
- try { fs.writeFileSync(STAMP, `${expected}\n`); } catch { /* next run hashes again */ }
82
+ try { fs.writeFileSync(STAMP, `${expected} ${buf.length}\n`); } catch { /* next run hashes again */ }
72
83
  return CACHED;
73
84
  }
74
85
  async function locate() {
@@ -77,11 +88,13 @@ async function locate() {
77
88
  const fromPkg = fromPackage();
78
89
  if (exists(fromPkg)) return fromPkg;
79
90
  if (exists(CACHED)) {
80
- if (exists(STAMP)) return CACHED;
91
+ // Windows on ARM runs x64 binaries, and the launchers fall back to that asset.
92
+ const accepted = [expectedDigest(), TARGET === 'windows-arm64' && expectedDigest('impeccable-windows-x64.exe')].filter(Boolean);
93
+ if (stampValid(accepted)) return CACHED;
81
94
  let digest = '';
82
95
  try { digest = createHash('sha256').update(fs.readFileSync(CACHED)).digest('hex'); } catch { /* unreadable: unverified */ }
83
- if (digest && digest === expectedDigest()) {
84
- try { fs.writeFileSync(STAMP, `${digest}\n`); } catch { /* read-only cache: verified this run */ }
96
+ if (digest && accepted.includes(digest)) {
97
+ try { fs.writeFileSync(STAMP, `${digest} ${fs.statSync(CACHED).size}\n`); } catch { /* read-only cache: verified this run */ }
85
98
  return CACHED;
86
99
  }
87
100
  process.stderr.write(`impeccable: cannot verify the cached engine ${CACHED} against ${MANIFEST}; downloading engine ${VERSION} again\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impeccable",
3
- "version": "4.8.0",
3
+ "version": "4.8.2",
4
4
  "author": "Paul Bakaus",
5
5
  "description": "Design skills, commands, and anti-pattern detection for AI coding agents",
6
6
  "keywords": [
@@ -84,11 +84,11 @@
84
84
  "build:component-review": "bun scripts/build-component-review.mjs"
85
85
  },
86
86
  "optionalDependencies": {
87
- "@impeccable/cli-darwin-arm64": "0.1.18",
88
- "@impeccable/cli-darwin-x64": "0.1.18",
89
- "@impeccable/cli-linux-x64": "0.1.18",
90
- "@impeccable/cli-linux-arm64": "0.1.18",
91
- "@impeccable/cli-windows-x64": "0.1.18"
87
+ "@impeccable/cli-darwin-arm64": "0.1.21",
88
+ "@impeccable/cli-darwin-x64": "0.1.21",
89
+ "@impeccable/cli-linux-x64": "0.1.21",
90
+ "@impeccable/cli-linux-arm64": "0.1.21",
91
+ "@impeccable/cli-windows-x64": "0.1.21"
92
92
  },
93
93
  "devDependencies": {
94
94
  "@ai-sdk/anthropic": "^4.0.7",
@@ -2,8 +2,8 @@
2
2
  # The launchers, the npm shim, `impeccable install` and scripts/fetch-engine.mjs verify
3
3
  # every engine download against this file. Written by
4
4
  # `node scripts/check-engine-release.mjs --record` after each engine release.
5
- 0.1.18 impeccable-darwin-arm64 543ee2f72036ad185dc9991ac3ba86b74d91f988f3d497776a088b8b65c8a9e1
6
- 0.1.18 impeccable-darwin-x64 1f1eee78c142f7e40e16f481aeeeb1fad1d8515d8a1ef033d7c6d133e52232b3
7
- 0.1.18 impeccable-linux-x64 736ed785e74ae2344d3036127f614ddde5ab520a527d8bc82a891612ef71f648
8
- 0.1.18 impeccable-linux-arm64 317cb18d64b0f7715681dd6e574ad64b2adb5a6caf8e7a1b3b57965f805404be
9
- 0.1.18 impeccable-windows-x64.exe 8f61e96b0c97001546a824d79b44f46b423b560f3eb1a0cc44a8695a1b395d9f
5
+ 0.1.21 impeccable-darwin-arm64 086fd22e54c445a0e792f66d2f168e35ec93f7c59054e1fde539d0d95b01ce41
6
+ 0.1.21 impeccable-darwin-x64 bbcd4307b4dd7e0c8a3a264b880b5d73ae1971cc1d219677b6f7e044b9f05eb7
7
+ 0.1.21 impeccable-linux-x64 579a0b6ff639ed28812ae632c556b6524a5b7d13fff4227cd3095a65554415b6
8
+ 0.1.21 impeccable-linux-arm64 e2cda6ac3eefb1cdd51d147f6e897a19c773fe7bbfbdbd1361eef744d4137080
9
+ 0.1.21 impeccable-windows-x64.exe 4cb1d921315e51ace39af5abbfd2e1be3c8624fcfc5074539f43ba894777fece