ui-spec-designer

ui-spec-designer is an agent for Claude Code from shinpr/claude-code-workflows. It costs 40 tokens per session (1,712 once invoked), scanned A, original, MIT.

An AI agent that turns confirmed product requirements and prototype behavior into detailed user-interface specifications. A UI specification describes screens, components, states, interactions, and accessibility needs.

In plain words
What is it for?
Defining screens and transitions, breaking interfaces into reusable components, documenting state-versus-display behavior, checking existing components, and setting accessibility requirements.
Why use it?
It organizes what the interface must show and do before implementation, including how components behave in different states.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Defining screens and transitions, breaking interfaces into reusable components, documenting state-versus-display behavior, checking existing components, and setting accessibility requirements.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/shinpr/claude-code-workflows/ui-spec-designer/github.svg)](https://agentmods.dev/agents/shinpr/claude-code-workflows/ui-spec-designer)
Your own site
<a href="https://agentmods.dev/agents/shinpr/claude-code-workflows/ui-spec-designer"><img src="https://agentmods.dev/badge/agents/shinpr/claude-code-workflows/ui-spec-designer/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-spec-designer

Your own site · 80×15
<a href="https://agentmods.dev/agents/shinpr/claude-code-workflows/ui-spec-designer"><img src="https://agentmods.dev/badge/agents/shinpr/claude-code-workflows/ui-spec-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 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,712 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.00040 $0.01712
Opus 5.5 $0.00016 $0.00685
Sonnet 5.5 $0.00008 $0.00342
Haiku 4.5 $0.00004 $0.00171

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

Security

Grade A, and why

ui-spec-designer 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-spec-designer.md · 129 lines

How it starts

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

You are a UI specification specialist AI assistant for creating UI Specification documents.

Execution Gate

Before acting, map the preloaded skills to concrete rules for this task. Follow the applicable process below, advancing only when the current step's required evidence is present. Before returning, verify that the result satisfies those rules and the output requirements below.

Main Responsibilities

  1. Analyze confirmed UI requirements and map them to screens, states, and components
  2. Extract screen structure, transitions, and interaction patterns from prototype code (when provided)
  3. Create the complete UI Specification for the confirmed UI scope following references/ui-spec-template.md in the documentation-criteria skill
  4. Define component decomposition with state x display matrices for applicable states
  5. Identify reusable existing components in the codebase
  6. Define accessibility requirements

Input Parameters

  • confirmed_requirement_context: Exact approved PRD path, or the unchanged confirmed convergence record only when no approved PRD exists (required)
  • ui_analysis: UI analysis JSON for existing UI behavior and external evidence (required)
  • codebase_analysis: Applicable codebase analysis evidence (optional)
  • prototype_path: Decision-relevant prototype path (optional, placed in docs/ui-spec/assets/{feature-name}/)
  • prototype_reference_strength: binding or reference, accompanying prototype_path. When a prototype is provided without a strength, use the confirmed requirement context if it establishes the strength; otherwise record the unresolved strength in Prototype Management and the existing decision-blocking Open Items, and continue work independent of that decision.
  • external_resource_refs: Selected external-resource records or an empty array (optional)

Mandatory Process Before UI Spec Creation

Step 1: Requirement Analysis

  1. Read and understand the confirmed requirement context
    • Extract confirmed UI behaviors and acceptance criteria; preserve existing AC IDs when present
    • Identify screens/views implied by user stories and requirements
    • Note accessibility requirements and UI quality metrics from the confirmed context

Read the full file on GitHub · 129 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 f8f27d2d7091
  2. 1mo ago Changed · +4 lines 1e87b671c370
  3. 1mo ago Changed 59a41f28d931
  4. 1mo ago Changed · +3 lines 16b08a89e0e6
  5. 1mo ago First seen · 122 lines · 40 tokens per session scan A 4852319de5aa

Subscribe to this mod's changes

ui-spec-designer is an agent published in the GitHub repository shinpr/claude-code-workflows (698 stars, last pushed 4d ago), licensed MIT. It adds 40 tokens to every session and 1,712 once invoked, about $0.0002 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

Other agents, from other repositories

accessibility-auditor

WCAG 2.1 compliance, screen readers, keyboard navigation, color contrast.

Yassinello/claude-plugin-prd-workflow · 22 tokens

evolve-accessibility-audit

Accessibility audit agent for the Evolve Loop (Evaluate archetype). The advisor INSERTS this phase after build whenever scout.goaltype == "accessibility" to adversarially review changed UI/HTML/React against WCAG 2.1/2.2 AA.

mickeyyaya/evolve-loop · 61 tokens

evolve-frontend-design-review

Adversarial frontend design review agent for the Evolve Loop (Evaluate archetype). The advisor INSERTS this phase after Build whenever scout.goaltype == "frontend-ui", to judge changed UI for production-grade design quality and BLOCK on design-system violations or broken responsive states.

mickeyyaya/evolve-loop · 61 tokens

design-reviewer

Reviews design documents with fresh context for weak decisions, missing trade-offs, and contracts that are not implementable.

rjroy/vibe-garden · 26 tokens

usability-auditor

Runs a full usability audit on an interactive mockup or prototype — derives personas and use cases, walks every workflow end to end, hunts for process gaps, audits AI-task progress visibility and content necessity, and writes a detailed usability report. Use when asked to usability-test, audit, or pressure-test a…

Evolvlabsai/Exolvra-Genesis · 82 tokens

design-iterator

Iteratively refines UI through screenshot-analyze-improve cycles. One change per iteration, includes competitor research. Polishing working implementations that don't feel right. The one-change-per-cycle discipline prevents over-engineering. Anti-AI-slop guidance produces distinctive designs.

qGolem/orc · 55 tokens