Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

screen-mockup-html

БесплатноБез исполняемых скриптовНе проверен

Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe…

makifbaysalот makifbaysal★ 123 звезды на GitHub

Об этом скилле

Screen Mockup HTML

Overview

The design is ONE HTML document on the task: a canvas that holds every screen of the task and every variant of each screen, side by side, titled design: <feature> (design: Invoices). The review page opens it as a pan-and-zoom canvas, like Figma: frames sit at their real widths, every <h2> is a page listed beside the canvas, and the reviewer drags and pinches to move around, selects passages and comments on them. Developers receive the document in their run context as plain text. Nothing in it runs, loads or reacts — so every state is drawn, side by side, as its own static frame, and every decision a reviewer may question is text they can select.

Core principle: One file, one canvas, everything comparable. Draw states, don't simulate them. Lay each frame out by its own class, not by media queries — the review pane is not the device. Frames sit at their real widths in rows as wide as they need — never put frames in a scrolling box.

Never one document per screen or per variant: a reviewer who has to open five files cannot compare anything. The only reason to add a second document is the size budget (see Size), and then it splits by flow, each still a full canvas.

Document anatomy

Keep these ids stable across revisions; review comments and the hand-off cite them.

  1. header#top — <h1> the feature (Invoices); one meta line: task key, design system version (base and layer), date, content language.
  2. section#notes — purpose in one sentence; per screen with variants: each variant's idea, whom it serves, what it costs, and which one you recommend (design-variants); the decisions on palette, type, imagery and layout and why (visual-craft, avoid-ai-default-looks); tokens or components this design proposes to add; draft copy; any state that does not apply, with the reason; the self-check result.
  3. section#structure — the ASCII wireframes of every screen (each variant) at 375 and the wide width in <pre>. They survive the text rendition developers get; the pixels do not.
  4. One page per screen — section#screen-<slug> with ONE <h2> (Invoices — list). Inside, one row per variant (div.variant-row#screen-<slug>-a, …) that opens with a <h3 class="variant-title">Variant A — table first</h3> and one line on the trade-off, then the strip of that variant's default frames: 375 and the wide width. Rows are stacked top to bottom, A above B, frames in the same order and left-aligned, so the same frame of two variants sits in the same column and the eye compares them directly. A screen with a single variant has one row.
  5. One states page per screen — section#states-<slug>, <h2>Invoices — list · states</h2>: again one row per variant, every state at 375, and at the wide frame the default plus each state whose layout differs there; dark frames in the same grid.
  6. section#controls — <h2>Controls</h2>: each control the feature uses in default, hover, focus-visible, active, disabled and loading, side by side. Shared by all screens, drawn once.
  7. For a flow, section#flow — <h2>Flow</h2>: the screens as small frames in order with arrows (inline SVG) and the label of each transition, before the per-screen pages.

Every frame is a <figure> with an id carrying its screen slug and variant letter (invoices-list-a-375-empty), so a citation names one frame, and a <figcaption> (A · 375 · empty — no invoices yet). The wide frame is 1440 for web; for a mobile app it is a 768 tablet (.w768), plus a landscape phone frame when the screen supports landscape. Draw the platform's own chrome where it shapes the layout — browser or window chrome for a web page when the screen's context needs it, status bar and home indicator safe areas on iOS, the system bars on Android.

Template

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>design: Invoices</title>
<style>
:root{--doc-bg:#F6F7F8;--doc-fg:#1F2328;--doc-muted:#5C6670;--doc-line:#D0D7DE;
--doc-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--doc-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
@media (prefers-color-scheme:dark){:root{--doc-bg:#0D1117;--doc-fg:#E6EDF3;--doc-muted:#9198A1;--doc-line:#30363D}}
*{box-sizing:border-box}
body{margin:0;background:var(--doc-bg);color:var(--doc-fg);font:14px/1.55 var(--doc-sans)}
main{padding:24px}
h2{margin:56px 0 8px;font-size:20px}
h3.variant-title{margin:24px 0 2px;font-size:15px}
.variant-row{padding:0 0 24px;border-bottom:1px dashed var(--doc-line)}
pre{font:12px/1.35 var(--doc-mono);border:1px solid var(--doc-line);padding:12px;overflow:auto}
.strip{display:flex;gap:32px;align-items:flex-start;width:max-content;padding:8px 0 16px}
figure{margin:0;flex:none}
figcaption{font:12px/1.4 var(--doc-sans);color:var(--doc-muted);margin:0 0 6px}

.ds{--background:#FFFFFF;--foreground:#1C2024;--surface:#F4F6F5;--muted-foregro
Полный SKILL.md на GitHub

Установить screen-mockup-html в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл screen-mockup-html?

Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe recipe, phone and wide frames, the states grid, static control states, and the loopback self-check with screenshots at 375, 768 and 1440 attached to the task

Как установить скилл screen-mockup-html?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл screen-mockup-html запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить screen-mockup-html с