ui-prototype-gen

ui-prototype-gen is a skill for Claude Code, Codex from linshidream/skill-hub. It costs 74 tokens per session (5,034 once invoked), scanned A, original, MIT.

A generator for clickable static HTML interface prototypes used for customer review and sign-off.

In plain words
What is it for?
Use it to create high-fidelity prototype screens, click-through flows, visual tokens, and interface states from requirements and feedback.
Why use it?
It lets people agree on screens and interactions before real application code, databases, or backends are built.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/validate-skill.py ui-prototype-gen.

Good fit Use it to create high-fidelity prototype screens, click-through flows, visual tokens, and interface states from requirements and feedback.

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/linshidream/skill-hub
agentmods
npx agentmods add skills/linshidream/skill-hub/ui-prototype-gen

Made for: Claude Code, Codex.

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-prototype-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/linshidream/skill-hub/ui-prototype-gen/github.svg)](https://agentmods.dev/skills/linshidream/skill-hub/ui-prototype-gen)
Your own site
<a href="https://agentmods.dev/skills/linshidream/skill-hub/ui-prototype-gen"><img src="https://agentmods.dev/badge/skills/linshidream/skill-hub/ui-prototype-gen/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-prototype-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/linshidream/skill-hub/ui-prototype-gen"><img src="https://agentmods.dev/badge/skills/linshidream/skill-hub/ui-prototype-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,034 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.00074 $0.05034
Opus 5.5 $0.00030 $0.02014
Sonnet 5.5 $0.00015 $0.01007
Haiku 4.5 $0.00007 $0.00503

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

Security

Grade A, and why

ui-prototype-gen 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 1mo 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.

skills/product/ui-prototype-gen/SKILL.md · 214 lines

How it starts

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

UI Prototype Generator

目标

ui-prototype-gen 为 product-lifecycle 生成客户可评审、可签字的 UI 演示物。默认档位是高保真原型档(antd5);团队/专业模式可预留 open-design 生成档。

本 skill 生成的是签字锚点,不是真代码 demo。除非用户明确要求,否则不要启动全栈应用、不要接数据库、不要调用真实后端。

档位

档位 使用场景 产出
高保真原型档(antd5) OPC/单人软开默认 演示原型/:antd5 预构建静态产物(真实 build 的全量 CSS + 组件实例片段库)+ cssVar tokens 覆盖 + Lucide SVG 图标 + 多屏点击流
open-design 生成档 传统团队或专业设计流程 由本地 open-design app 生成设计产物;当前只保留 adapter 占位

高保真原型档为"还原参照契约"——product → dev 的第三类正式 handoff 材料(与 需求签字记录.md、DESIGN.md 并列)。前端据其视觉/交互 + DESIGN.md token,用 antd5 真实组件重写,不照搬静态 DOM(静态 DOM 与 React 组件树+状态有不可消除 gap)。还原优先级与可接受偏差见 opc-sw-flow Handoff 段。

注(升格有效性寄生预构建深度):本档位"高保真"指基于 antd5 真实 build 产物(happy-dom 提取的组件库全量 CSS + 组件实例片段),不是仿 antd 视觉手写 CSS。若起手包降级为手写仿制,则升格为假升格——前端据"仿 CSS"无法用 antd5 真实组件对齐还原,会误导前端。重资产(antd.static.css)靠 release 分发,不入源码 git。

输入

最少需要:

  • 客户需求原文或摘要。
  • 目标用户和业务目标。
  • 核心页面/流程。
  • 必须展示的字段、状态、按钮和异常/空态。
  • 期望输出目录,默认 演示原型/。

修订轮还应输入上一轮原型路径和客户反馈。若信息不足,每次只问一个最影响原型生成的问题。

部署模式从 product state 的 engagement.mode 或上层 opc-sw-flow.mode 读取:opc 默认高保真原型档(antd5),team 可尝试团队档;open-design 未核实时回退高保真原型档或暂停确认。

设计策展层

演示物质量不靠客户兜底。生成原型前先过策展层四层有序选型——上游定下游,禁跳层。策展层是 product 流的承重墙,状态机(见 product-lifecycle)只是脚手架。

层 类比后端 输出
① 风格定调 选架构 一句风格定调句(高级极简 / 商务高密度 / 活泼移动 / 科技)
② 组件库选型 选 DB/中间件 平台=硬过滤,风格=软偏好
③ tokens 调参数 色板 / 字阶 / 间距 / 圆角 / 阴影,含量化阈值
④ 设计自检 压测验收 8 项 gate,pass 才生成原型

有序性:跳到选组件、跳过定调 = 设计错误。平台先按端筛(硬过滤),再按风格选(软偏好)。

每层产物落在 templates/curation/:

  • 风格定调.md:四档定调的判断依据与示例句。
  • 组件库选型.md:组件库活跃度(2026-07 查证)与按端筛选规则。
  • design-tokens.json + design-tokens-说明.md:三套 preset(高级极简 / 商务高密度 / 活泼移动);说明.md 末尾「→ DESIGN.md 映射」节给出 tokens → DESIGN.md frontmatter/body 的逐字段映射。
  • 设计自检清单.md:8 项 gate,同时作为 product-lifecycle N3 自检 gate 的检查依据。
  • 平台差异.md:Web / 小程序 / 移动端的硬过滤差异。
  • DESIGN.md-spec-notes.md:Google Labs DESIGN.md spec 亲读笔记(读取日期 2026-07-07,version alpha),字段溯源依据。
  • DESIGN.md.template:按 spec frontmatter+body 结构、用商务高密度 preset 值填充的输出模板。

Read the full file on GitHub · 214 lines

Files

What ships with it

60 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. 1mo ago First seen · 214 lines · 74 tokens per session scan A 1d4ca3ad8b2e

Subscribe to this mod's changes

ui-prototype-gen is a skill published in the GitHub repository linshidream/skill-hub (20 stars, last pushed 1mo ago), licensed MIT. It adds 74 tokens to every session and 5,034 once invoked, about $0.0003 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-09-15.

Related

Other skills, from other repositories

anti-slop-design

Autonomous Principal Design Technologist. Cures vibe-coded software from AI frontend slop using curated token archetypes and 7-axis quality gating.

sickn33/agentic-awesome-skills · 34 tokens

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 52 tokens

frontend-ui-dark-ts

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

microsoft/skills · 48 tokens

open-design-setup

Prepare or repair a project's prototyping environment so open-design can build prototypes with the project's own component library and render them through the project's toolchain. Use when the library target is needed and docs/design/prototyping.md is missing, stale, or failing; excludes HTML-only design work and…

compozy/compozy · 67 tokens

frontend-visual-qa

Audits rendered UI and specific task/object-link handoffs; excludes ordinary source citations alone. Audits already-rendered UI and Markdown/Obsidian image layout — web app, deck/slide, dashboard, design-system, or Electron/native app — via real-browser/native-app journeys and a Playwright sweep. Use after UI…

daymade/claude-code-skills · 125 tokens