prototype-design-html

prototype-design-html is a skill for Claude Code, Codex from BeWaterMyFriend7/SKILL-PROJECT. It costs 93 tokens per session (1,105 once invoked), scanned A, original, Apache-2.0.

A guide for creating simple, self-contained HTML prototypes from natural-language requirements. An HTML prototype is a browser-openable mockup used to test page structure and interactions before building the finished product.

In plain words
What is it for?
Use it to create interactive web, admin, UI, and product prototypes with navigation, forms, states, and basic browser checks.
Why use it?
It turns requirements into a defined set of pages and user tasks, helping teams check the main workflow before committing to a full frontend.

Skill for Claude CodeCodex

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 skills/bewatermyfriend7/skill-project/prototype-design-html
Any agent
npx skills add BeWaterMyFriend7/SKILL-PROJECT --skill prototype-design-html
Clone the repo
git clone --depth 1 https://github.com/BeWaterMyFriend7/SKILL-PROJECT

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/bewatermyfriend7/skill-project/prototype-design-html.svg)](https://agentmods.dev/skills/bewatermyfriend7/skill-project/prototype-design-html)
Your own site
<a href="https://agentmods.dev/skills/bewatermyfriend7/skill-project/prototype-design-html"><img src="https://agentmods.dev/badge/skills/bewatermyfriend7/skill-project/prototype-design-html.svg" alt="Measured on agentmods" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,105 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.1 $0.00093 $0.01105
Opus 5 $0.00046 $0.00553
Sonnet 5 $0.00019 $0.00221
Haiku 4.5 $0.00009 $0.00111

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

Security

Grade A, and why

prototype-design-html 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 5d 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.

.opencode/skills/prototype-design-html/SKILL.md · 71 lines

What it actually says

HTML 原型生成器

生成用于需求沟通和交互验证的简约 Web 原型。默认采用扁平设计,不把原型包装成高装饰性的正式 UI。

必读资源

  • 分析页面、交互和视觉要求前读取 references/prototype-dsl.md
  • 生成时以 templates/web-prototype.html 为结构参考,不直接照搬模板业务内容。
  • 需要完整案例时读取 examples/red-packet-prototype.html

强制流程

需求分析 → 页面与任务规划 → 详细自然语言 DSL → 匹配基础模板 → 生成 HTML → 结构与交互检查 → 浏览器渲染检查 → 修正并交付

1. 分析需求

明确原型目的、用户角色、核心任务、页面范围、设备类型、保真度、主题、交互深度和输出路径。用户提供需求文档时读取该文档;未提供时直接分析当前需求,不依赖固定默认文件。

区分用户确认事实、合理补充和不能擅自推断的业务规则。页面或核心操作不明确且会改变结果时再询问用户。

2. 规划页面与任务

列出页面清单、全局导航、每个页面的主要任务以及页面之间的跳转。先保证核心任务闭环,再增加次要页面。普通后台原型通常覆盖列表、详情、创建或编辑以及必要的状态反馈。

3. 生成详细自然语言 DSL

references/prototype-dsl.md 描述全局布局、页面区域、组件、文案、示例数据、交互、状态和检查要求。DSL 不强制落盘,不使用 JSON、JSON Schema 或 DiagramPlan。

完成条件:只阅读 DSL 即可还原页面结构和主要交互,HTML 阶段不再猜测页面意图。

4. 匹配基础模板

使用 templates/web-prototype.html 的设计令牌、页面骨架和基础组件。根据需求删除、替换或重组区域,禁止为了保留模板而输出无业务意义的导航、卡片或空容器。

5. 生成 HTML

  • 默认生成单个自包含 .html,内嵌 CSS 和 JavaScript。
  • 不依赖 React、Vue、npm 工程、CDN、在线字体或远程图片。
  • 默认浅色;用户明确要求时再生成深色或品牌主题。
  • 默认无阴影、渐变、网格、玻璃效果和装饰性插画。
  • 页面允许纵向滚动,不把全部内容强行压进一屏。
  • 仅在需求明确需要跨刷新保留状态时使用 localStorage
  • 不把每个区域都包装成卡片,边界只用于帮助理解结构。

6. 结构与交互检查

检查页面清单、导航、按钮、标签页、弹窗、表单校验和状态反馈是否完整;检查重复 ID、空链接、失效按钮、不可关闭弹窗和不可恢复状态。核心任务必须可以从入口执行到完成或失败反馈。

7. 浏览器渲染检查

在真实浏览器中打开 HTML,至少检查一个主流桌面视口。复杂页面同时检查 1440×810 和 1280×720。验证浏览器控制台、页面切换、表单、弹窗和关键操作。

视觉检查必须覆盖:颜色对比、布局均衡、元素重叠、文字清晰、组件对齐、间距一致、内容拥挤和大面积空白。失败时返回布局或 DSL 阶段修正,不得通过缩小字体或无意义扩大页面规避问题。

简约视觉基线

  • 使用系统字体、1px 边框、4–6px 圆角和 4/8px 间距体系。
  • 主色只用于主要操作和当前状态;成功、警告、错误色仅用于对应语义。
  • 页面标题、区域标题和正文形成清楚的三级层级。
  • 默认不使用阴影;确有浮层层级时也优先使用边框和遮罩表达。
  • 保持同类按钮、输入框、表格行和标签样式一致。

输出

输出到用户指定目录;未指定时输出到项目根目录 output/prototype/html。默认只交付最终 .html 路径,并说明页面范围、主题及交互和渲染验证结果。不交付 README、中间 DSL 或临时截图,除非用户明确要求。

Files

What ships with it

3 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. 5d ago First seen · 71 lines · 93 tokens per session scan A fffcd53d903e

Subscribe to this mod's changes

prototype-design-html is a skill published in the GitHub repository BeWaterMyFriend7/SKILL-PROJECT (51 stars, last pushed 2d ago), licensed Apache-2.0. It adds 93 tokens to every session and 1,105 once invoked, about $0.0005 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens