review-ui

review-ui is a command for Claude Code from smicolon/ai-kit. It costs 37 tokens per session (1,072 once invoked), scanned A, a copy of act, MIT.

A review command for checking a React or Next.js branch's visual design and user experience. It can review the whole branch or a selected path, feature, or base branch.

In plain words
What is it for?
It reviews changed interface code for layout, styling, and visual user-experience problems within a chosen scope.
Why use it?
It helps find visual inconsistencies and polish issues before code is merged.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It reviews changed interface code for layout, styling, and visual user-experience problems within a chosen scope.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/smicolon/ai-kit/review-ui
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/smicolon/ai-kit/review-ui
Clone the repo
git clone --depth 1 https://github.com/smicolon/ai-kit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for review-ui

README.md
[![agentmods](https://agentmods.dev/badge/commands/smicolon/ai-kit/review-ui.svg)](https://agentmods.dev/commands/smicolon/ai-kit/review-ui)
Your own site
<a href="https://agentmods.dev/commands/smicolon/ai-kit/review-ui"><img src="https://agentmods.dev/badge/commands/smicolon/ai-kit/review-ui.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,072 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01072
Opus 5 $0.00018 $0.00536
Sonnet 5 $0.00007 $0.00214
Haiku 4.5 $0.00004 $0.00107

Measured 3d ago against content hash b1df78b8bbd8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

review-ui scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to act — 95 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

packs/react-review/commands/review-ui.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are reviewing the current branch for UI/UX and visual polish ONLY. Ignore code architecture and accessibility unless a visual issue stems from them directly.

Step 0 — Interpret the scope

User argument: $ARGUMENTS

Classify $ARGUMENTS into one of four modes. The first two lines of your output MUST be:

Mode: <whole-branch | path: <p> | feature: <name> | base: <branch>>
Reviewed N files in scope. Found X P0, Y P1, Z P2 findings.
  • Mode A — Whole branch (empty): Review everything changed vs main.
  • Mode B — Path scope (contains / or a known extension like .tsx/.ts/.css, or matches git ls-files $ARGUMENTS): Review only changes inside that path.
  • Mode C — Feature scope (single bareword like auth, preview, env-setup): Find files related to that feature via git ls-files | grep -i <feature> and glob/grep, intersect with the branch diff. Review only those files. If nothing matches, stop and ask the user to clarify.
  • Mode D — Base branch (matches a real branch via git branch -a): Review current branch vs that base instead of main.

If the argument is ambiguous, prefer the branch interpretation if git branch -a confirms it exists.

Step 1 — Scope the diff

Based on the mode:

  • A: git diff main...HEAD --stat
  • B: git diff main...HEAD --stat -- <path>
  • C: Compute the file list from the feature match, diff each relevant file.
  • D: git diff <base>...HEAD --stat

List modified UI files (components, styles, pages, stories). Skip unchanged files entirely.

Step 2 — Inspect each changed file

For every changed component/style file in scope:

  • Read the file in full.
  • If a parent or sibling component is needed for context, read it but do not comment on it.
  • Evaluate against:
    • Visual hierarchy — is the most important element the most prominent?
    • Spacing rhythm — consistent Tailwind spacing scale (or project's design tokens), no magic pixel values?
    • Typography — consistent font sizes, weights, line-heights?
    • Color usage — design tokens vs arbitrary hex? Dark-mode parity if applicable?
    • Interactive states — hover, focus, active, disabled, loading, empty, error all handled?
    • Motion — transitions feel purposeful? Respects prefers-reduced-motion?
    • Iconography — consistent stroke/weight, aligned with text baseline?
    • Density — right level of cramped/airy for the context?
    • Edge cases — long text, zero-state, large numbers, RTL if relevant?

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 88 lines · 37 tokens per session scan A b1df78b8bbd8

Subscribe to this mod's changes

review-ui is a command published in the GitHub repository smicolon/ai-kit (6 stars, last pushed 3d ago), licensed MIT. It adds 37 tokens to every session and 1,072 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to act, differing in 95 lines, and is treated as a copy.