Command Palette

Search for a command to run...

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

prototype-mobile

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

Build several different design directions (3 by default) for a mobile app feature or issue inside the running iOS/Android app, with swatches to switch the…

nightly-labsот nightly-labs★ 13 288 звёзд на GitHub

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

Prototype (mobile)

Make a small number of different, usable directions for one phone feature inside the real mobile app (apps/mobile). The user opens them on a device or simulator and switches between them with swatches. The user chooses the direction. Do not implement the feature in product code before the user chooses.

This skill is the mobile form of prototype. It is different in three points:

  1. The designs show in the app, not in Storybook or HTML.
  2. All animations run on the UI thread, not on the JavaScript thread.
  3. When the UI shows data that loads, changes or can fail, a swatch shows each of these states.

The usual call is short, for example $prototype-mobile agent picker. 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-mobile, an issue number, or an issue URL.
  • Count: 3 variants, unless the user gives a different number.
  • Style: follow apps/mobile/DESIGN.md and reuse its components, unless the user says otherwise (for example "go wild", "ignore the current design"). When the user sets the style aside, say which parts you changed. Native chrome stays native in all cases.

Step 1 — Understand the subject

  1. When the subject is an issue, read it: gh issue view <n> --comments. Otherwise search open issues: gh issue list --search "<subject>" --state open. Use a match only when it is clearly the same feature.
  2. Read apps/mobile/AGENTS.md and apps/mobile/DESIGN.md. Read the expo major version in apps/mobile/package.json and use the docs of that version (https://docs.expo.dev/versions/v<major>.0.0/) for each Expo, Expo Router or @expo/ui API.
  3. Find the current code for the feature, when it exists: the route in apps/mobile/src/app/, the screen in src/features/<domain>/screens/, its components, and its data source (a React Query hook in src/features/<domain>/api/, the workspace context, or a store). Note:
    • what the user can do now;
    • the shape that the data hook returns (data, error, isPending, isFetching, refetch, mutation status);
    • each data state that the screen has or must have (see Data states);
    • each animation and gesture that is in the screen now.
  4. Decide the presentation mode.
  5. Take a reference screenshot of the place where the feature lives in the current app (Step 5 says how). Save it as reference.png beside the variant screenshots.
  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:

  • OpenBot components in src/shared/components/ and src/features/*/components/.
  • HeroUI Native components (heroui-native) and Typography.
  • Native chrome: Expo Router Stack, Stack.Toolbar, Stack.SearchBar, NativeTabs, native formSheet, @expo/ui controls, and MenuView from @/shared/components/menu-view.
  • Tokens and utilities in apps/mobile/global.css (from packages/brand/src/tokens.css and tokens-native.css). Do not add colors, radii or shadows when a token exists.
  • Real data types and values in packages/contracts. Use real plan names, limits and model names, not invented ones.
  • Mocks that exist, such as src/features/settings/api/credits-mock.ts.
  • Motion helpers: useReducedMotion, useMotionPreference and useTransitionMode from @/shared/lib/motion, and haptics from @/shared/lib/haptics.
  • Similar screens. A new screen must look like it belongs next to them.

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.
  • Presentation: inline in the screen, pushed card, native form sheet, menu.
  • Interaction model: tap, swipe or long-press gesture, inline edit, steps.
  • 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. Do not ask the user to approve the directions. Build them.

Step 4 — Build the variants

Presentation mode

Choose one mode. Write the choice in your assumptions.

Mode Use it when Entry
In place (default) The feature lives in a screen that exists: a row, a header part, a composer part, a section of a sheet The real screen shows the chosen variant where the feature goes. The prototype bar floats over the screen.
Gallery The feature is a new screen or a new sheet, or the real screen cannot show it without product changes A dev-only Prototype button opens a native formSheet route. The route shows the prototype bar and the variant. For a new full screen, the route pushes the variant as a card, s
Полный SKILL.md на GitHub

Установить prototype-mobile в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл prototype-mobile?

Build several different design directions (3 by default) for a mobile app feature or issue inside the running iOS/Android app, with swatches to switch the variant and the data state, show them to the user, and let the user choose one. Use when the user writes `$prototype-mobile <feature>`, "prototype X on mobile", or asks for design variants, options, or directions for a phone screen in `apps/mobile` before implementation.

Как установить скилл prototype-mobile?

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

Скилл prototype-mobile запускает скрипты?

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

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

Сравнить prototype-mobile с