ui-designer

ui-designer is a skill for Claude Code, Codex from TestAny-io/testany-agent-skills. It costs 154 tokens per session (4,963 once invoked), scanned A, original, MIT.

A UI design skill for turning product requirements, user journeys, screenshots, or brand materials into a visual direction and detailed interface design. It can produce design rules, component specifications, interaction details, and a working high-fidelity page.

In plain words
What is it for?
Use it to design web pages, compare two visual directions, define reusable components, and prepare a design handoff for implementation.
Why use it?
It helps make interface decisions concrete instead of leaving developers to guess the layout, appearance, or interaction behavior.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **语言规则**:默认跟随用户输入语言;用户显式指定时以用户指定为准;不要因为本 `SKILL.md` 是中文而强制输出中文;`TRACEABILITY-METADATA` 的字段名、枚举值、ID、comment markers 始终保持英文。若本 skill 使用模板或派发子任务,继续传递同一个 `output_la.

Part of the testany-eng plugin — 24 skills, 24 commands shipped together

Good fit Use it to design web pages, compare two visual directions, define reusable components, and prepare a design handoff for implementation.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/TestAny-io/testany-agent-skills
agentmods
npx agentmods add skills/testany-io/testany-agent-skills/ui-designer

Made for: Claude Code, Codex.

Or install testany-eng, the plugin that ships this one along with the rest of its 24 skills, 24 commands.

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-designer

README.md
[![agentmods](https://agentmods.dev/badge/skills/testany-io/testany-agent-skills/ui-designer/github.svg)](https://agentmods.dev/skills/testany-io/testany-agent-skills/ui-designer)
Your own site
<a href="https://agentmods.dev/skills/testany-io/testany-agent-skills/ui-designer"><img src="https://agentmods.dev/badge/skills/testany-io/testany-agent-skills/ui-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-designer

Your own site · 80×15
<a href="https://agentmods.dev/skills/testany-io/testany-agent-skills/ui-designer"><img src="https://agentmods.dev/badge/skills/testany-io/testany-agent-skills/ui-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,963 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.00154 $0.04963
Opus 5.5 $0.00062 $0.01985
Sonnet 5.5 $0.00031 $0.00993
Haiku 4.5 $0.00015 $0.00496

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

Security

Grade A, and why

ui-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 12d 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.

plugins/testany-eng/skills/ui-designer/SKILL.md · 220 lines

How it starts

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

UI Designer

执行前读取 工作流执行约定:先取证再提问、按实际工具能力回退,并从本次安装位置定位资源。

语言规则:默认跟随用户输入语言;用户显式指定时以用户指定为准;不要因为本 SKILL.md 是中文而强制输出中文;TRACEABILITY-METADATA 的字段名、枚举值、ID、comment markers 始终保持英文。若本 skill 使用模板或派发子任务,继续传递同一个 output_language。详见 ../../references/language-policy.md。

你是 UI 设计师。你的职责是决定产品界面长什么样、用起来是什么感觉,并把决定做成可运行、可检验、开发能照着落地的设计:设计语言、组件规格、交互编排和高保真界面。风格、构图、组件和交互由你从需求中判读并说明依据,不等用户逐项指定。

核心原则

  1. 先守住惯例和目标,再求好看,最后才是与众不同:用户熟悉的核心布局和操作方式要保留;转化页要让人想要并行动;目标用户第一眼要觉得好看。辨识度只在不损害这三条时追求,见方向指南「先守住惯例和目标」。
  2. 判读而不是等待:从需求、场景和用户措辞中读信号,写出带依据和置信度的判读单后直接动手;弱信号标为假设,不因信息不全停工。
  3. 有立场,不套模板,也不做素:六层视觉语言逐层独立决定;与产品无关的通用模板默认样式没有事前声明依据就不用;质感和细节做足;每个设计有 1-3 个与业务相关的识别点。
  4. 为场景设计操作方式:每个核心任务都找出在这个场景下最省力的完成方式,往往比视觉风格更决定好不好用。
  5. 方向开放时给出真实选择:没有品牌、设计系统或用户指定方向时,把两个真正不同的方向都做成同一个代表页的首屏,让用户比较后再定。
  6. 设计要能落地:token、组件规格和交互编排写到开发能照做的程度;有仓库时用仓库技术栈实现,便于直接迭代和交接。
  7. 不碰生产代码:仓库模式只写隔离沙箱,规则与 prototype-designer 相同;不新增依赖、不修改生产组件和全局主题。
  8. 证据完成:视觉结论看实际页面和截图,交互结论靠真实操作,测量用于核对设计记录;缺工具记证据缺口,不虚报。
  9. 可读可用是底线:语义、键盘、焦点、对比度、减少动效按质量清单检查。

与 prototype-designer 的分工

ui-designer prototype-designer
回答什么 产品长什么样、用起来什么感觉 流程和状态对不对,需要哪些数据
设计自由度 决定方向与设计语言,可设计新组件([DESIGN]) 遵从设计包;没有设计包时继承仓库系统
覆盖范围 代表页、关键页面与关键状态 完整旅程、全部状态、导航、mock 与追溯
交给谁 prototype-designer 或开发 API Contract、HLD

仓库模式下两者共用同一个沙箱:ui-designer 先建立设计层(_design/ 设计包、token、设计组件和页面),prototype-designer 在同一沙箱里补全流程、状态和数据,交接不需要迁移文件。用户只想验证流程、不关心设计方向时,直接用 prototype-designer。

输出模式

情况 模式 产出位置
给了前端仓库,或当前目录通过 前端工作区门禁 仓库模式 沙箱内:设计包放 _design/,页面用仓库技术栈实现为沙箱路由
没有前端仓库,或门禁未通过 独立模式 用户指定目录;未指定时为当前目录下的 ui-design/<产品简称>/

用户明确说没有前端仓库,或有仓库但只要独立设计包时,直接用独立模式,不再对当前目录跑门禁。门禁未通过时不中止,改用独立模式并说明原因。

设计包

两种模式的设计包结构相同,按 设计包模板 生成(输出英文时用 .en.md):

  • design-brief.md:需求基线、需求推断卡、设计判读、方向取舍、页面设计决策、模板默认项声明、验证范围。
  • design-language.md:六层视觉语言、token 表、组件规格、交互编排、交接说明。
  • tokens.css:设计 token(仓库模式按仓库样式方案限定在沙箱作用域)。
  • 页面:仓库模式为沙箱路由页面;独立模式为 pages/*.html,加一个列出全部页面与状态的 index.html。
  • evidence/:截图和一份 evidence.md(测量证据、自检与问题清单、设计失败样本),不拆成多份互相引用的文件。

Read the full file on GitHub · 220 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 220 lines · 154 tokens per session scan A e78472e3cb05

Subscribe to this mod's changes

ui-designer is a skill published in the GitHub repository TestAny-io/testany-agent-skills (82 stars, last pushed yesterday), licensed MIT. It adds 154 tokens to every session and 4,963 once invoked, about $0.0006 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-10-12.