html-prototype

html-prototype is a skill for Claude Code from mayuemarsha-del/pm-skills. It costs 97 tokens per session (11,691 once invoked), scanned A, original, MIT.

A method for creating single-file HTML mockups that open in a browser and follow a project's design tokens, such as its fonts, colours, spacing, corners, and shadows.

In plain words
What is it for?
It is for making or redesigning browser-based product prototypes from a PRD, including pages with states such as lists, details, and dialogs.
Why use it?
It gives developers a concrete page to review for a product requirement before building the final interface, while keeping the visual choices consistent.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the pm-skills plugin — 7 skills shipped together

Good fit It is for making or redesigning browser-based product prototypes from a PRD, including pages with states such as lists, details, and dialogs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mayuemarsha-del/pm-skills/html-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 mayuemarsha-del/pm-skills --skill html-prototype
Clone the repo
git clone --depth 1 https://github.com/mayuemarsha-del/pm-skills

Made for: Claude Code.

Or install pm-skills, the plugin that ships this one along with the rest of its 7 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mayuemarsha-del/pm-skills/html-prototype"><img src="https://agentmods.dev/badge/skills/mayuemarsha-del/pm-skills/html-prototype.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 11,691 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.00097 $0.11691
Opus 5 $0.00048 $0.05846
Sonnet 5 $0.00019 $0.02338
Haiku 4.5 $0.00010 $0.01169

Measured 8d ago against content hash 92cbe8369803, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

html-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 8d 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/html-prototype/SKILL.md · 679 lines

How it starts

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

  1. HTML Prototype Generation

    Generate single-file HTML prototypes that can be opened directly in browser, look like real products, and align with the user's design system.

    Important: this skill expects a references/example-tokens.css file with the user's design tokens (colors, fonts, radii, shadows, etc.). Replace it with your own company's tokens before using this skill in production, otherwise all prototypes will share the example brand colors.

  2. When to use

    2.1. User asks for: 原型 / mockup / 设计图 / HTML 给前端 / 给前端看的页面。 2.2. User asks to redesign an existing prototype to match a reference design. 2.3. Output is referenced from PRD .md files via file:/// link or [name](prototype/foo.html) markdown link.

  3. Output location

    Always save to <PRD-module>/prototype/<page-name>.html, beside the PRD .md file. Create the prototype/ subdirectory if missing.

    Naming: <module>-<view>.html (e.g. agent-management.html, reception-detail.html, knowledge-list.html). One file per module is preferred — use page-switching JS to handle multiple states (list / detail / modal). Multiple files only when modules are unrelated.

  4. Tech stack (always these three CDNs, no build)

    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=YourFontHere:wght@400;500;600;700&display=swap" rel="stylesheet">
    

    After page load, call lucide.createIcons() to render icons.

  5. Inline the canonical tokens file

    Always copy the full contents of references/example-tokens.css (or whatever the user has replaced it with) into the prototype's <style> block at the top. This gives you all CSS variables (--neutral-*, brand scales, semantic tokens, type, spacing, radii, shadows) plus baseline typography.

    Then layer prototype-specific component CSS below it, referencing tokens via var(--token) rather than hardcoded hex.

    Example skeleton:

    <style>
      /* PASTE ENTIRE references/example-tokens.css HERE */
      :root { ... }
      html, body { font-family: var(--font-sans); ... }
      h1, h2, h3 ...
    
      /* Then prototype-specific components */
      .btn { background: var(--primary); color: var(--primary-foreground); border-radius: var(--radius-md); ... }
      .card { background: var(--card); border: var(--border-100) solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); ... }
    </style>
    
  6. Design System Application

    The actual color values, font names, radii, etc. live in references/example-tokens.css. This section is about how to apply them, not what the specific values are.

    6.1. Fonts (order matters for CJK + Latin)

    If the product supports Chinese, put CJK font FIRST so Chinese characters render natively while Latin characters fall through to the Latin sans:

    "PingFang SC", "Geist", "Inter", system-ui, -apple-system, sans-serif
    

    Don't reverse this order — Latin glyphs in PingFang look thin / weak. Adjust based on your tokens file.

    Role Typical family When
    Sans (default) CJK + Latin sans All UI, body, headings
    Mono Monospace (e.g. B612 Mono / JetBrains Mono) IDs, code, numbers in tables
    Serif Optional display Marketing / hero only

    Body: 16px / 24px line-height (--text-base / --lh-base). Use var(--text-sm) (14/20) for compact UI like sidebars or table cells.

    6.2. Tailwind CDN preflight conflict

    Tailwind CDN injects @layer base { h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; } } AFTER your <style> block. This kills semantic heading styles unless you use !important on the base typography rules:

    h1,.h1 { font-size: var(--text-2xl) !important; ... }
    h2,.h2 { font-size: var(--text-xl) !important; ... }
    

Read the full file on GitHub · 679 lines

Files

What ships with it

1 file 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. 8d ago First seen · 679 lines · 97 tokens per session scan A 92cbe8369803

Subscribe to this mod's changes

html-prototype is a skill published in the GitHub repository mayuemarsha-del/pm-skills (3 stars, last pushed 3mo ago), licensed MIT. It adds 97 tokens to every session and 11,691 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-31.

Related

Other skills, from other repositories

html-demo

A workflow for building a self-contained interactive HTML demo from a screenshot and a short requirement. The demo imitates the interface and includes simulated controls so its states can be explored.

ryanzhao1011/workframe · 85 tokens

top-design

Create award-winning, immersive web experiences at the level of Awwwards-featured agencies. Use when the user mentions "Awwwards quality", "make my site stunning", "scroll animations", "parallax storytelling", "cinematic web design", "portfolio site", or "brand experience". Also trigger when elevating a standard…

wondelai/skills · 113 tokens

web-typography

Select, pair, and implement typefaces for web projects. Use when the user mentions "font pairing", "which typeface", "line height", "responsive typography", "web font loading", "type hierarchy", "variable fonts", "FOUT/FOIT", "typographic scale", or "the text is hard to read". Also trigger when choosing between system…

wondelai/skills · 128 tokens

refactoring-ui

Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions "my UI looks off" (or amateur/unprofessional), "fix the design", "Tailwind styling", "color palette", "visual hierarchy", "design system", "spacing scale", or "component styling". Also trigger when building consistent…

wondelai/skills · 132 tokens

impeccable

Provides premium design vocabulary, supporting Google Stitch spec-based DESIGN.md / PRODUCT.md and anti-pattern slop removal.

parisgroup-ai/imersao-ia-setup · 27 tokens

web-design

A guide to designing websites and user interfaces, including layouts, colors, typography, spacing, and component systems.

kevinaimonster/skill-hub · 101 tokens