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★ 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:
- The designs show in the app, not in Storybook or HTML.
- All animations run on the UI thread, not on the JavaScript thread.
- 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.mdand 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
- 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. - Read
apps/mobile/AGENTS.mdandapps/mobile/DESIGN.md. Read theexpomajor version inapps/mobile/package.jsonand use the docs of that version (https://docs.expo.dev/versions/v<major>.0.0/) for each Expo, Expo Router or@expo/uiAPI. - Find the current code for the feature, when it exists: the route in
apps/mobile/src/app/, the screen insrc/features/<domain>/screens/, its components, and its data source (a React Query hook insrc/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.
- Decide the presentation mode.
- Take a reference screenshot of the place where the feature lives in the
current app (Step 5 says how). Save it as
reference.pngbeside the variant screenshots. - 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/andsrc/features/*/components/. - HeroUI Native components (
heroui-native) andTypography. - Native chrome: Expo Router
Stack,Stack.Toolbar,Stack.SearchBar,NativeTabs, nativeformSheet,@expo/uicontrols, andMenuViewfrom@/shared/components/menu-view. - Tokens and utilities in
apps/mobile/global.css(frompackages/brand/src/tokens.cssandtokens-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,useMotionPreferenceanduseTransitionModefrom@/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 |
Установить 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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic