design-prototype

design-prototype is a skill for Claude Code from huiliyi37/Tianshu-harness. It costs 28 tokens per session (775 once invoked), scanned A, original, Apache-2.0.

A frontend prototype workflow for exploring website directions, building HTML previews, and checking how designs behave on different screen sizes.

In plain words
What is it for?
Use it to create mobile-first prototypes, preview mobile, tablet, and desktop layouts, audit responsiveness, extract colors, and compare a design with a reference.
Why use it?
It turns an interface idea or reference image into testable previews and identifies layout problems before delivery.

Skill for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: mentions Codex.

Good fit Use it to create mobile-first prototypes, preview mobile, tablet, and desktop layouts, audit responsiveness, extract colors, and compare a design with a reference.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huiliyi37/tianshu-harness/design-prototype
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.

Any agent
npx skills add huiliyi37/Tianshu-harness --skill design-prototype
Clone the repo
git clone --depth 1 https://github.com/huiliyi37/Tianshu-harness

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/huiliyi37/tianshu-harness/design-prototype/github.svg)](https://agentmods.dev/skills/huiliyi37/tianshu-harness/design-prototype)
Your own site
<a href="https://agentmods.dev/skills/huiliyi37/tianshu-harness/design-prototype"><img src="https://agentmods.dev/badge/skills/huiliyi37/tianshu-harness/design-prototype/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 design-prototype

Your own site · 80×15
<a href="https://agentmods.dev/skills/huiliyi37/tianshu-harness/design-prototype"><img src="https://agentmods.dev/badge/skills/huiliyi37/tianshu-harness/design-prototype.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 775 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00028 $0.00775
Opus 5 $0.00014 $0.00387
Sonnet 5 $0.00006 $0.00155
Haiku 4.5 $0.00003 $0.00077

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

Security

Grade A, and why

design-prototype 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/design/skills/design-prototype/SKILL.md · 76 lines

What it actually says

Design Prototype(前端设计原型)

对标 Codex Product Design 插件的方法论,适配天枢交付纪律。

工作流

1. 意图澄清(单问约束)

开始动手前,若以下任一项不明,只问一个最关键的问题

  • 目标用户与核心动作(注册?购买?浏览?)
  • 品牌调性(极简 / 企业 / playful / 暗色)
  • 有无参考(竞品截图、Figma 链接描述、色板)

不要一次抛多个选择题。

2. 探索 2–3 个视觉方向

每个方向输出单文件 HTML 原型

  • 内联 CSS(无构建步骤,即开即预览)
  • 语义化 HTML + 基础可访问性(label、alt、focus 可见)
  • 真实文案占位(不用 lorem 堆砌——用场景化假数据)
  • 移动端优先,desktop 用 media query 扩展

文件命名:prototype-{direction}.html(如 prototype-minimal.html

3. 多视口自检(必做)

每个方向完成后:

  1. ui_preview — mobile / tablet / desktop 三视口截图
  2. ui_responsive_audit — 抓横向溢出、过小点击区、过小字号

有问题先修 HTML,再进入下一步。不要带着 overflow 交付。

4. 参考对齐(有 mockup 时)

用户提供参考图或竞品截图时:

  1. ui_palette — 从参考图提取色板,写入 CSS variables
  2. 实现后 ui_diff — 与参考/mockup 像素对比,目标 mismatch < 5%
  3. mismatch > 5% 必须迭代,不能口头说「差不多」

5. 交付纪律(复现即证明)

交付设计任务时必须附带

  • 至少一组三视口 ui_preview 截图路径
  • ui_responsive_audit 结果(零 high 级 issue,或明确列出已知遗留)
  • 若有参考:最新 ui_diff mismatch 百分比

口头描述「已经 responsive 了」不算交付。

工具速查

工具 何时用
ui_preview HTML/URL → 多视口 PNG
ui_diff 实现 vs 参考 mockup
ui_palette 参考图 → CSS/Tailwind tokens
ui_responsive_audit 布局问题清单 + 截图

反模式

  • 不要跳过 preview 直接改 CSS 猜效果
  • 不要用 <table> 做整页布局(2020 年代前的 hack)
  • 不要在未装 tianshu-design 插件时会话里调用上述工具——先 /plugin install 或让用户安装
  • Chrome 未安装时工具会返回明确错误;提示用户安装 Chrome 或设置 CHROME_PATH
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 · 76 lines · 28 tokens per session scan A 39894b6a1db6

Subscribe to this mod's changes

design-prototype is a skill published in the GitHub repository huiliyi37/Tianshu-harness (665 stars, last pushed yesterday), licensed Apache-2.0. It adds 28 tokens to every session and 775 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

frontend-design

Produce intentional, responsive, accessible UI work and perform visual QA instead of generic component assembly.

Hmbown/CodeWhale · 21 tokens

frontend-design

A design and coding guide for building distinctive web interfaces, including pages, dashboards, landing pages, and reusable components.

itmisx/deepx-code · 88 tokens

frontend-design-saas

S-tier SaaS dashboard and product UI reference. Use this skill when building application shells, data tables, settings panels, billing pages, dashboards, auth flows, admin tools, or any internal/customer-facing SaaS product UI. Inspired by Stripe, Linear, Vercel, Airbnb, Notion. Covers neutral-led design tokens…

cloudflare/vibesdk · 105 tokens

ui-features

Implementing UI/UX features in sidecar including modals (internal/modal library), keyboard shortcuts, mouse support, scrolling, pill/tab rendering, and pane resizing. Use when implementing UI features, handling user input, adding keyboard shortcuts, building modals, or working on UX improvements.

marcus/sidecar · 61 tokens

drag-pane

Drag-and-drop pane resizing implementation for two-pane plugin layouts. Covers mouse event handling via the internal/mouse package, hit region registration, drag delta calculation, width clamping, state persistence, and pane layout management. Use when working on pane resizing, drag interactions, layout management, or…

marcus/sidecar · 70 tokens

write-zot-themes

Help the user create, install, or package zot themes, including theme-only extensions.

patriceckhart/zot · 23 tokens