impeccable README

项目的 README,来自 github.com/pbakaus/impeccable。合并为一个 markdown 文件:README.md。

Impeccable

The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, and catch AI slop before it ships.

From your project root:

npx impeccable install

Reload your coding tool, then run /impeccable init in your agent ($impeccable init on Codex).

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, Veto, and Muse. Full docs live at impeccable.style/docs.

Without Impeccable With Impeccable
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 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

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.

For a full project, see the Neo Mirai case study: a conference site taken from mockup to shipped page.

Why

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.

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 for how to get the most out of that harder mode. To start, pick one component:

/impeccable critique the pricing cards

How it works

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.

Then name a command and a target:

/impeccable critique the onboarding flow
/impeccable quieter the landing page
/impeccable polish settings
/impeccable harden checkout

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.

24 commands

Commands
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
Review critique is a scored UX review · audit is a technical quality report
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
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
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

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.

On Codex, open /skills or type $impeccable instead of the slash command.

Live mode

/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.

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.

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.

Three ways to run the detector

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.

In CI or your terminal. The CLI needs no agent:

npx impeccable detect src/                   # scan a directory
npx impeccable detect https://example.com    # scan a rendered page (uses your installed Chrome or Edge)
npx impeccable detect --json .               # machine-readable output
npx impeccable detect --github src/          # GitHub Actions annotations
npx impeccable detect --sarif src/           # SARIF 2.1.0 for code scanning
npx impeccable detect --list-rules           # every rule with its id and description
npx impeccable detect --report-unused-ignores src/  # inline ignores that waive nothing

GitHub code scanning keeps these alerts on the pull request, lets reviewers dismiss them, and fails only on findings that are new in that PR. --github annotates a single Actions run; --sarif is the log you upload:

permissions:
  contents: read
  security-events: write
steps:
  - uses: actions/checkout@v4
  - run: npx impeccable detect --sarif src/ > impeccable.sarif || test $? -eq 2
  - uses: github/codeql-action/upload-sarif@v3
    with:
      sarif_file: impeccable.sarif
      category: impeccable

Exit code 2 (findings) still uploads the log; exit code 1 (a target couldn't be scanned) fails the step, and the log it wrote says executionSuccessful: false so it is never read as a clean scan. category keeps this upload beside CodeQL instead of replacing it. Run it from the repository root: paths are written relative to GITHUB_WORKSPACE, and a file outside it becomes a file:// URI. A clean scan still prints a log with an empty results array, which is what closes alerts that were fixed. HTML findings without a line are anchored to the file. The upload action fills partialFingerprints.primaryLocationLineHash; detect leaves it unset.

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. An HTML file scan reads the pixels of a local background image that is the ground behind text, so white copy on a near-white photo fails a CI gate without a browser. An image that only decorates its box is left alone, and a remote image is never fetched.

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 -->. When that comment no longer matches a finding it will swallow the next one; npx impeccable detect --report-unused-ignores src/ names each stale waiver so CI fails on it instead. Run a detector scan · Configuration and ignores.

In your browser. The Chrome extension overlays the same findings on any live page, yours or anyone else's. Review with a visual overlay.

Installation

npx impeccable install

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.

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.

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/.

Claude Code, Copilot, and Grok plugins

Claude Code: /plugin marketplace add pbakaus/impeccable, then open /plugin and install Impeccable.

GitHub Copilot in VS Code: install Impeccable from the Visual Studio Marketplace 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.

Grok Build: grok plugin install pbakaus/impeccable#plugin --trust installs the skill, agents, and hook.

Git submodule (a pinned version for the whole team)
git submodule add https://github.com/pbakaus/impeccable vendor/impeccable
npx impeccable link --source=vendor/impeccable --providers=claude,cursor

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.

Manual copy, no Node required

Download the ZIP for your tool from 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.

Tool Repo folder Global skills folder
Claude Code .claude/ ~/.claude/skills/
Cursor .cursor/
Codex CLI, Replit Agent .agents/ ~/.agents/skills/
Devin .devin/ ${XDG_CONFIG_HOME:-$HOME/.config}/devin/skills/
GitHub Copilot .github/
Gemini CLI .gemini/
Google Antigravity .agent/ ~/.gemini/config/skills/
OpenCode .opencode/
Grok Build .grok/ ~/.grok/skills/
Hermes Agent .hermes/ ${HERMES_HOME:-$HOME/.hermes}/skills/
DeepSeek Harness .dsh/ ${DSH_HOME:-$HOME/.dsh}/skills/
Pi .pi/
Qoder .qoder/ ~/.qoder/skills/
Rovo Dev .rovodev/ ~/.rovodev/skills/
Mistral Vibe .vibe/ ~/.vibe/skills/
Trae .trae/ ~/.trae/skills/
Trae China .trae-cn/ ~/.trae-cn/skills/
Muse workspace/ ~/workspace/custom-skills/

For example: mkdir -p your-project/.claude/skills && cp -r .claude/skills/impeccable your-project/.claude/skills/.

Notes:

  • 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.
  • OpenCode also needs .opencode/commands/impeccable.md copied into your project's .opencode/commands/ to provide /impeccable.
  • Hermes asks you to trust project-local skills once: run hermes skills trust from the project root. Global installs need no trust step.
  • Cursor and Gemini CLI may need Agent Skills enabled in settings. See the Cursor and Gemini CLI skills docs.
  • Restart Trae after copying.
  • impeccable install and update manage a DeepSeek Harness global copy only when DSH_HOME is inside your home directory.
  • Muse is user-scope only: copy workspace/custom-skills/impeccable into ~/workspace/custom-skills/. Consumer Muse exposes no native lifecycle hooks or subagent files for installers to emit, so Muse installs ship the skill without the design hook or native subagents; the agent roles run inline from reference/degraded/. The layout's sources are community, not Meta; see the Muse note in docs/HARNESSES.md.

Project files and git

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/ignore.md. Critique reports stay local unless reports.commit is true. Keep PRODUCT.md and DESIGN.md in the repo too. The rest is screenshots, caches, and runtime state.

Copy the .gitignore entries
# impeccable-ignore-start
# Ephemeral output, runtime state, and per-dev overrides.
# The **/ prefix covers .impeccable at the repo root or in a nested workspace.
# Shared artifacts stay tracked: config.json, live/config.json,
# design.json, surfaces/*.md, critique/ignore.md.
**/.impeccable/config.local.json
**/.impeccable/hook.cache.json
**/.impeccable/hook.pending.json
**/.impeccable/*.png
**/.impeccable/review/
**/.impeccable/questions/
**/.impeccable/live/server.json
**/.impeccable/live/sessions/
**/.impeccable/live/previews/
**/.impeccable/live/annotations/
**/.impeccable/live/cache/
**/.impeccable/live/manual-edit-apply-transaction.json
**/.impeccable/live/manual-edit-events.jsonl
**/.impeccable/live/manual-edit-evidence/
**/.impeccable/live/pending-manual-edits.json
**/.impeccable/live/deferred-svelte-component-accepts.json
**/.impeccable/live/*.png
# impeccable-ignore-end

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>.

Good to know

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 · Configuration.

Native apps. Set ## Platform in PRODUCT.md to ios, android, or adaptive (one Flutter or React Native codebase that follows each OS), and the design commands work from Apple's HIG or Material 3 instead of web conventions. init asks when it can't tell. audit and adapt switch to native versions, and the native audit reads SwiftUI, Compose, React Native, or Flutter source directly. The detector, live mode with its generate shortcut, and the edit hook stay web-only, because they work on HTML and CSS in a browser.

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.

Something broken? /impeccable doctor finds stale context files, unused settings, and broken hooks. Fix setup problems.

Telemetry. When a new design starts, the skill fetches a set of visual directions from the impeccable.style catalog. With telemetry on, it also records anonymously which directions were shown and which one you picked, which is how the catalog learns what works. Turning telemetry off skips the catalog fetch, so new designs get no catalog directions, and it skips the daily update check. Your project name, files, code, and PRODUCT.md are never sent. Install and update ask once at a terminal, with yes as the default; if you installed another way, your agent mentions it once without waiting for an answer. 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.

Community

Sponsors

CI powered by Namespace

Thanks to Namespace for sponsoring Impeccable's CI with fast Linux and Windows runners.

License

Apache 2.0. See LICENSE. Impeccable started from Anthropic's frontend-design skill.


Created by Paul Bakaus

impeccable (pbakaus/impeccable)

正在搜索数据库…

这是什么东西?Impeccable 是一套面向 AI 编程助手的设计语言:一个技能、24 个命令、实时浏览器迭代,外加 59 条确定性检测规则,用来让 AI 生成的前端设计变得更好。
它是我加到代码里的库,还是别的东西?既不是应用也不是库:它作为技能安装到你的 AI 编程工具里,所有命令都通过同一个 /impeccable 入口运行(craft、audit、polish、animate、bolder 等等)。
怎么把它配置到我的编程助手上?在项目根目录运行 npx impeccable install,然后在你的 AI 工具里运行 /impeccable init;也可以选择 Git 子模块、VS Code 插件、网站 ZIP 包或手动复制等方式。
它能在哪些 AI 编程工具里用?支持 Claude Code、Cursor、Gemini CLI、Codex CLI、GitHub Copilot、Grok Build、Hermes Agent、Veto 等等;安装程序会自动扫描它找到的环境,比如 ~/.claude 或项目里的 .cursor。
在所有支持的工具里功能都一样吗?不一样:检查 UI 文件修改的钩子只在 Claude Code、GitHub Copilot、Codex、Cursor 和 Grok Build 上自动安装;其他工具只有命令可用,需要手动完成信任步骤,或者完全没有钩子。
它在 Windows 上能跑吗,还是只支持 Mac?你的 AI 工具能跑的地方它都能跑——macOS、Linux 和 Windows 都行:每份安装都带有 scripts/impeccable 启动器,Windows 另有 impeccable.cmd,引擎只需下载一次到 ~/.impeccable/bin/。
为什么 AI 做出来的界面都长一个样?这个工具怎么解决?因为所有模型都是用同样的 SaaS 模板训练出来的,不加引导就会出同样的毛病:到处用 Inter、紫蓝渐变、卡片里套卡片、彩色背景配灰色文字。Impeccable 的规则正是针对这些问题的。
/impeccable init 具体做了什么?它是一次性的初始化:init 会检查你的项目,只就重要的产品信息缺口向你提问,然后生成 PRODUCT.md,这样后续命令就能了解你的受众、目标、约束和语气风格。
那 59 条检测规则需要大语言模型或 API 密钥吗?不需要。命令行工具和浏览器扩展运行这些确定性规则时,既不用大语言模型也不用 API 密钥;只有评审类的检查才依赖大语言模型。
它会把我 git 仓库搞乱吗?截图、缓存之类的工作文件都写在 .impeccable/ 目录下,README 里提供了相应的 .gitignore 配置;只有少数共享文件(如 .impeccable/config.json 和 design.json)会保留在版本跟踪里。
作者
pbakaus
大小
912.8 MB
星标
119.6K
时长
1年
提交 · 90 天