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 only to the chat agent running live mode; it never starts an agent CLI on its own. If no live session is polling, Apply stops and asks you to start live mode in your chat. IMPECCABLE_LIVE_COPY_AGENT=off turns Apply off.

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 детерминированных правил-детекторов, которые делают фронтенд-дизайн, сгенерированный ИИ, лучше.
Это библиотека, которую я добавляю в свой код, или что-то другое?Ни приложение, ни библиотека: он ставится как навык (skill) внутри вашего AI-инструмента для кодинга, и каждая команда запускается через одну точку входа /impeccable (craft, audit, polish, animate, bolder и другие).
Как подключить его к моему AI-агенту для кодинга?Из корня проекта выполните npx impeccable install, затем запустите /impeccable init внутри вашего AI-инструмента; есть и альтернативы: Git submodule, плагин для 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 плюс impeccable.cmd для Windows, а движок один раз скачивается в ~/.impeccable/bin/.
Почему весь UI, сделанный ИИ, выглядит одинаково, и чем это помогает?Все модели обучены на одних и тех же SaaS-шаблонах, поэтому без специальных указаний вы получаете одни и те же приметы: Inter повсюду, фиолетово-синие градиенты, карточки внутри карточек, серый текст на цветном фоне. Правила Impeccable нацелены именно на это.
Что на самом деле делает /impeccable init?Это одноразовая настройка: init изучает ваш проект, спрашивает только о существенных пробелах в устойчивых фактах о продукте и записывает PRODUCT.md, чтобы последующие команды знали вашу аудиторию, цели, ограничения и tone of voice.
Для 59 правил-детекторов нужны LLM или API-ключ?Нет. CLI и браузерное расширение выполняют детерминированные правила без LLM и без API-ключа; только проверки критики используют LLM.
Он замусорит мой git-репозиторий?Рабочие файлы вроде скриншотов и кэшей он пишет в .impeccable/, а в README есть блок для .gitignore; несколько общих артефактов, например .impeccable/config.json и design.json, остаются под контролем версий.
Какие есть похожие проекты?transitions.dev, taste-skill, anti-slop, oil-ui, design-extract, hallmark, evondevKit, ux-ui-agent-skills
Автор
pbakaus
Размер
927.2 MB
Звёзды
121K
Возраст
1 г
Коммиты · 90 дней