savinofiore/agent-skills/html-mockup

Claude Code and agent skill by savinofiore/agent-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Produce a screen mockup as one self-contained static HTML file that the Flutter and Next.js engineers turn into code — design tokens as CSS variables, every state of the screen, mobile and desktop frames, annotations for what HTML cannot show. Use when a task asks for a new screen, a redesign, or a mockup before implementation.

Install

npx vskill@latest install savinofiore/agent-skills/html-mockup

SKILL.md

The same SKILL.md was published earlier as savinofiore/agent-skills/html-mockup.

HTML Mockup

A mockup is a contract between the designer and the engineer who builds the screen. HTML, because it opens in any browser, shows real spacing and type, and both stacks can read it. Not ASCII: it loses spacing, hierarchy and states, which are exactly what the engineer needs.

A mockup is not production code. Engineers rebuild it with the project's components; they do not paste it. So optimise for clarity, not for reuse.

Deliverable

  • One file per screen: design/mockups/<feature>/<screen>.html in the product repo.
  • Self-contained: CSS in a <style> block, no external stylesheet, no framework, no CDN, no

web font download. It must open offline, as it will be read months later.

  • No JavaScript, or a few lines at most for a state switcher. Behaviour is described in the

annotations, not implemented.

  • Delivered in a PR. Screenshots in the PR description help the reviewer.

Tokens first

  • Read the project's tokens: design/tokens.md, the Flutter theme

(.claude/flutter-conventions.json, lib/themes/), or the web theme (Tailwind config, CSS variables).

  • Declare them once as CSS variables in :root, with the same names the code uses, so the

engineer maps var(--color-content-primary) to KColors.getContentPrimaryColor without guessing.

  • Every colour, size, radius and font in the mockup comes from a variable. A literal is a value

the engineer will have to invent a token for.

  • No tokens in the project yet: propose them in design/tokens.md in the same PR, and flag it to

Savino in the issue.

  • Dark mode: if the project has it, define the dark values under

@media (prefers-color-scheme: dark) and check contrast in both.

Every state, side by side

Show each state as its own labelled frame on the page, not hidden behind clicks:

  • Content — with realistic data: real-length names, a long title that wraps, a number with

thousands separators. Lorem ipsum hides overflow problems.

  • Loading — skeleton matching the content layout.
  • Empty — with the message and the action that gets the user out of it.
  • Error — with the message and a retry.
  • Plus any state the feature adds: disabled, offline, permission denied, partially filled form

with validation errors.

Frames

  • Flutter: a 390×844 phone frame. Sizes in px map 1:1 to logical pixels (dp). Add a 360 px

frame for the content state when the layout is tight.

  • Next.js: 375 px mobile and 1280 px desktop, plus 768 px when the layout changes there.
  • Label each frame with its state and width.

Annotations

At the top of the file, an HTML comment the engineer reads first:

html
<!--
Screen: Task detail
Route: /tasks/[id] (Flutter: TaskDetailPage.path)
Components: TaskHeader (new), StatusChip (exists), CommentList (new), KButton (exists)
Data: task (id, title, status, assignee, due_at), comments[] (author, body, created_at)
Interactions:
- tap StatusChip → bottom sheet with the statuses
- pull to refresh reloads task and comments
- comment input: max 2000 chars, send disabled while empty or sending
Navigation: back → task list, keeps scroll position
Open questions: can a viewer comment, or only members?
-->

Mark new components versus existing ones: it tells the engineer what to build and what to reuse. Put open questions here instead of deciding them silently in the design.

Quality bar

Apply ui-standards: 4.5:1 text contrast, 44×44 (iOS) / 48×48 (Android) touch targets, visible focus states on web, a type scale with no more than the project's sizes.

Scope

New screens and requested redesigns only. A small change to an existing screen (a field, a label, a spacing fix) goes straight to the engineer, without a mockup.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/savinofiore/agent-skills/html-mockup/badge)](https://verified-skill.com/skills/savinofiore/agent-skills/html-mockup)

Something wrong with this skill or its page? Tell us.