ui-spec-designer

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

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/shinpr/claude-code-workflows/ui-spec-designer
Clone the repo
git clone --depth 1 https://github.com/shinpr/claude-code-workflows
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,476 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.00040 $0.01476
Opus 5 $0.00020 $0.00738
Sonnet 5 $0.00008 $0.00295
Haiku 4.5 $0.00004 $0.00148

Measured 2d ago against content hash 4852319de5aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

agents/ui-spec-designer.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 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 analyzer JSON for existing UI behavior and external evidence (required)
  • codebase_analysis: Applicable codebase-analyzer evidence (optional)
  • prototype_path: Decision-relevant prototype path (optional, placed in docs/ui-spec/assets/{feature-name}/)
  • 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
  2. Classify ACs by UI relevance

    • Which ACs map to specific screens or user interactions
    • Which ACs imply state transitions or error handling

Read the full file on GitHub · 122 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 · 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 (675 stars, last pushed 5d ago), licensed MIT. It adds 40 tokens to every session and 1,476 once invoked, about $0.0002 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-30.