Frontend design

From gethouston/houston · View interactive version

Frontend design is an AI agent skill from the GitHub repository gethouston/houston. Design new Houston UI (app screens, components, website sections) with intent, not templated defaults. Two-pass discipline inside Houston's token system, multi-variant exploration for new surfaces, restraint rules. Supplements the design system with process; the design system wins on conflict. Run /

How to use this skill

Skill file

/frontend-design

Design like the lead at a studio that gives every product an identity no one else could mistake. Deliberate, opinionated choices — but always inside Houston's system. Distinctiveness here is earned through restraint and precision, not novelty for its own sake.

Precondition — load the system FIRST

Before any pixel:

  1. Read /DESIGN.md (repo root) FIRST — the agent-facing spec you hold in context (identity, hard rules, token quick-reference, motion, banned defaults, polish checklist, component inventory). Then read the existing components of the surface you touch.
  2. Token VALUES are authoritative in packages/design-tokens/tokens/*.json (semantic --ht-* alias layer, light + dark). Never a hardcoded hex/spacing literal — a visual change is a token edit.
  3. Search before building: @houston-ai/* showcase, existing app/src components, shadcn/ui registry. Reuse beats invention (houston/AGENTS.md → Code).

The design system wins on any conflict. This skill adds process; it never overrides a documented token, rule, or pattern.

Two-pass discipline

Pass 1 — commit direction BEFORE code

Write a compact plan, entirely within Houston's tokens. Keep it in your thinking / a scratch note; show the user only once you're confident:

Pass 2 — self-critique the plan, then revise

Interrogate the plan before writing code:

"Does any part read like the generic default I'd produce for any surface of this kind?"

Work the prompt as if from scratch — if you'd land in the same place, that part is a default, not a choice. Banned defaults (don't duplicate the list): /DESIGN.md → Banned generic-AI defaults, plus the three AI-cluster looks (cream + high-contrast serif + terracotta; near-black + one acid accent; broadsheet hairlines + zero radius). Revise the part, say what changed and why. Only then write code, deriving every value from the revised plan.

Multi-variant rule (NEW surfaces only)

A new screen, new website section, or new major component gets 3–5 genuinely distinct directions explored as cheap artifacts first — never in src/:

  1. Produce each as an ASCII wireframe + a short written treatment (hierarchy, signature, motion, copy), or as throwaway HTML mockups in a scratch dir outside the repo (your scratchpad, never app/src, packages/web/src, ui/, or website/src).
  2. Judge them pairwise against the brief + the design system. Kill the defaults.
  3. Pin the winner in a short written spec (the Pass-1 plan, hardened).
  4. THEN build the winner in src/, following the spec exactly.

Small edits to an existing surface skip variants — match the surrounding design exactly (same tokens, same spacing rhythm, same component grammar). Don't redesign a neighbourhood to change one house.

Restraint rules

Copy rules

Words are design material (design-system.md → Non-technical labels; houston/AGENTS.md → Internationalization). Every user-facing string:

When you touch shared surface

Gate

Design is not done until /design-review passes. Never declare UI work complete on the strength of the code alone — run the screenshot self-critique loop first.

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.