Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

prototype-watchos

FreeNo executable scriptsNot checked

Build several different design directions (3 by default) for an Apple Watch app feature or issue as one self-contained HTML file with swatches, check that…

nightly-labsby nightly-labs★ 13,288 GitHub stars

About this skill

Prototype (watchOS)

Make a small number of different, clickable directions for one feature of the Apple Watch app (apps/mobile/targets/watch). The user opens one HTML file and switches between the directions with swatches. The user chooses the direction. Do not implement the feature in product code before the user chooses.

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

  1. The designs are in one self-contained HTML file with swatches. Do not use Storybook, and do not put the prototype in the watch app or the iPhone app.
  2. Each part of each design must have a SwiftUI part on watchOS that builds it. Check this before you show a design. Do not show a design that the watch app cannot build.
  3. The HTML frame shows what watchOS adds: the screen shape, the safe areas, the clock, the navigation bar, the system fonts and the system controls. List each point where the HTML can look different from the real watch.

The usual call is short, for example $prototype-watchos agent list. 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-watchos, an issue number, or an issue URL.
  • Count: 3 variants, unless the user gives a different number.
  • Style: follow the current watch app and the watchOS Human Interface Guidelines, unless the user says otherwise (for example "go wild"). When the user sets the style aside, say which parts you changed. System chrome (clock, navigation bar, back button, page indicator, scroll behavior) 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 docs/architecture/watch-relay.md.
  3. Read the watch code for the feature in apps/mobile/targets/watch/: the screen (AgentListView.swift, AgentPage.swift, QuestionViews.swift, ComposeViews.swift, StatusViews.swift, and so on), the routes in OpenBotWatchApp.swift, and the state in WatchSession.swift. For a complication, read apps/mobile/targets/watch-complication/. Note:
    • what the user can do now, and with which control;
    • the data that the screen shows, and its source;
    • each state that the screen has (see Data states).
  4. Read the data contract: packages/contracts/src/watch-protocol.ts (WatchSnapshot, WatchAgent, WatchWait, WatchCommand, and the limits WATCH_REPLY_LIMIT, WATCH_APPROVAL_LIMIT, WATCH_AGENT_LIMIT). The iPhone builds the snapshot in apps/mobile/src/features/watch/model/watch-snapshot.ts, and the host builds it in src/main/watch-relay-snapshot.ts. A design can show only data that the contract has, or data that you add to the contract in Step 7 on both builders. Write each new field that a variant needs in your assumptions.
  5. Read the minimum watchOS version: deploymentTarget in apps/mobile/targets/watch/expo-target.config.js (watchOS 10.0 when this skill was written). Each SwiftUI part that you use must be available in that version.
  6. Take a reference screenshot of the place where the feature lives in the current watch app (Step 5 says how). Save it as reference.png.
  7. Write down your assumptions in one short list. You show it to the user in Step 6.

Step 2 — List what to reuse and what watchOS can build

List the parts that already exist in the watch app: AgentAvatar, AgentRow, StateCapsule, TextCard, ActionLabel, ConnectionNote, agentBackground, armed(for:), the route enum WatchRoute, and the text keys in WatchText.swift. A new screen must look like it belongs next to them.

Then make a build table for the feature. It has one row for each part that any variant can show:

Part in the design SwiftUI on watchOS Minimum watchOS Source
Scrolling list of rows with section headers List with Section 6 current AgentListView.swift
Full-screen pages that the Digital Crown scrolls TabView with .tabViewStyle(.verticalPage) 10 Apple documentation

Rules for the build table:

  • Use only public SwiftUI, WatchKit, WidgetKit and AVFoundation APIs that the watch target links (frameworks in expo-target.config.js). Do not plan a new dependency or a framework that the target does not link.
  • Confirm each part that the current watch code does not use already in the Apple documentation. The pages need JavaScript, so read their data instead: curl -s https://developer.apple.com/tutorials/data/documentation/swiftui/<path>.json gives metadata.platforms with introducedAt and deprecatedAt for watchOS. The path is the lowercase page path, for example menu, `tabviewstyle/ve
Full SKILL.md on GitHub

Install prototype-watchos 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-watchos skill do?

Build several different design directions (3 by default) for an Apple Watch app feature or issue as one self-contained HTML file with swatches, check that each design can be built with SwiftUI on watchOS, show them to the user, and let the user choose one. Use when the user writes `$prototype-watchos <feature>`, "prototype X on the watch", or asks for design variants, options, or directions for a screen of the watch app (`apps/mobile/targets/watch`) before implementation.

How do I install the prototype-watchos 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-watchos skill run scripts?

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

Related skills

Compare prototype-watchos with