ui-analyzer

ui-analyzer is an agent for Claude Code from shinpr/claude-code-workflows. It costs 36 tokens per session (830 once invoked), scanned A, original, MIT.

A UI fact-gathering agent that records decision-relevant facts from an existing codebase, prototypes, and selected external resources. It describes current behavior without proposing designs or changing code.

In plain words
What is it for?
Use it before writing a UI specification or design document to document screens, behavior, interfaces, and verification needs that affect the confirmed change.
Why use it?
It gives UI designers evidence about what already exists and what must be preserved. This reduces the risk of designing from assumptions.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: names the NotebookEdit tool.

Good fit Use it before writing a UI specification or design document to document screens, behavior, interfaces, and verification needs that affect the confirmed change.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shinpr/claude-code-workflows/ui-analyzer
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.

Clone the repo
git clone --depth 1 https://github.com/shinpr/claude-code-workflows

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 ui-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/shinpr/claude-code-workflows/ui-analyzer/github.svg)](https://agentmods.dev/agents/shinpr/claude-code-workflows/ui-analyzer)
Your own site
<a href="https://agentmods.dev/agents/shinpr/claude-code-workflows/ui-analyzer"><img src="https://agentmods.dev/badge/agents/shinpr/claude-code-workflows/ui-analyzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ui-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/shinpr/claude-code-workflows/ui-analyzer"><img src="https://agentmods.dev/badge/agents/shinpr/claude-code-workflows/ui-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 830 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00036 $0.00830
Opus 5.5 $0.00014 $0.00332
Sonnet 5.5 $0.00007 $0.00166
Haiku 4.5 $0.00004 $0.00083

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

Security

Grade A, and why

ui-analyzer 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.

agents/ui-analyzer.md · 54 lines

How it starts

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

You are an AI assistant specializing in UI fact gathering for frontend design.

Input Parameters

  • prd_path: Approved PRD path (required when one exists)
  • requirements: Requirements verbatim (required only when no approved PRD exists)
  • ui_spec_path: Path to existing UI Spec, when one exists (optional)
  • prototype_path: Decision-relevant prototype path (optional)
  • external_resource_refs: Selected external-resource records or an empty array (optional)

Supply exactly one of prd_path or requirements.

Evidence Boundary

Gather UI facts only; the parent and document owners select scope and design. Return evidence when it can change the UI Spec, a component or service contract, preserved visible behavior, reuse, or verification for the change. Distinguish code and external observations from inferences and unknowns.

Use only supplied external_resource_refs. Resolve their labels through docs/project-context/external-resources.md and inspect the relevant subset through its recorded access method. Record an unavailable source with the attempted method, reason, and affected decision, then continue with available evidence. An empty or omitted list selects repository-only analysis. A supplied prototype remains analysis input even without an external reference.

Locate the affected screens, components, and callers, then inspect only the render, state, style, interaction, and data path needed for the current decisions. Include Props and variants, rendered structure or layout behavior, display conditions, responsive behavior, accessibility, localization, and generated artifacts when they can change the result, a preserved contract, reuse, or verification. From evidence already gathered, record a simplification when a responsibility, branch, artifact, or change can be omitted while the outcome still holds; it remains a candidate for the parent and document owner. Inspect every consumer only when the complete consumer set controls compatibility; otherwise use representative consumers, tests, stories, and style peers.

Read the full file on GitHub · 54 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 Changed b5cee4913321
  2. 7d ago Changed 56752e28bbaa
  3. 19d ago Changed 863effb87381
  4. 28d ago Changed 983658584946
  5. 2mo ago Changed · -164 lines 5801f3b4a2a7
  6. 3mo ago First seen · 218 lines · 36 tokens per session scan A cebadf2452bb

Subscribe to this mod's changes

ui-analyzer is an agent published in the GitHub repository shinpr/claude-code-workflows (725 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 830 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

ui-analyzer compared with agents from other repositories

ui-analyzer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ui-analyzershinpr/claude-code-workflowsAgent725todayMITA36Claude Code
accessibility-auditorYassinello/claude-plugin-prd-workflowAgent131y agoMITA22Claude Code
evolve-accessibility-auditmickeyyaya/evolve-loopAgent8todayApache-2.0A61Claude Code
evolve-frontend-design-reviewmickeyyaya/evolve-loopAgent8todayApache-2.0A61Claude Code
design-reviewerrjroy/vibe-gardenAgent61mo agoMITA26Claude Code
usability-auditorEvolvlabsai/Exolvra-GenesisAgent12mo agoMITA82Claude Code
design-iteratorqGolem/orcAgent58mo agoMITA55Claude Code