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.
git clone --depth 1 https://github.com/linshidream/skill-hubnpx agentmods add skills/linshidream/skill-hub/ui-prototype-genWrote 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.
[](https://agentmods.dev/skills/linshidream/skill-hub/ui-prototype-gen)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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-lifecycleN3 自检 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 值填充的输出模板。
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.
- adapters/claude-code.md 2.0 KB
- examples/html-prototype-brief.md 583 B
- README.md 2.8 KB
- skill.json 954 B
- templates/curation/design-tokens-说明.md 7.7 KB
- templates/curation/design-tokens.json 4.0 KB
- templates/curation/DESIGN.md-spec-notes.md 8.2 KB
- templates/curation/DESIGN.md.template 5.9 KB
- templates/curation/平台差异.md 1.4 KB
- templates/curation/组件库选型.md 1.7 KB
- templates/curation/设计自检清单.md 2.0 KB
- templates/curation/风格定调.md 1.6 KB
- templates/curation/风格锁.md 2.7 KB
- templates/prototype-skeleton/fragments/action_row.html 435 B
- templates/prototype-skeleton/fragments/breadcrumb.html 433 B
- templates/prototype-skeleton/fragments/descriptions.html 873 B
- templates/prototype-skeleton/fragments/empty.html 1.9 KB
- templates/prototype-skeleton/fragments/form.html 2.1 KB
- templates/prototype-skeleton/fragments/layout.html 3.2 KB
- templates/prototype-skeleton/fragments/metric_cards.html 1.2 KB
- templates/prototype-skeleton/fragments/object_list.html 1.3 KB
- templates/prototype-skeleton/fragments/result.html 879 B
- templates/prototype-skeleton/fragments/steps.html 1.7 KB
- templates/prototype-skeleton/fragments/table.html 2.6 KB
- templates/prototype-skeleton/icons/arrow-left.svg 343 B
- templates/prototype-skeleton/icons/arrow-right.svg 343 B
- templates/prototype-skeleton/icons/bell.svg 468 B
- templates/prototype-skeleton/icons/calendar.svg 408 B
- templates/prototype-skeleton/icons/check.svg 315 B
- templates/prototype-skeleton/icons/chevron-down.svg 319 B
- templates/prototype-skeleton/icons/chevron-left.svg 321 B
- templates/prototype-skeleton/icons/chevron-right.svg 321 B
- templates/prototype-skeleton/icons/chevron-up.svg 319 B
- templates/prototype-skeleton/icons/circle-alert.svg 415 B
- templates/prototype-skeleton/icons/circle-check.svg 361 B
- templates/prototype-skeleton/icons/circle-plus.svg 372 B
- templates/prototype-skeleton/icons/circle-x.svg 372 B
- templates/prototype-skeleton/icons/clock.svg 347 B
- templates/prototype-skeleton/icons/copy.svg 414 B
- templates/prototype-skeleton/icons/credit-card.svg 385 B
- templates/prototype-skeleton/icons/download.svg 397 B
- templates/prototype-skeleton/icons/external-link.svg 416 B
- templates/prototype-skeleton/icons/eye-off.svg 582 B
- templates/prototype-skeleton/icons/eye.svg 434 B
- templates/prototype-skeleton/icons/filter.svg 447 B
- templates/prototype-skeleton/icons/home.svg 458 B
- templates/prototype-skeleton/icons/info.svg 369 B
- templates/prototype-skeleton/icons/loader.svg 511 B
- templates/prototype-skeleton/icons/lock.svg 384 B
- templates/prototype-skeleton/icons/mail.svg 391 B
- templates/prototype-skeleton/icons/menu.svg 354 B
- templates/prototype-skeleton/icons/more-horizontal.svg 398 B
- templates/prototype-skeleton/icons/more-vertical.svg 396 B
- templates/prototype-skeleton/icons/package.svg 568 B
- templates/prototype-skeleton/icons/pencil.svg 454 B
- templates/prototype-skeleton/icons/phone.svg 513 B
- templates/prototype-skeleton/icons/plus.svg 331 B
- templates/prototype-skeleton/icons/refresh-cw.svg 473 B
- templates/prototype-skeleton/icons/save.svg 492 B
- templates/prototype-skeleton/icons/search.svg 352 B
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.
- 1mo ago First seen · 214 lines · 74 tokens per session scan A 1d4ca3ad8b2e
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.
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.
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…
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.
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.
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…
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…