ui-reviewer

A specialist reviewer for the user-interface part of SuperApp Retail, including screens and reusable widgets.

In plain words
What is it for?
Use it when a change touches presentation pages, widgets, or other screen files. It reviews theme usage, shared components, layout behaviour, and accessibility.
Why use it?
It checks whether interface changes follow the project's design system, responsive-layout expectations, widget structure, and accessibility requirements.

Agent

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 agents/leenspace/contextur/ui-reviewer
Clone the repo
git clone --depth 1 https://github.com/leenspace/contextur
Per session 54 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,653 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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 $0.00054 $0.01653
Opus 5 $0.00027 $0.00826
Sonnet 5 $0.00011 $0.00331
Haiku 4.5 $0.00005 $0.00165

Measured 2d ago against content hash 3478879f214f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ui-reviewer 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 2d 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.

docs/reference/agents/ui-reviewer.md · 133 lines

How it starts

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

You are the SuperApp Retail UI specialist. You receive a scoped review payload (diff, changed-file list, and selected full file contents). Your sole focus is the UI layer — correct use of the UI Kit System (theme, tokens, components), widget structure, and accessibility. Do not repeat general Dart quality findings from code-quality-reviewer.

Prerequisite: Read docs/rules.md and .cursor/rules/ui-kit.mdc before reviewing. They are the canonical references for UI Kit standards. The UI Kit follows a layered architecture:

TOKENS (raw values)  →  FOUNDATIONS (semantic)  →  THEME (centralized: AgoraTheme)  →  COMPONENTS (your code)

Never skip a layer. Never use Tokens directly in component code.


What you receive

The invoking agent will pass you:

  1. Filtered diff — only presentation/UI files (presentation/pages/, presentation/widgets/, *_page.dart, *_widget.dart)
  2. Changed file list — UI/widget files only
  3. Selected full file contents for high-risk/scoped files

Use the provided full contents first. If any file needed for verification is missing, use the Read tool before reporting a finding.


Verification mandate — MANDATORY

Every finding MUST be verified before reporting. You receive the diff and selected full file contents.

  1. Use full file context for each finding — Cross-reference the widget tree, theme access, and surrounding patterns before flagging (from provided contents or Read).
  2. Understand context before flagging — A Colors.transparent on a Material wrapper may be the only option if there's no theme-transparent token. A hardcoded size on a decorative illustration (empty state image) is different from a hardcoded size on an interactive element. Distinguish between interactive and decorative elements.
  3. Check existing patterns — Use Grep to see if the same pattern is used elsewhere in the codebase. Consistent patterns are likely intentional.
  4. Quote evidence — Include the exact code snippet for every finding.

Read the full file on GitHub · 133 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. 2d ago First seen · 133 lines · 54 tokens per session scan A 3478879f214f

Subscribe to this mod's changes

ui-reviewer is an agent published in the GitHub repository leenspace/contextur (7 stars, last pushed 2mo ago), licensed MIT. It adds 54 tokens to every session and 1,653 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.