prototype · pwguler — скилл для Claude Code: UI-прототипы и установка
Скилл prototype для Claude Code создаёт визуальные прототипы интерфейсов до начала основной разработки. Он включается по просьбе сделать макет или прототип, когда нужно выбрать внешний вид или сценарий.
MIT 978 установок ★ 10 обновлён 2026-10-16
npx skills add pwguler/skills --skill prototype -a claude-codeЧто делает prototype
Скилл собирает одноразовый UI-прототип в отдельном HTML-файле за пределами репозитория. В нём используются тестовые данные: подключать сервер, сохранять состояние и менять рабочий код нельзя. Когда направление ещё не выбрано, в файле показываются несколько разных вариантов компоновки.
Перед созданием прототипа нужен источник для типографики, цвета и отступов: проектный DESIGN.md, существующие токены или выбранный вместе с пользователем референс. Если источник — сайт или сочетание шрифтов, итоговые токены записываются в DESIGN.md; этот файл остаётся в проекте. Прототип открывают в браузере, а после реакции пользователя его удаляют и переносят выбранное решение в основную работу.
Какие задачи решает
- проверить внешний вид интерфейса до основной разработки
- сравнить несколько вариантов компоновки
- обсудить поток экранов на визуальном макете
- сверить прототип с токенами проекта
Примеры запросов агенту
- Сделай прототип экрана настроек, чтобы выбрать его компоновку до разработки.
- Подготовь несколько визуально разных вариантов главной страницы в одном HTML-файле.
- Собери макет по токенам из
DESIGN.md, используя тестовые данные.
Как установить prototype
1Через Skills CLI (Vercel)
npx skills add pwguler/skills --skill prototype -a claude-code2Вручную: положить файлы
~/.claude/skills/prototype/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/prototype/
1Через Skills CLI (Vercel)
npx skills add pwguler/skills --skill prototype -a codex2Вручную: положить файлы
.agents/skills/prototype/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add pwguler/skills --skill prototype -a cursor2Вручную: положить файлы
.cursor/skills/prototype/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install pwguler/skills skills/prototype2Вручную: положить файлы
.github/skills/prototype/SKILL.md1Через Skills CLI (Vercel)
npx skills add pwguler/skills --skill prototype -a gemini-cli2Командой платформы
gemini skills install https://github.com/pwguler/skills --path skills/prototypeВручную: положить файлы
.devin/skills/prototype/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add pwguler/skills --skill prototype -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о prototype
Как установить prototype в Claude Code?
Выполни npx skills add pwguler/skills --skill prototype -a claude-code. Файл скилла находится по пути ~/.claude/skills/prototype/SKILL.md.
Что делает prototype?
Он создаёт отдельный HTML-прототип интерфейса с тестовыми данными, чтобы обсудить внешний вид или поток экранов до основной разработки. Прототип не подключает сервер и не меняет рабочий код.
Что нужно для создания прототипа?
Нужен источник типографики, цвета и отступов: проектный DESIGN.md, существующие токены или выбранный референс. Если исходником служит сайт или сочетание шрифтов, скилл сначала записывает найденные токены в DESIGN.md.
Исходный текст
SKILL.md · MIT
--- name: prototype description: Build a throwaway UI prototype for the user to react to before any real code. Read this skill when the user asks for a mockup or a prototype of a UI. Use it when a design decision depends on look, feel, or flow that text cannot settle. --- The user wants a throwaway prototype to react to before any real code. It settles a question of look, feel, or flow that text cannot settle. 1. Base the prototype on a design system before you build. Never build on the defaults of the model, because they look generic. Use the `DESIGN.md` of the project, or its existing design tokens, when they exist. When none exists, get one from the user first. That is a `DESIGN.md`, a reference site to match, or a font pairing from a source such as fontpairs.co. Do not start until typography, color, and spacing come from a real source. 2. Sometimes that source is a reference site or a font pairing, not an existing `DESIGN.md`. Then write the resolved tokens to the `DESIGN.md` of the project before you build: typography, color, and spacing. That file is the one thing that the prototype leaves behind. `implement` and `rubric` read it. 3. Tokens leave most of the look open. Build to [look.md](references/look.md): the defaults that generated UI tends toward, and what replaces them. 4. Build the prototype as one self-contained HTML file outside the repository. Give the user its path, to open in a browser. 5. Stop when the user has reacted. Rules: - The prototype is visual only. Mock the screens with fake data. Connect no backend, keep no state, open no branch, and touch no production code. - Write less: short labels, and no helper text or explanation that the design does not need. Generated UI explains too much. A prototype that explains too much is already wrong. - When the direction is open, put a few clearly different layouts in the file to react to. Do not show one polished guess. - Copy what exists: the markup and tokens of the real components or pages to match. Do not describe them. - The prototype is a throwaway. It settles the direction. Discard it when the user picks, and take the decision into the real work.
© pwguler · MIT · pwguler/skills
Похожие скиллы
Все скиллы по теме «Дизайн» →Сначала — prototype от других авторов.