Command Palette

Search for a command to run...

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

frontend-mockup

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

Build interactive HTML mockups that match the project's actual theme for UX exploration and design review. Use when the user wants to visualize a UI concept…

crouton-labsот crouton-labs★ 25 звёзд на GitHub

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

Frontend Mockup

Build self-contained HTML design review documents. One .html file, no dependencies, opens in a browser. The output is for thinking through design — comparing options, evaluating states, making decisions — before any real code is written.

Before You Start

Read the Real Theme

Extract actual CSS variables from the project's theme file (globals.css, tailwind.config.*, etc.). Map them into the mockup's :root block. Don't guess colors, don't use generic grays when the project has a real palette. Include brand/accent colors — even if used sparingly, they make the mockup feel like the real product.

Understand the Context

Read 2-3 real components to absorb the project's visual personality — density, font scale, interaction patterns, border radius, depth strategy. The mockup should feel like it belongs to this project.


Document Structure

The mockup is a scrollable design review document. It has its own chrome (navigation, section headers, callouts) that is visually distinct from the UI being mocked inside it.

Sticky Navigation

A fixed nav bar at the top with anchor links to every section. Dark or inverted background to separate document chrome from content. Section names in the nav should describe the option or state, not just "Section 1."

[Option A: Slide Panel] [Option B: Drawer] [Option C: Inline] [Compare]

The reviewer can jump to any option in one click without scrolling. Highlight the current section on scroll via a small JS IntersectionObserver or scroll listener.

Sections as Cards

Each section wraps in a rounded card on a tinted page background (body at off-white, sections at white). This creates natural separation without heavy dividers. Alternate section backgrounds between #fff and #fafafa for additional rhythm when sections are long.

Three-Level Section Headers

Every section opens with:

  1. Tag — Small-caps, 0.625rem, 600 weight, 0.08–0.1em letter spacing, colored by category (teal for recommended, amber for trade-off, red for problem). This is the chapter marker.
  2. Title — 1.25rem, 600 weight, tight tracking. The actionable name.
  3. Description — 0.8125rem, 400 weight, muted color, max-width ~42rem. One or two sentences stating what this section shows and the design tradeoff — not a feature explanation. Answer "why would I pick this?"

The prose appears above the mockup frame, so the reviewer is primed with intent before evaluating the visual.


Mockup Frames

Each design option or state is rendered as a full-fidelity app frame — not a component in isolation. Include enough surrounding UI (navigation, header, content area) that the feature being designed is seen in context.

App Shell Realism

  • Render at realistic proportions inside a bordered, shadowed, rounded container
  • Use real-looking content — plausible names, messages, timestamps. Never "Lorem ipsum" or "Item 1"
  • Add macOS traffic-light dots (.mock-titlebar) on the frame to signal "this is an app window" — eliminates any "is this the mockup or the document?" confusion

Show Every Meaningful State

Don't just show the happy path. Render:

  • Default/empty — first-run, zero data, nothing configured yet (see below)
  • Loading — skeletons or spinners where async data lands
  • Active — the primary visible state
  • Edge cases — urgency levels, error states, disabled items, overflow
  • Interaction states — hover, selected, expanded (render these statically in parallel, not behind a click)

Label each state with a small-caps state label inside the mockup section ("State 1 — At Rest", "State 2 — Expanded"). The label answers "what triggered this view?" in one line.

Default and Empty States

The default state is where users spend their first session and where the feature looks broken if you skip it. Always mock it. For every list, table, chart, panel, or container that holds data, show what renders when the data isn't there yet.

Cover these defaults as applicable:

  • First-run / zero-config — the feature exists but the user hasn't set it up. Include a one-line explanation of what this feature does and a single primary CTA ("Connect a source", "Create your first workspace"). No pretend data, no ghost rows.
  • Empty after filter/search — user actions produced no results. Echo the query ("No results for 'foo'") and offer a way out (clear filters, broaden search). Visually distinct from first-run empty — this is a dead end, not a starting line.
  • Loading / skeleton — grey blocks at the exact shape of the real content. Same height, same column count, same rhythm. Never a centered spinner on an empty page unless the whole route is blocked.
  • Partial / degraded — some data loaded, some failed. Show what you have, mark what you don't (inline "Unavailable" chip, not a full-page error).
  • Error — request failed. Include the reason in plain language and a retry affordance. Not a stack trace, not a gene
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Build interactive HTML mockups that match the project's actual theme for UX exploration and design review. Use when the user wants to visualize a UI concept, compare design options, or prototype a feature before implementing it in the real codebase.

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

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

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

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

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

Сравнить frontend-mockup с