К основному содержанию
скилл CX Codex

web-prototype — скилл для Claude Code: что делает и как установить

Собирает один самодостаточный HTML-прототип из seed-шаблона и восьми скелетов секций. Годится для лендинга, страницы тарифов или индекса документации.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add nexu-io/open-design --skill web-prototype -a claude-code
Открыть на GitHub

Что делает web-prototype

Скилл делает одну самодостаточную HTML-страницу из готового seed-файла: копирует assets/template.html, подставляет токены дизайн-системы в шесть переменных :root и вставляет блоки секций из references/layouts.md. Внутри — восемь готовых скелетов, чек-лист самопроверки P0/P1/P2 и сама инструкция SKILL.md. CSS с нуля писать не нужно, и это же главное ограничение: без активного DESIGN.md с разделами color, typography, layout и components подставлять в переменные нечего.

Порядок работы фиксированный. Сначала агент читает seed целиком и список классов, потом называет список секций одной фразой — здесь дешевле всего вмешаться и перенаправить. Дальше идёт вставка блоков, замена [REPLACE] на реальный текст и проход по чек-листу. Результат пишется в index.html, исходник в чат не выводится. Остаётся короткое резюме с именем файла.

Правила жёсткие. Акцент один, не больше двух раз на экран. Заголовки набираются серифом, числа и подписи — моно. Внешние хотлинки на картинки запрещены: изображение скачивают в проект и подключают относительным путём. Мобильная раскладка держится на медиазапросе 920px, поэтому фиксированные ширины её ломают.

Какие задачи решает

  • собрать лендинг из готовых секций за один проход
  • подставить токены дизайн-системы в seed, не переписывая CSS
  • проверить страницу по чек-листу P0 перед показом
  • собрать индекс документации или страницу тарифов по готовому ритму секций

Примеры запросов агенту

  • Сделай прототип главной страницы: одна HTML-страница, секции бери из references/layouts.md
  • Собери страницу тарифов — hero-center, таблица сравнения, CTA
  • Сделай лендинг для нового продукта в index.html по скиллу web-prototype

Как установить web-prototype

1Через Skills CLI (Vercel)

npx skills add nexu-io/open-design --skill web-prototype -a claude-code

2Вручную: положить файлы

~/.claude/skills/web-prototype/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/web-prototype/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о web-prototype

Как установить web-prototype в Claude Code?

Выполните npx skills add nexu-io/open-design --skill web-prototype -a claude-code. Скилл встанет в ~/.claude/skills/web-prototype/SKILL.md.

Что делает web-prototype?

Собирает один HTML-прототип из seed-файла и библиотеки секций: переносит токены дизайн-системы в переменные :root и пишет готовую страницу в index.html.

Что нужно подготовить до запуска?

Активный DESIGN.md с разделами color, typography, layout и components. Цвета из него переносятся в шесть переменных :root в seed.

Исходный текст

SKILL.md · Apache-2.0
---
name: web-prototype
description: |
  General-purpose desktop web prototype. Single self-contained HTML file built
  by copying the seed `assets/template.html` and pasting section layouts from
  `references/layouts.md`. Default for any landing / marketing / docs / SaaS
  page when no more specific skill matches.
triggers:
  - "prototype"
  - "mockup"
  - "landing"
  - "single page"
  - "marketing page"
  - "homepage"
od:
  mode: prototype
  platform: desktop
  scenario: design
  preview:
    type: html
    entry: index.html
  design_system:
    requires: true
    sections: [color, typography, layout, components]
---

# Web Prototype Skill

Produce a single, self-contained HTML prototype using the bundled seed and layout library — **not** by writing CSS from scratch. The seed already encodes good defaults (typography, spacing, accent budget). Your job is to compose it.

## Resource map

```
web-prototype/
├── SKILL.md                ← you're reading this
├── assets/
│   └── template.html       ← seed: tokens + class system + chrome (READ FIRST)
└── references/
    ├── layouts.md          ← 8 paste-ready section skeletons
    └── checklist.md        ← P0/P1/P2 self-review
```

## Workflow

### Step 0 — Pre-flight (do this once before writing anything)

1. **Read `assets/template.html` end-to-end** — at minimum through the `<style>` block. The class inventory at the top of `references/layouts.md` lists every class that must be defined there; if one is missing, add it to `<style>` rather than re-defining it inline on every section.
2. **Read `references/layouts.md`** so you know which section skeletons exist. Don't write a section type that isn't covered — pick the closest layout and adapt.
3. **Read the active DESIGN.md** (already injected into your system prompt). Map its colors to the six `:root` variables in the seed; don't introduce new tokens.

### Step 1 — Prepare `index.html` from the seed

Use `assets/template.html` as the seed for the canonical project file, normally `index.html`.

Replace the six `:root` variables with the active design system's tokens. Replace the page `<title>` and the topnav brand.

### Step 2 — Plan the section list

**Pick layouts before writing copy.** Default rhythms (from `layouts.md`):

| Page kind | Default rhythm |
|---|---|
| Landing | 1 hero → 3 features → 4 stats *or* 5 quote → custom split → 6 cta |
| Marketing / editorial | 1 hero-center → 7 log list → 6 cta |
| Pricing | 1 hero-center → 8 comparison table → 6 cta |
| Docs index | 1 hero-center → 7 log list (sections of docs) → 6 cta |

State the chosen list in one sentence to the user *before* writing — they can redirect cheaply now and not after 200 lines of HTML.

### Step 3 — Paste and fill

For each chosen layout, copy the `<section>` block from `layouts.md` into `<main id="content">` of the project HTML. Replace bracketed `[REPLACE]` strings with real, specific copy from the user's brief. **No filler** — if a slot is empty, the section is the wrong choice; pick a different layout. Treat every `.ph-img` block as layout scaffolding and replace it when the section requires imagery, following the real-first rule below before self-checking.

### Step 4 — Self-check

Run through `references/checklist.md` top to bottom. Every P0 item must pass before you move on. P1 items should pass; P2 are bonus.

### Step 5 — Write the project file

Write the completed HTML to the canonical project file, normally `index.html`. Then send one short ordinary assistant summary naming the file and describing what's there. Do not output the full HTML source in chat.

## Hard rules (the seed protects most of these — don't fight it)

- **Single accent, used at most twice per screen.** Eyebrow + primary CTA is the default budget.
- **Display font is serif** (Iowan Old Style / Charter / Georgia in the seed). Sans for body. Mono for numerics, captions, eyebrows.
- **Real imagery, never remote hotlinks.** `.ph-img` is temporary layout scaffolding, not the default final treatment. For a named real-world referent, search/fetch the correct real image, copy it into the project, and reference it relatively; never generate, draw, or invent a substitute. For illustrative or atmospheric subjects, prefer suitable fetched real photography and use image generation only as a fallback. If no compliant asset can be acquired, keep an intentional labeled `.ph-img` and disclose the limitation in the delivery summary.
- **Preserve real-image geometry.** Inspect each acquired image's intrinsic width and height, replace the entire `.ph-img` scaffold with an `<img class="content-img">`, and set matching `width` and `height` attributes. Never copy `.ph-img`, `.wide`, `.portrait`, or `.square` onto a real image. Content images must show the full frame; `object-fit: cover` is only for intentionally croppable decorative fills. The seed's `.content-img` rule bounds unusually tall or wide images to the viewport while keeping the other axis automatic.
- **Mobile reflow already works** via the seed's media query at 920px. Don't break it by adding fixed widths.
- **`data-od-id` on every `<section>`** so comment mode can target it.

## Output contract

Filesystem runs use project files as the source of truth:

```
index.html
```

OpenDesign derives the preview from the written project file. Do not also emit a source-code `<artifact>` block for the same generation turn.

One short summary after writing the file. Nothing after.

© nexu-io · Apache-2.0 · nexu-io/open-design

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

Всё по теме «Фронтенд и UI» →
html-prototype plannotator Скилл собирает один самодостаточный HTML-файл: статичный макет или рабочий прототип с состояниями, клавиатурой и адаптивом. Нужен, чтобы проверить решение по интерфейсу до кода. CX Codex +1 1 800установок prototype adobe Собирает предлагаемый редизайн страницы в один статичный HTML-файл, который можно открыть в браузере и править через чат. CX Codex +1 524установок claude-design BadTechBandit Скилл для сборки HTML-артефактов — лендингов, прототипов, деков — в Claude Code, Codex и Cursor. Читает контекст проекта и собирает самодостаточный файл с вёрсткой и стилями. CX Codex +1 645установок huashu-design-html-native reason-machines Превращает запрос словами в готовый файл: прототип, слайды, анимацию или инфографику на HTML/CSS/JS. Figma не нужна. CX Codex +1 426установок sketch Hermes Agent (adapted from gsd-build/get-shit-done) Создаёт 2–3 HTML-варианта интерфейса, чтобы сравнить дизайн-направления до того, как начнёшь строить продакшн-код. CX Codex +1 403установок om-mockup-prototype open-mercato Скилл собирает кликабельный низкодетализированный прототип из продуктового брифа. Он генерирует локальный HTML со статикой и проверяет сценарий в браузере до передачи задачи в бэклог. CX Codex +1 1 500установок

Из того же набора124

Весь набор →
imagegen-frontend-web Скилл задаёт арт-дирекшн для генерации референсов веб-дизайна. Он следит за вёрсткой, запрещая склеивать экран в один длинный макет. CX Codex +1 1 700установок reference-design-contract Превращает референсы, скриншоты и расплывчатые пожелания в DESIGN.md и план передачи в разработку. Нужен перед прототипом или редизайном. CX Codex +1 1 800установок full-output-enforcement Скилл просит агента выдавать полную реализацию без пропусков и заглушек. Пригодится, когда нужны все файлы или компоненты, а не набросок. CX Codex +1 1 600установок brand-extract Извлекает дизайн-систему с открытого сайта через встроенный браузер. Формирует палитру, шрифты, логотипы и готовит файл brand.json для проекта. CX Codex +1 1 100установок library-curator Достаёт картинки, логотипы и скриншоты из OD Library, копирует файл в проект и отдаёт относительный путь, который остаётся вписать в разметку. CX Codex +1 960установок chat-motion-overlay Создаёт анимированные сцены переписки из текста или скриншота и готовит их для рендера в Remotion. Нужен для роликов с пузырями сообщений и прозрачных наложений. CX Codex +1 829установок design-taste-frontend Скилл для лендингов, портфолио и редизайнов. Агент читает бриф, подбирает дизайн-систему и собирает интерфейс без AI-шаблонов. CX Codex +1 808установок od-next-media-inputs Готовит медиа-входы по уже замороженному плану OD Next: находит стоковые фото, скачивает их в проект и держит слоты в рамках требований к качеству. CX Codex +1 311установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой