Command Palette

Search for a command to run...

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

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от 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

  1. 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.

  2. 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.

  3. Find the surface:

    Surface Story location Stylesheet
    Desktop renderer, shared UI src/renderer/stories/ Global; .storybook/preview.tsx loads it
    Public web (apps/auth-api) Beside the page, in apps/auth-api/src/components/<area>/. For a new page, use landing/ Import apps/auth-api/src/styles.css in the story, as DiscordConnectPage.stories.tsx does

    A 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 WithRouter pattern from AgentTemplatePage.stories.tsx.

  4. Read packages/ui/AGENTS.md and src/renderer/AGENTS.md. For public web, also read apps/auth-api/AGENTS.md.

  5. Take a reference screenshot of the place where the feature lives in the current app. For desktop, use the App story (app--expanded-sidebar and the other app--* ids), the real container story (for example settings-serversettingsmodal--*), or the dev app with bun run dev:automation screenshot. For public web, use the page story. Save it as reference.png beside the variant screenshots (Step 5).

  6. 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/ and apps/auth-api/src/styles.css. Import only explicit @openbot/ui/... subpaths there. The @openbot/ui barrel 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

Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

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

Сравнить prototype с