uak-design-lock · git:20261110.75ba884 · 2026-11-10 · sha256 bbfac249dee28e67

uak-design-lock git:20261110.75ba884A

Immutable. This exact content never changes and is served at /api/v1/blob/bbfac249dee28e67.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_n2ztyjwxqdbmga7c/bbfac249dee28e676afa195507fb6e67ca314e6d19dcd253ec646f24c2baeeb4.json

Then /plugin install uak-design-lock@markdownregistry-n2ztyjwxqdbmga7c in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: uak-design-lock
description: "(sprint) Use before building UI screens: visual directions with screenshots, the human picks one, then the shell, the UI kit and three locked screens every later screen copies from. Run this only when the user invokes it by name ($uak-design-lock or /uak-design-lock); never start it on your own."
disable-model-invocation: true
---
<!-- Generated by scripts/gen_harness.py from .claude/commands/uak-design-lock.md; edit that file, not this one. -->
Only when `Mode: sprint`, before the "design lock" time of `uak clock`. In any other mode, say so and stop.
Short event (under 6 h): ONE direction, not three. Build its wow screen, capture it, and let the human say yes or adjust. Then go to step 5.
Never skip the screenshots or the human's pick, and never take the direction from a sentence in `IDEA.md` or the plan: it is chosen by looking at it. A hackathon is judged on how it looks in 3 seconds on a projector. Accessibility in the rubric (contrast, size, plain language) is a floor every direction meets, never a style: no GOV.UK, USWDS or "public document" look unless the human asks for it. Take aesthetic risk in one memorable element. Each direction has a brand color, deliberate typefaces (not Inter, Roboto, Arial or Geist by default) and its wow screen built, not described.
This task owns the look of the whole app: DESIGN.md, the tokens, the UI kit, the shell and the design-lock folder, at the paths of the stack's `## UI paths` table (`.uak/stacks/<stack>/STACK.md`; the `web/...` paths below are the fastapi-react ones). Why (Hacktoberfest): the lock specified one screen; the other ten copied it as grey panels with striped rows, and the nav stayed a bare row of links because nobody owned `App.tsx`.
1. Read `IDEA.md` §0–4 (brand, user, wow, look references) and load the skill `frontend-design`. References: for each product link the human gave, capture its comparable screen at 1280×720 into `web/public/design-lock/refs/` (none given? ask the human for 2 in one line, and go on without them). Plan the tokens, check the plan against the AI tells, revise what reads generic, then build.
2. Propose 3 directions that differ in layout or composition, not only in palette (a map with a panel, a dense table, a story scroll…). Each has a name, a one-line intent, palette tokens (background, surface, text, accent, states with their ink), type, density, motion, and how the wow moment looks. The numbers on them come from the fixtures the app will read, never typed by hand.
3. For each direction, build a static `web/public/design-lock/<n>.html` of the wow screen with its nav, and capture it as `<n>-1280.png` (1280×720) and `<n>-390.png` (390×844) with the skill `webapp-testing`. Write `<n>.md`: the name on line 1, the intent on line 2, and `Recommended: yes` on your pick.
4. Run `bash .uak/bin/uak design-gallery`: it opens the directions side by side in the human's browser (in a terminal, nobody sees a PNG unless something opens it). Recommend one by scoring each direction 1–5 on projector legibility, distinctiveness with the logo covered, and fit to the subject's world. The human picks by looking; with no human present, take the top score and say so in the decision.
5. Lock it, in this order:
   - `web/DESIGN.md` from `.uak/templates/DESIGN.template.md`, every field filled (`uak lint` checks it): type scale, spacing, radius, color tokens, the shell, the screen → recipe → hero table for every screen in the plan, and the AI tells you refuse.
   - The tokens in `web/src/index.css`; the UI kit in `web/src/lib/ui/`: `AppShell`, `NavBar` (brand mark, pill or segmented views, a 390-wide form), `PageHeader`, `PageLayout` (one per recipe in the table), button, surface, chip, stat, legend, section header and the product's data badge, each with sm/md sizes; a chart wrapper when a screen has a chart (skill `product-ui` §2, Chart).
   - `web/src/App.tsx` renders every feature inside `AppShell`, so a view never builds its own header or nav.
   - Three locked screens, built with the kit and captured at 1280 and 390 into `web/public/design-lock/screens/`: the wow screen, a flow or form, and a list or detail. Every later screen copies the one with its recipe, not the wow screen. Delete the losing HTML.
6. Run the `design-critic` subagent on the three locked screens (task ID: yours), fix its P1s, then `bash .uak/bin/uak decision <your task ID> --option "Direction <n>" --why "<human's pick>" --reversible no --authorized yes --class scope`.

From now on, any global visual change (theme, palette, type, shell) needs a human-approved `uak decision`. At Hack-Nation 2026 we went through 4 visual directions in 8 h.