prototype-watchos
FreeNo executable scriptsNot checkedBuild 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…
by nightly-labs★ 13,288 GitHub starsAbout 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:
- 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.
- 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.
- 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
- 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.mdanddocs/architecture/watch-relay.md. - 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 inOpenBotWatchApp.swift, and the state inWatchSession.swift. For a complication, readapps/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).
- Read the data contract:
packages/contracts/src/watch-protocol.ts(WatchSnapshot,WatchAgent,WatchWait,WatchCommand, and the limitsWATCH_REPLY_LIMIT,WATCH_APPROVAL_LIMIT,WATCH_AGENT_LIMIT). The iPhone builds the snapshot inapps/mobile/src/features/watch/model/watch-snapshot.ts, and the host builds it insrc/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. - Read the minimum watchOS version:
deploymentTargetinapps/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. - 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. - 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 (
frameworksinexpo-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>.jsongivesmetadata.platformswithintroducedAtanddeprecatedAtfor watchOS. The path is the lowercase page path, for examplemenu, `tabviewstyle/ve
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
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
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
by Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
by Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
by Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
by Anthropic