Impeccable

From ninehills/skills · View interactive version

Impeccable is an AI agent skill from the GitHub repository ninehills/skills. Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding,

How to use this skill

Skill file

Designs and iterates production-grade frontend interfaces. Real working code, committed design choices, exceptional craft.

Setup (non-optional)

Two steps before any design work. Both are required. Skipping either produces generic output that ignores the project.

1. Context gathering

Two files at the project root, case-insensitive:

Load both in one call:

node {{scripts_path}}/load-context.mjs

Consume the full JSON output. Never pipe through head, tail, grep, or jq.

If the output is already in this session's conversation history, don't re-run. Exceptions requiring a fresh load: you just ran {{command_prefix}}impeccable teach or {{command_prefix}}impeccable document (they rewrite the files), or the user manually edited one.

{{command_prefix}}impeccable live already warms context via live.mjs — if you've run live.mjs, don't also run load-context.mjs this session.

If PRODUCT.md is missing, empty, or placeholder ([TODO] markers, <200 chars): run {{command_prefix}}impeccable teach, then resume the user's original task with the fresh context.

If DESIGN.md is missing: nudge once per session ("Run {{command_prefix}}impeccable document for more on-brand output"), then proceed.

2. Register

Every design task is brand (marketing, landing, campaign, long-form content, portfolio — design IS the product) or product (app UI, admin, dashboard, tool — design SERVES the product).

Identify before designing. Priority: (1) cue in the task itself ("landing page" vs "dashboard"); (2) the surface in focus (the page, file, or route being worked on); (3) register field in PRODUCT.md. First match wins.

If PRODUCT.md lacks the register field (legacy), infer it once from its "Users" and "Product Purpose" sections, then cache the inferred value for the session. Suggest the user run {{command_prefix}}impeccable teach to add the field explicitly.

Load the matching reference: reference/brand.md or reference/product.md. The shared design laws below apply to both.

Shared design laws

Apply to every design, both registers. Match implementation complexity to the aesthetic vision — maximalism needs elaborate code, minimalism needs precision. Interpret creatively. Vary across projects; never converge on the same choices. {{model}} is capable of extraordinary work — don't hold back.

Color

Theme

Dark vs. light is never a default. Not dark "because tools look cool dark." Not light "to be safe."

Before choosing, write one sentence of physical scene: who uses this, where, under what ambient light, in what mood. If the sentence doesn't force the answer, it's not concrete enough — add detail until it does.

"Observability dashboard" does not force an answer. "SRE glancing at incident severity on a 27-inch monitor at 2am in a dim room" does. Run the sentence, not the category.

Typography

Layout

Motion

Absolute bans

Match-and-refuse. If you're about to write any of these, rewrite the element with different structure.

Copy

The AI slop test

If someone could look at this interface and say "AI made that" without doubt, it's failed. Cross-register failures are the absolute bans above. Register-specific failures live in each reference.

Category-reflex check. If someone could guess the theme and palette from the category name alone — "observability → dark blue", "healthcare → white + teal", "finance → navy + gold", "crypto → neon on black" — it's the training-data reflex. Rework the scene sentence and color strategy until the answer is no longer obvious from the domain.

Commands

| Command | Category | Description | Reference |

|---|---|---|---|

| craft [feature] | Build | Shape, then build a feature end-to-end | reference/craft.md |

| shape [feature] | Build | Plan UX/UI before writing code | reference/shape.md |

| teach | Build | Set up PRODUCT.md and DESIGN.md context | reference/teach.md |

| document | Build | Generate DESIGN.md from existing project code | reference/document.md |

| extract [target] | Build | Pull reusable tokens and components into design system | reference/extract.md |

| critique [target] | Evaluate | UX design review with heuristic scoring | reference/critique.md |

| audit [target] | Evaluate | Technical quality checks (a11y, perf, responsive) | reference/audit.md |

| polish [target] | Refine | Final quality pass before shipping | reference/polish.md |

| bolder [target] | Refine | Amplify safe or bland designs | reference/bolder.md |

| quieter [target] | Refine | Tone down aggressive or overstimulating designs | reference/quieter.md |

| distill [target] | Refine | Strip to essence, remove complexity | reference/distill.md |

| harden [target] | Refine | Production-ready: errors, i18n, edge cases | reference/harden.md |

| onboard [target] | Refine | Design first-run flows, empty states, activation | reference/onboard.md |

| animate [target] | Enhance | Add purposeful animations and motion | reference/animate.md |

| colorize [target] | Enhance | Add strategic color to monochromatic UIs | reference/colorize.md |

| typeset [target] | Enhance | Improve typography hierarchy and fonts | reference/typeset.md |

| layout [target] | Enhance | Fix spacing, rhythm, and visual hierarchy | reference/layout.md |

| delight [target] | Enhance | Add personality and memorable touches | reference/delight.md |

| overdrive [target] | Enhance | Push past conventional limits | reference/overdrive.md |

| clarify [target] | Fix | Improve UX copy, labels, and error messages | reference/clarify.md |

| adapt [target] | Fix | Adapt for different devices and screen sizes | reference/adapt.md |

| optimize [target] | Fix | Diagnose and fix UI performance | reference/optimize.md |

| live | Iterate | Visual variant mode: pick elements in the browser, generate alternatives | reference/live.md |

Plus two management commands — pin <command> and unpin <command>, detailed below.

Routing rules

  1. No argument — render the table above as the user-facing command menu, grouped by category. Ask what they'd like to do.
  2. First word matches a command — load its reference file and follow its instructions. Everything after the command name is the target.
  3. First word doesn't match — general design invocation. Apply the setup steps, shared design laws, and the loaded register reference, using the full argument as context.

Setup (context gathering, register) is already loaded by then; sub-commands don't re-invoke {{command_prefix}}impeccable.

Pin / Unpin

Pin creates a standalone shortcut so {{command_prefix}}<command> invokes {{command_prefix}}impeccable <command> directly. Unpin removes it. The script writes to every harness directory present in the project.

node {{scripts_path}}/pin.mjs <pin|unpin> <command>

Valid <command> is any command from the table above. Report the script's result concisely — confirm the new shortcut on success, relay stderr verbatim on error.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.