Axiom Watchos

CharlesWiltgen/Axiom/axiom-codex/skills/axiom-watchos

作者 CharlesWiltgen82c7feafae634a79b4336b3381289441886c122cMIT1.1K 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫今天更新

Use when building ANY watchOS app — app structure, independent apps, Watch Connectivity, Smart Stack widgets, complications, controls, RelevanceKit, background tasks, ClockKit migration.

AI 產生的概覽

指導 watchOS 應用程式開發,涵蓋應用程式結構、複雜功能、連線、背景任務與移轉。

功能
此技能會將 watchOS 開發問題導向參考文件,內容涵蓋應用程式結構、獨立應用程式、watch HIG 與一眼可讀的設計、智慧型堆疊小工具、複雜功能、控制項目、即時動態、Watch Connectivity、背景任務與網路限制。它也涵蓋 Xcode 與 Watch 連線問題的裝置診斷,以及從 WatchKit 和 ClockKit 的移轉。它提供決策樹和衝突解決指引,用於處理與 SwiftUI、HealthKit、輔助使用和 iOS 端小工具等重疊主題。
適用情境
在建置或現代化任何 watchOS 應用程式時使用,包括獨立應用程式、複雜功能、智慧型堆疊小工具、控制項目、即時動態和背景任務。它也適合用來診斷 Xcode 無法安裝、啟動或附加到已配對 Watch 的問題,以及移轉 WatchKit 或 ClockKit 程式碼。
執行需求
僅為說明文件,不隨附指令碼。它引用外部技能、Apple 文件和 WWDC 場次,部分引用的稽核流程需要 shell 存取權限來執行建置、測試、模擬器和當機符號化。

watchOS Development

You MUST use this skill for ANY watchOS-specific development including app structure, independent apps, Watch Connectivity, complications and Smart Stack widgets, controls, Live Activities on watch, background tasks, and ClockKit migration.

<!-- AXIOM_AUDITOR_INLINE_BEGIN — rewritten for Codex by scripts/build-codex.ts; do not hand-edit -->

Auditors are skills here. Where this router says "Launch some-auditor agent", invoke the matching Codex skill instead — same procedure, no Claude Code agent required.

Available: axiom-modernize.

The ones that shell out — builds, tests, simulators, crash symbolication — need shell access to run.

<!-- AXIOM_AUDITOR_INLINE_END -->

Quick Reference

Symptom / TaskReference
App structure, independent apps, watchOS 26 submission requirementsSee skills/platform-basics.md
watchOS HIG, glanceable UX, navigation modelSee skills/design-for-watchos.md
Smart Stack widgets, complications, ClockKit→WidgetKit, RelevanceKitSee skills/smart-stack-and-complications.md
Controls on watch surfaces, Live Activities on watchSee skills/controls-and-live-activities.md
Watch Connectivity (WCSession), paired-device data transfer, Family SetupSee skills/watch-connectivity.md
Xcode won't install/launch/attach to a Watch; Watch missing or unavailable in Device Hub / devicectlSee skills/watch-device-diag.md
Background tasks, freshness scheduling, TN3135 networking limitsSee skills/background-and-networking.md
BGTaskScheduler migration, deprecated WK background scheduling OS27See skills/background-and-networking.md
Foundation Models / Private Cloud Compute on the watch OS27See skills/platform-basics.md
WatchKit→SwiftUI migration, ClockKit→WidgetKit migrationSee skills/modernization.md

Cross-Suite Routes

These topics overlap with watchOS development but live in separate suites:

SwiftUI (shared iOS/watchOS/macOS)
  • View state, data flow, @Observable → See axiom-swiftui
  • Navigation basics (NavigationStack) → See axiom-swiftui
  • Layout, animations → See axiom-swiftui
Design
  • General HIG, Liquid Glass, SF Symbols, typography → See axiom-design
Accessibility
  • General VoiceOver, Dynamic Type, WCAG → See axiom-accessibility
  • watchOS-specific (VoiceOver rotor on Digital Crown, AssistiveTouch, Double Tap) → See axiom-accessibility (skills/watchos-a11y.md)
Health and workouts
  • HealthKit, HKWorkoutSession, HKLiveWorkoutBuilder, WorkoutKit → See axiom-health
  • Workout recovery, multi-device coordination → See axiom-health (skills/workouts.md)
iOS-side widgets and App Intents
  • iOS/iPadOS widgets, configuration intents, App Intents → See axiom-integration
  • Live Activities on iPhone (initiation + ActivityKit) → See axiom-integration
Concurrency
  • Swift 6 concurrency, actors, Sendable → See axiom-concurrency
New-on-watch frameworks (27 releases)
  • Foundation Models depth (sessions, @Generable, tools, PCC) → See axiom-ai; watch scoping is in skills/platform-basics.md
  • Vision framework (new on watchOS 27) → See axiom-vision
  • NowPlaying / MusicUnderstanding (new on watchOS 27) → See axiom-media

Conflict Resolution

axiom-watchos vs axiom-swiftui: When building a watchOS SwiftUI app:

  1. Use axiom-watchos for watch-specific patterns: glanceable UI, constrained navigation, Digital Crown focus, Smart Stack placement
  2. Use axiom-swiftui for cross-platform SwiftUI: state management, layout primitives, animations
  3. Both may apply: A watchOS NavigationStack with complications needs axiom-watchos for complication surfaces and axiom-swiftui for NavigationStack basics

axiom-watchos vs axiom-integration: For widgets and Live Activities:

  1. Use axiom-watchos for watch complications, Smart Stack placement, watch-side Live Activity presentation, RelevanceKit
  2. Use axiom-integration for iOS/iPadOS widgets, core ActivityKit API, App Intents

watch-device-diag vs watch-connectivity: Two independent connections fail in ways that look identical. Decide which before writing any code:

  1. Use watch-device-diag for the Mac/Xcode → Watch link (CoreDevice): install, launch, LLDB attach, a Watch that is missing or unavailable
  2. Use watch-connectivity for the iPhone app ↔ watchOS app link (WCSession): transfer-API choice, delivery semantics, background-task completion
  3. When unsure, start with watch-device-diag. Run the app without the debugger attached — if it behaves correctly, the fault is the tunnel and no WCSession change will help. Redesigning WCSession to compensate for a broken debugger tunnel is the most expensive mistake in watchOS work
  4. isReachable == false is not a transport failure — it is the expected value across ordinary lifecycle transitions and routes to watch-connectivity, not here

axiom-watchos vs axiom-health: For workouts on Apple Watch:

  1. Use axiom-watchos for watch-specific presentation: Always On display, Smart Stack placement, background mode coordination
  2. Use axiom-health for HKWorkoutSession lifecycle, HKLiveWorkoutBuilder, recovery, multi-device mirroring

Decision Tree

dot
digraph watchos {    start [label="watchOS development task" shape=ellipse];    what [label="What area?" shape=diamond];
    start -> what;    what -> "skills/platform-basics.md" [label="app structure, independent apps, submission"];    what -> "skills/design-for-watchos.md" [label="watch HIG, glanceable UX"];    what -> "skills/smart-stack-and-complications.md" [label="complications, Smart Stack, RelevanceKit"];    what -> "skills/controls-and-live-activities.md" [label="controls, watch Live Activities"];    what -> "skills/watch-connectivity.md" [label="WCSession, paired-device transfer"];    what -> "skills/watch-device-diag.md" [label="Xcode can't reach the Watch"];    what -> "skills/background-and-networking.md" [label="background tasks, BGTaskScheduler, networking limits"];    what -> "skills/platform-basics.md" [label="Foundation Models / PCC on watch"];    what -> "skills/modernization.md" [label="WatchKit/ClockKit migration"];    what -> "axiom-health" [label="workouts, HealthKit, WorkoutKit"];    what -> "axiom-swiftui" [label="general SwiftUI patterns"];    what -> "axiom-accessibility" [label="VoiceOver rotor, AssistiveTouch"];    what -> "axiom-integration" [label="iOS-side widgets, App Intents"];}

Resources

WWDC: 2021-10003, 2022-10133, 2023-10138, 2023-10029, 2023-10309, 2024-10098, 2024-10157, 2024-10205, 2025-334

Docs: /watchos-apps/building_a_watchos_app, /watchos-apps/creating-independent-watchos-apps, /watchconnectivity, /widgetkit/creating-accessory-widgets-and-watch-complications, /widgetkit/converting-a-clockkit-app, /relevancekit, /technotes/tn3135-low-level-networking-on-watchos, /technotes/tn3157-updating-your-watchos-project-for-swiftui-and-widgetkit

Skills: axiom-swiftui, axiom-design, axiom-accessibility, axiom-health, axiom-integration, axiom-concurrency, axiom-ai, axiom-vision, axiom-media

來源與署名

來源:CharlesWiltgen/Axiom位於axiom-codex/skills/axiom-watchos提交82c7fea

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架