Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

prototype-mobile

FreeNo executable scriptsNot checked

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-labsby nightly-labs★ 13,288 GitHub stars

About this skill

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
Full SKILL.md on GitHub

Install prototype-mobile in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the prototype-mobile skill do?

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.

How do I install the prototype-mobile skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the prototype-mobile skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare prototype-mobile with