Design review

From gethouston/houston · View interactive version

Design review is an AI agent skill from the GitHub repository gethouston/houston. The screenshot self-critique loop. Run BEFORE declaring ANY Houston UI work done. Screenshot the touched screens in both themes at desktop + narrow widths, critique against a scored rubric with vision, fix the top 3 issues, repeat. Gate: loop passes + scoped checks + parity. Tool-agnostic, Playwrigh

How to use this skill

Skill file

/design-review

You cannot judge UI from code. Look at it. A picture is worth 1000 tokens.

Never report UI work complete without running this loop. Minimum 2 passes; plan on 3–5. Stop when a pass finds nothing above severity-minor.

Precondition

Read /DESIGN.md (repo root) FIRST — the spec that defines the rules this loop scores against (hard rules, token quick-reference, motion, banned defaults). The --ht-* token values live in packages/design-tokens/tokens/*.json. This is what "token compliance" and "motion rules" below are measured against.

The loop

1. Bring the surface up

App screens (app/src / packages/web) run against an in-memory fake host — no real backend, no AI, no credentials. Two paths:

Website (website/, Eleventy — no fake host): cd website && npm run dev serves the built site (--serve), or npm run build then serve _site/. Same rubric applies.

2. Screenshot — both themes, two widths

For every touched screen, capture the matrix:

| | Desktop (~1280px) | Narrow (~380px) |

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

| Light | ✓ | ✓ |

| Dark | ✓ | ✓ |

Toggle theme by setting data-theme on the root element (app/src/lib/theme.ts applies it): dark = document.documentElement.setAttribute("data-theme","dark"); light = remove the attribute (or set "light"). In Playwright: page.evaluate(...) then screenshot. Capture any designed states (empty / loading / error) too — the fake host /__test__/* controls or seed data drive them.

3. Critique with vision — score each 1–5

Look at every screenshot and score against this rubric. Any score ≤3 is an issue.

Write the findings down (a scratch note), ranked by severity.

4. Fix the TOP 3 issues

Only the worst three this pass. A visual fix is a token/component edit, not a hardcoded literal. Keep changes on the surface ladder and inside the type/spacing scale.

5. Repeat

Re-screenshot the full matrix, re-critique. Minimum 2 passes; stop only when a pass surfaces nothing above severity-minor.

Gate — all must hold before "done"

Only then report the UI work complete.

Anti-patterns

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.