Command Palette

Search for a command to run...

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

prototype-watchos

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

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-labsот nightly-labs★ 13 288 звёзд на GitHub

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

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
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

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.

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

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

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

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

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

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