agentleFS
hoophqhoophq/hoop/.claude/skills/design-review/SKILL.md

design-review

Skill869 starsChanged 42 days agoMITView on GitHub

Review web app or terminal (CLI) work AFTER it is built, against Hoop's design rules, and return clear issues with fixes. Use when asked for a design review, a UI review, a CLI or terminal output review, "does this look right", or "check this against the design system" - on a PR number, a branch, a diff, or a screenshot. Covers webapp_v2 screens and components (React, Mantine) and the hoop CLI (help, prompts, errors, colors, tables, TUI). No design context needed. To build UI, use hoop-ui instead.

183 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use team-audio, playtest-report and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CoralGameSkill

    team-audio

    Orchestrate audio team: audio-director + sound-designer + technical-artist + gameplay-programmer for full audio pipeline from direction to implementation.

    Also in 15 projects that use this

  • CoralGameSkill

    playtest-report

    Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.

    Also in 14 projects that use this

  • lilangMaxSkill

    asset-spec

    Generate per-asset visual specifications and AI generation prompts from GDDs, level docs, or character profiles. Produces structured spec files and updates the master asset manifest. Run after art bible and GDD/level design are approved, before production begins.

    Also in 12 projects that use this

  • julianoczkowskiSkill

    brief-to-tasks

    Break a design brief into an ordered checklist of independently buildable tasks using vertical slices. Saves as a markdown checklist. Use when user wants to break down work, create tasks from a brief, plan implementation order, or mentions "tasks" or "breakdown".

    Also in 8 projects that use this

  • lilangMaxSkill

    propagate-design-change

    When a GDD is revised, scans all ADRs and the traceability index to identify which architectural decisions are now potentially stale. Produces a change impact report and guides the user through resolution.

    Also in 13 projects that use this

  • ShreyRaviSkill

    setup-gbrain

    Set up gbrain for this coding agent: install the CLI, initialize a local PGLite or Supabase brain, register MCP, capture per-remote trust policy. One command from zero to "gbrain is running, and this agent can call it." Use when: "setup gbrain", "connect gbrain", "start gbrain", "install gbrain", "configure gbrain for this machine". (gstack)

    Also in 13 projects that use this

  • +2 more from CoralGame
  • +4 more from lilangMax

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. 0 are common, 13 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 156 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not copy their rules into a report.

    line 65
  2. Distinctive:

    Only review what the change adds or edits.

    line 91
  3. Distinctive:

    If the person says which part is new, review that part only.

    line 98
  4. Very specific:

    Find the code: Search a sentence the team wrote (a page description, a callout, a placeholder, a button), not the data (pg-prod, a date).

    line 100
  5. Distinctive:

    No hit, or many: Not in the repo: review from the image only, and say so.

    line 105
  6. Distinctive:

    Compare: Check a few visible details against the code on main (corners, colors, a label).

    line 107
  7. Distinctive:

    Write "script on whole files" in the "Checks" line.

    line 119
  8. Distinctive:

    When the change has a screen or terminal output you can see, look at it:

    line 161
  9. Very specific:

    Look at it in a dark and a light terminal theme (term.sh ...

    line 175
  10. Distinctive:

    If you cannot run it, use the PR's images and the code.

    line 181
  11. Very specific:

    When the design file (Figma, the PR's description) and hoop-ui disagree, do not pick: write it as a question for design.

    line 195
  12. Very specific:

    If CLICOLOR_FORCE gives no colors, run the command in a real terminal with script -q before.txt "$SCRATCH/hoop" <args>.

    line 237
  13. Distinctive:

    Look at every image before you use it: the box must sit on the issue.

    line 271
  14. Distinctive:

    Use this format. Most severe first.

    line 275
  15. Distinctive:

    Write for an engineer with no design background: say what the person using the product sees, not design terms.

    line 317
  16. Very specific:

    If hoop-ui and the repo disagree, the repo wins.

    line 320
  17. Distinctive:

    If you are not sure, write it as a question, not a rule.

    line 322
  18. Distinctive:

    No issues: say "No design issues found", list what you checked, and stop.

    line 329
  19. Distinctive:

    Write the report in English, also when the person asks in another language: it goes on PRs and tickets, and the repo is in English.

    line 333

“Common” is measured: kept by at least 6 in 10 of the 156 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Design review

Two skills, one set of rules:

  • hoop-ui is before: an agent loads it to build UI.
  • design-review is after: it checks built work against the same rules.

The rules live in hoop-ui and in the brand skills (design-webapp-md, design-md). This skill does not copy them. It says which one wins, how to review, how severe each break is, and how to show it.

Input: a PR number, a branch, a diff, or a screenshot of the web app or the terminal. Output: a list of issues. Each issue says where it is, which rule it breaks, and the fix. A reader with no design background can apply every fix.

You review. You do not edit files, and you do not post comments on GitHub or Linear unless the person asks.

1. Get the work

InputDo
PR numbergh pr diff <N> and gh pr view <N> --json title,body,files
Branchgit diff origin/main...<branch>
No inputgit diff origin/main...HEAD, plus uncommitted changes
ScreenshotRead the image, then follow "A screenshot" below.

The rules must be there before you review. If .claude/skills/hoop-ui/references/webapp.md or terminal.md does not exist in this checkout, stop. Say "The hoop-ui rules are missing, so I cannot review" and do not review from memory.

Then find the scope and read the rules:

Files changedRules (read all of it)
webapp_v2/src/.claude/skills/hoop-ui/references/webapp.md, and the repo files its section 1 names
client/ output a person reads (fmt.Print*, styles., lipgloss, cobra Short/Long/flag help, sidecartui/).claude/skills/hoop-ui/references/terminal.md
Text a person reads in another place: the feature flag Description in common/featureflag/featureflag.go (shown at Settings, Experimental)webapp.md, 8. Copy: the same words as the web app and the CLI
BothBoth
Neither (only Go logic, tests, docs)Say "No design surface in this change" and stop.

A merged PR: its code may already be in this checkout. Check with git diff <merge commit> HEAD -- <its files>. When that is empty, build and run from here, with no separate folder.

Then load the brand skills, when this session has them (they come with the Hoop account, not with the repo):

SkillUse it for
design-webapp-mdWeb app screens: the screen types, the rules that never change, its checks
design-mdThe brand: palette meaning, voice and copy, the bar and the pill

For the terminal, use the brand skills for voice and copy only. They have no terminal rules: hoop-ui terminal.md decides color, layout and symbols.

Do not copy their rules into a report. Cite them like any other source. When a session does not have them, write "Brand skills: not loaded" in the report and review with hoop-ui only. To check, list the references/ folder in the base directory that the Skill tool names. When a brand skill loads but its references/ files are missing, use the rules in its SKILL.md only and write "Brand skills: top level only".

Some rules disagree. Use this order, first wins:

  1. The repo: theme.js, the tests, CLAUDE.md, COMPONENTS.md.
  2. hoop-ui.
  3. design-webapp-md.
  4. design-md.

A break of a lower source that a higher source allows is not an issue. Put it under "Questions for design" only when it is not in the "Known differences" table of references/review.md.

Judge by today's rules: the hoop-ui of this checkout, also for an older or merged PR. When the PR's own theme does not have a token that a rule names yet, the issue and the fix stay. Add one line to the fix: "The theme does this once <token> is on main."

Then read references/review.md: what not to flag, the known differences, and how severe each break is.

Only review what the change adds or edits. Old code next to the change is not an issue. When new code copies, moves or reuses an old pattern that breaks a rule, flag it once and name the old place.

A screenshot

A screenshot has no change, so review the whole screen, by today's rules. If the person says which part is new, review that part only.

  1. Find the code. Search a sentence the team wrote (a page description, a callout, a placeholder, a button), not the data (pg-prod, a date). Open the file it hits, then follow its imports until every part of the screen has a file. Write the route and the files in the report.
  2. No hit, or many. Not in the repo: review from the image only, and say so. In many files (a component two pages share): name them all.
  3. Compare. Check a few visible details against the code on main (corners, colors, a label). When they differ, the screenshot is from an older build. Judge by the code on main, do not flag what main already fixed, and say so under "Questions for design".
  4. Checks. There is no diff. Run the script on the whole files, as if every line were new:

    for f in <files>; do git diff --no-index /dev/null "$f"; done \
      | python3 .claude/skills/design-review/scripts/check_diff.py

    Write "script on whole files" in the "Checks" line.

  5. Not app code in the image (a browser bar, a chat button, an extension): do not review it. Name it once under "Not checked".
  6. States. The image shows one state. List the others (loading, empty, error) under "Not checked", with the file that draws each one.

2. Run the checks

gh pr diff <N> | python3 .claude/skills/design-review/scripts/check_diff.py
git diff origin/main...HEAD | python3 .claude/skills/design-review/scripts/check_diff.py

It reads a unified diff and reports on added lines only. FAIL is a rule break. WARN means look again: it can be correct. MOVED is old code that the change moved to a new place: flag it once, as step 1 says. The script finds patterns. It does not see the screen, and it does not see layout (a card in a card, a field error shown only in a toast, a switch whose visible name is not its label): step 3 is still necessary.

For a web app change, also run the tests that guard the theme. They read the files on disk, not the diff. For a PR, put its code in a separate folder first:

git fetch origin pull/<N>/head && git worktree add ../pr-<N> FETCH_HEAD
(cd ../pr-<N>/webapp_v2 && npm ci && npx vitest run test/themeColors.test.js)

To run the PR's screen there (step 4), also run npm ci in ../pr-<N>/webapp: dev:full starts both apps. Remove the folder after, from the repository root: git worktree remove ../pr-<N>. npm ci takes minutes. If you cannot wait or cannot run it, write "Color test: not run" in the report, and read the added lines for a hex, an rgb() or a --mantine-color-<name>-<n> shade instead.

3. Read and look

Go through the "Check before you finish" list at the end of the hoop-ui reference, one line at a time, on the changed code. Then read the other sections for what the list does not cover.

When the change has a screen or terminal output you can see, look at it:

  • Web app: the PR's "Testing" images, or run it (cd webapp_v2 && npm run dev).
  • Terminal: the PR's images, or build and run the command. Build into a scratch folder and run it with a throwaway HOME, so the person's own hoop and its config stay as they are. Never make build-dev-client: it replaces $HOME/.hoop/bin/hoop.

    SCRATCH=$(mktemp -d)   # owner-only; the later steps use it too
    go build -o "$SCRATCH/hoop" ./client          # about 20 seconds
    HOME="$SCRATCH/home" "$SCRATCH/hoop" context list

    Look at it in a dark and a light terminal theme (term.sh ... light), and once with NO_COLOR=1 and piped through | cat. When the command prints no color, one theme is enough: say so in "Not checked". To reach an error from the gateway with no gateway, point the command at a small local server that answers the error (for example a 502).

If you cannot run it, use the PR's images and the code. Say so in the report's "Reviewed from" line. A GIF or video reads better as frames:

ffmpeg -loglevel error -i in.gif -vf "fps=1/2,scale=1200:-1" frame-%02d.png

That makes small frames to read. For mark.sh, take the frame you need again at full size (drop ,scale=1200:-1), so the small text stays readable.

Some rules need the running screen (hover, focus ring, 44px touch target, 390px width). When you could not see it, list those rules under "Not checked".

When the design file (Figma, the PR's description) and hoop-ui disagree, do not pick: write it as a question for design.

4. Show each issue

Each Must fix and Should fix item gets one image: the spot marked, and the fix next to it when you can show it. Nits and questions get no image. An issue with nothing to see (an error shown only in a toast, a missing aria-label) gets no image: write "No image: nothing to see on the screen" in its place. A code-only break on a visible element (a token passed as a prop) also gets no image. Save the images in $HOME/design-review/<PR number, branch, or screenshot-<page>>/, named <item number>-<short-name>.png. In the report, write the full path (/Users/<you>/design-review/...): ~ does not open in Markdown.

ScopeYou haveDo
Terminalanythingterm.sh
Web appthe screen runningshot.mjs, then pair.sh
Web apponly the PR's imagesmark.sh (the spot, no "after")
Web appan issue that shows only across stepsa GIF with .claude/skills/evidence/rec.mjs

The scripts are in this skill's scripts/ folder, not the repository's. Each one prints the file it wrote. From the repository root:

DR=.claude/skills/design-review/scripts
[ -d "${SCRATCH:-}" ] || SCRATCH=$(mktemp -d)   # from step 3, else a new one

Terminal. Save what the command prints, colors and errors included (errors go to stderr, so add 2>&1). Then write the "after" text by hand from the fix, with the same data as the "before": the same names and URLs, so only the fix changes. term.sh wraps lines at 80 columns:

# The binary from step 3, built from the PR's code:
CLICOLOR_FORCE=1 HOME="$SCRATCH/home" "$SCRATCH/hoop" context list > before.txt 2>&1
$DR/term.sh before.txt after.txt ~/design-review/<N>/02-table.png v        # dark
$DR/term.sh before.txt after.txt ~/design-review/<N>/02-table-light.png v light

If CLICOLOR_FORCE gives no colors, run the command in a real terminal with script -q before.txt "$SCRATCH/hoop" <args>.

Web app, running. shot.mjs opens the page, draws a red "BEFORE" box on the element, applies the fix in the page (not in the code), and draws a green "AFTER" box. --steps reaches a state first (open a card, a modal), and --ready waits for the control it clicks:

# A test hoop with a seeded admin, and its login in a file:
scripts/dev/run-sandbox.sh start
# The token is an admin login: keep it in your scratch folder, owner-only.
(umask 077 && source "${TMPDIR:-/tmp}/hoop-sandbox/env" && printf %s "$HOOP_TOKEN" > "$SCRATCH/hoop-dev-token")
# The web UI: `cd webapp_v2 && npm run dev:full` (http://localhost:5173).

node $DR/shot.mjs http://localhost:5173 /sessions \
  "[...document.querySelectorAll('button')].find(b => b.textContent.trim() === 'Clear Filters')" \
  "el.textContent = 'Clear filters'" ~/design-review/<N> --name 03-clear-filters --pad 160 \
  --token "$SCRATCH/hoop-dev-token"
$DR/pair.sh ~/design-review/<N>/03-clear-filters-{before,after}.png ~/design-review/<N>/03-clear-filters.png

For a PR, run the stack from the PR's code (the ../pr-<N> folder of step 2). A fix the page cannot show (a new empty state, an aria-label) gets the "before" only.

Web app, PR images or a screenshot. Find the box of the spot in the image's pixels: crop the area with ffmpeg and look at it, then read the box from the crop and add the crop's corner. Mark it:

$DR/mark.sh shot.png <x> <y> <w> <h> ~/design-review/<N>/02-status-dot.png [pad]

Look at every image before you use it: the box must sit on the issue.

5. Report

Use this format. Most severe first. Each item names its file.

## Design review: <PR, branch, or "screenshot of <page>">

- **Scope:** web app | terminal | both
- **Code:** (a screenshot only) the route and the files that draw it
- **Checks:** script <n> FAIL, <n> WARN, <n> MOVED (on the diff | on whole files) · color test passed | failed | not run | n/a (no web app change)
- **Rules from:** hoop-ui · design-webapp-md · design-md. Mark each brand skill "loaded", "top level only" or "not loaded".
- **Reviewed from:** the running screen | code and PR images (not run) | a screenshot and the code on main (not run)

### Must fix
None. (Write "None." when a section is empty. Keep the heading.)
1. `webapp_v2/src/pages/Foo/index.jsx:42`: two filled indigo buttons in one view.
   Rule: hoop-ui webapp.md, 4. Page structure ("One primary button per view").
   Fix: make "Cancel" `variant="subtle"`.
   ![1](/Users/<you>/design-review/<N>/01-two-primary.png)

### Should fix
...

### Nits
- At most three. Leave this section out when there are Must fix items.

### Questions for design
- Where hoop-ui, the repo and the design file disagree.

### Not checked
- Rules you could not see without running it, and the states the input does not show.

### Looks good
- One line for each rule the change follows well. Two to four lines.

Rules for each issue:

  • One location (path:line), one rule, one fix. The fix is code or exact text the engineer can paste.
  • The same break in many places is one item: give the first location, then list the others in the item ("Also at: a.jsx:15, b.jsx:20").
  • Name the rule with its hoop-ui file and section, so the engineer can read why.
  • Write for an engineer with no design background: say what the person using the product sees, not design terms. "The error is gray, so it looks like a hint" and not "low visual hierarchy".
  • If hoop-ui and the repo disagree, the repo wins. Say so in one line under the report, so design can update hoop-ui.
  • If you are not sure, write it as a question, not a rule.

An image path on your machine is for the person who asked. To post the report on a PR, publish the images first (.claude/skills/evidence/publish.sh <TICKET-ID> <files>) and use those links. Only post when the person asks.

No issues: say "No design issues found", list what you checked, and stop.

Writing style

Write the report in English, also when the person asks in another language: it goes on PRs and tickets, and the repo is in English. Simple English (ASD-STE100). Short sentences. No em dashes. No buzzwords.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.