prototype
БесплатноБез исполняемых скриптовНе проверенBuild several different design directions (3 by default) for a feature or issue as Storybook stories, show them to the user, and let the user choose one. Use…
от nightly-labs★ 13 288 звёзд на GitHubОб этом скилле
Prototype
Make a small number of different, clickable directions for one feature in Storybook. Show them to the user. The user chooses the direction. Do not implement the feature in product code before the user chooses.
The usual call is short, for example $prototype new pricing page. Get the
missing details from the issue and the code. Ask only when you cannot
continue without the user.
Inputs
- Subject: the text after
$prototype, an issue number, or an issue URL. - Count: 3 variants, unless the user gives a different number.
- Style: follow the repository style and reuse its components, unless the user says otherwise (for example "go wild", "new visual style", "ignore the current design"). When the user sets the style aside, say which parts you changed.
Step 1 — Understand the subject
When the subject is an issue, read it:
gh issue view <n> --comments. Otherwise search open issues for the subject:gh issue list --search "<subject>" --state open. Use a match only when it is clearly the same feature.Find the current code for the feature, when it exists. Read it and its existing stories. Note what the user can do now, and the states it has (empty, loading, error, long data). Phones use the mobile app: do not plan a phone width for desktop or web client UI.
Find the surface:
Surface Story location Stylesheet Desktop renderer, shared UI src/renderer/stories/Global; .storybook/preview.tsxloads itPublic web ( apps/auth-api)Beside the page, in apps/auth-api/src/components/<area>/. For a new page, uselanding/Import apps/auth-api/src/styles.cssin the story, asDiscordConnectPage.stories.tsxdoesA pricing page, landing page, or article is public web. A dialog, panel, sidebar, or settings screen is desktop.
A public web page with the site header needs a router stand-in. Copy the
WithRouterpattern fromAgentTemplatePage.stories.tsx.Read
packages/ui/AGENTS.mdandsrc/renderer/AGENTS.md. For public web, also readapps/auth-api/AGENTS.md.Take a reference screenshot of the place where the feature lives in the current app. For desktop, use the
Appstory (app--expanded-sidebarand the otherapp--*ids), the real container story (for examplesettings-serversettingsmodal--*), or the dev app withbun run dev:automation screenshot. For public web, use the page story. Save it asreference.pngbeside the variant screenshots (Step 5).Write down your assumptions in one short list. You show it to the user in Step 6.
Step 2 — List what to reuse
Before you write UI, list the parts that already exist:
- Primitives from
@openbot/ui(packages/ui/src/). - Feature components from
@openbot/ui/features/<domain>/.... - For public web: existing site components and classes in
apps/auth-api/src/components/andapps/auth-api/src/styles.css. Import only explicit@openbot/ui/...subpaths there. The@openbot/uibarrel fails the Worker typecheck. - Data that already exists, such as plans, prices, and limits in
packages/contracts. Use the real values, not invented ones. - Fixtures and mocks:
src/renderer/stories/*fixtures*,src/renderer/src/preview/, and the fixtures of related stories. - Design tokens and existing CSS classes. Do not add new colors, font sizes, radii, or spacing values when a token exists.
- Similar screens in the app. A new screen must look like it belongs next to them.
References are the real app and real components only: App, WebWorkspace,
the real containers, and stories of one component. Do not copy layout from a
story that builds its own shell, header, sidebar, chat panel, or settings
menu. Such a copy keeps a design that the app no longer has.
Step 3 — Choose the directions
Each direction must be a different answer to the problem, not a different color. Change at least one of these between variants:
- Information hierarchy: what the user sees first.
- Layout: cards, table, list and detail, single column, steps.
- Interaction model: inline edit, dialog, wizard, progressive disclosure.
- Density: compact for experts, spacious for first use.
Give each direction a letter, a short name, one sentence for its idea, and one sentence for its main cost. Example for a pricing page:
| Variant | Idea | Cost |
|---|---|---|
| A. Plan cards | Three cards side by side; the recommended plan is in the middle | Feature differences are hard to compare |
| B. Comparison table | One table with a row per feature | Dense on narrow screens |
| C. Guided choice | Two questions, then one recommended plan | One more step before the price |
Do not ask the user to approve the directions. Build them.
Step 4 — Build the variants
Start from the real app
Render the real app or the real container, and hand-build only the new part. Never copy an existing header, sidebar, menu, sett
Установить prototype в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл prototype?
Build several different design directions (3 by default) for a feature or issue as Storybook stories, show them to the user, and let the user choose one. Use when the user writes `$prototype <feature>`, "prototype X", or asks for design variants, options, or directions before implementation.
Как установить скилл prototype?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prototype запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic