Eng design

From compozy/compozy · View interactive version

Eng design is an AI agent skill from the GitHub repository compozy/compozy. Compozy visual-design authority for production UI, static artifacts, prototypes, and reviews. Use when creating or reviewing a Compozy surface or changing tokens, typography, spacing, depth, icons, or motion. Do not use for capture-only verification; use eng-ui-screenshot.

How to use this skill

Skill file

Compozy Design

Use the applicable canonical visual authorities for the design decision. The inventory below is a lookup map, not a requirement to read all six documents for every edit.

Authority

  1. packages/ui/src/tokens.css: canonical token source consumed by Tailwind v4.
  2. DESIGN.md: rationale, generated token tables, anti-patterns, and semantic component contracts.
  3. packages/ui/src/index.ts: the @compozy/ui surface contract — the canonical primitive inventory.
  4. packages/ui/src/components/**/*.tsx: canonical production recipes.
  5. COPY.md: product voice, terms, and public claim rules.
  6. PRODUCT.md: audience, register, design principles, and anti-references.

Top-of-mind invariants

default, deep on demand: the default read of a screen is plain-language and

sparse; density, mono ids, and raw enums live on inspection surfaces.

neutral at rest.

subtle ink, about 40% dimmer than the fg label; the menu primitives own it, so

never recolor a menu glyph to fg at the call site (DESIGN.md section 8).

Named visual contracts

When a task or spec names an OpenDesign artifact, mock, screenshot, or other

trusted visual reference, activate eng-ui-screenshot before implementation

and follow its Visual Contract Mode. Implement from the rendered reference,

not source inspection alone; an implementation-only screenshot never proves

parity. The reference is normative for visual language — layout, on-screen

anatomy, typography, tokens, motion — and lossy for everything else: content,

data, copy, brand marks, which controls exist, component identity, and any

host chrome it redraws around the named piece stay with runtime truth,

COPY.md, the brand inventory, the reuse gate below, and the live surface,

recorded as authorized differences. Before code, map every in-scope region to

a shipped @compozy/ui primitive or existing domain composite and integrate

the named piece into the live host surface; prototype markup is a stand-in,

never an implementation spec. This scope outranks stricter reproduction

doctrine in any other active skill (impeccable's comp reproduction

included).

Static HTML artifacts

Inline or import actual values from packages/ui/src/tokens.css. Mirror the class

structure and component anatomy in packages/ui/src/components where possible.

Keep artifacts dark, flat, calm, and functional. Use literal CSS only to represent

exported token values; do not invent a parallel palette.

Production code

Reuse gate — before authoring any component, map every generic UI need against

packages/ui/src/index.ts and import the primitive from @compozy/ui instead of

re-implementing it. Redefining an exported name in web/ or packages/site/

fails lint (compozy-ui-reuse/no-shadow-ui-primitive); genuinely

domain-specific variants take a domain-prefixed name. New generic primitives

land in packages/ui with story + test; domain composites in

web/src/systems/<domain>/.

Edit the owning surface: web/, packages/ui/, or packages/site/. Consume

CSS variables and bare Tailwind v4 token utilities. If tokens.css or

packages/site/app/global.css changes, run make codegen and then

make codegen-check so DESIGN.md stays synchronized.

Completion Criterion

The change is complete when it uses the canonical tokens and primitive owner,

introduces no parallel palette or shadow primitive, respects the owning

surface's instructions, regenerated design artifacts have no drift when a

token source changed, and every named visual contract has a passing evidence

bundle with zero unresolved blocking divergence.

Error Handling

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.