プロジェクト監査。「監査して」「audit」「/audit」で発火。設計/UX/品質/テストなどの観点でコードベース全体を監査し、課題をissuesディレクトリに書き出す。実行ログで重複実行を防止。特定の差分・コミットのレビューには使わない(codex-review / cross-review を使う)。
watchos-expert
Develops watchOS applications for Apple Watch with SwiftUI, WatchKit, and WatchConnectivity. Triggers on watchOS app development, Apple Watch complications, watch-iPhone communication, HealthKit integration, workout tracking, and Watch app optimization. Use when building Apple Watch apps, Watch extensions, or companion iOS apps.
含まれるファイル(7)
- SKILL.md4.8 KB
- topics/complications.md1.9 KB
- topics/healthkit.md1.8 KB
- topics/performance.md837 B
- topics/swiftui-watchos.md1.4 KB
- topics/watch-connectivity.md2.1 KB
- topics/workout-tracking.md1.9 KB
SKILL.md(原文)
インストールする前に、エージェントに与えられる指示の中身を確認できます。
watchOS Development Expert
Build, configure, and optimize Apple Watch applications using SwiftUI, WatchKit, and watchOS-specific frameworks.
トピック別リファレンス
作業内容に応じて該当ファイルを Read してから着手する(progressive disclosure: 必要なトピックだけ読む)。
| 作業内容 | 参照ファイル |
|---|---|
| Watch アプリの基本 View / Navigation / Digital Crown / Always-on | topics/swiftui-watchos.md |
| iPhone ⇔ Watch 通信 (WatchConnectivity) | topics/watch-connectivity.md |
| Complications (WidgetKit) / Timeline Provider | topics/complications.md |
| HealthKit 連携 (認可・クエリ) | topics/healthkit.md |
| Workout トラッキング (HKWorkoutSession) | topics/workout-tracking.md |
| パフォーマンス最適化 (メモリ・バッテリー・背景処理) | topics/performance.md |
以下の Quick Reference / Project Structure / Version Compatibility / Common Issues / Testing は常に有効な横断情報。
Quick Reference
| Task | Command |
|---|---|
| Build Watch simulator | xcodebuild -destination 'platform=watchOS Simulator,name=Apple Watch Series 10 (46mm)' build |
| List Watch simulators | xcrun simctl list devices 'watchOS' |
| Pair Watch to iPhone | Use Xcode's "Devices and Simulators" window |
| Clean DerivedData | rm -rf ~/Library/Developer/Xcode/DerivedData/PROJECT-* |
Project Structure
Multi-target Watch App (with iOS companion)
MyApp/
├── MyApp/ # iOS app target
│ ├── MyAppApp.swift
│ └── ContentView.swift
├── MyWatch Watch App/ # watchOS app target
│ ├── MyWatchApp.swift
│ ├── ContentView.swift
│ └── Assets.xcassets
└── Shared/ # Shared code between iOS and watchOS
└── SharedModels.swift
Standalone Watch App
MyWatchApp/
├── MyWatchApp Watch App/
│ ├── MyWatchAppApp.swift
│ ├── ContentView.swift
│ └── Assets.xcassets
├── MyWatchApp Widgets/ # WidgetKit complications target (see topics/complications.md)
└── Package.swift # Optional SPM dependencies
watchOS Version Compatibility
API Changes by Version
| watchOS 10+ Only | watchOS 9 Compatible |
|---|---|
TabView (vertical paging, .verticalPage) | PageTabViewStyle() |
.containerBackground() | Custom backgrounds |
| New Workout APIs | WorkoutKit basics |
| Smart Stack widgets | Basic complications |
Minimum Deployment Target
# XcodeGen project.yml
options:
deploymentTarget:
watchOS: "9.0"
Common Issues
| Error | Solution |
|---|---|
| Watch simulator not paired | Open Xcode → Window → Devices and Simulators → Pair with iPhone simulator |
| WCSession not reachable | Check both Watch and iPhone apps are running, use transferUserInfo for queued delivery |
| Complication not updating | Ensure Timeline returns proper refresh policy, call WidgetCenter.shared.reloadAllTimelines() |
| HealthKit authorization failed | Check entitlements and Info.plist descriptions are set |
| Background refresh not working | Verify WKApplication background modes capability enabled |
Testing on Simulator
- Open Xcode → Window → Devices and Simulators
- Create iPhone and Watch simulator pair
- Select Watch scheme in Xcode
- Choose paired Watch simulator as destination
- Run (
Cmd + R)
Tip: Test WatchConnectivity by running both iPhone and Watch apps simultaneously in their respective simulators.
Resources
- watchOS Human Interface Guidelines
- WatchKit Documentation
- WidgetKit for watchOS
- HealthKit
- WatchConnectivity
- WorkoutKit
Source
Custom skill created based on Apple's official watchOS documentation and best practices.
レビュー
まだレビューはありません。使ってみた感想をお寄せください。
同じリポジトリのスキル
概要と使いどころ
AVFoundation (AVPlayer / AVPlayerLayer / AVPlayerItemVideoOutput / AVAsset) の落とし穴・文書化されていない実装挙動・debugging チェックリストを集約した reference skill。Swift / Objective-C で AVPlayer を使った動画再生 / seek / scrub / frame stepping を実装・debug するときに発火。VLCKit ではなく **AVFoundation 系** の問題に特化。
このセッションで行った変更をコミットする。「コミットして」「commit」「/c」で発火。push はしない/クレデンシャルは混入させない。
ディレクトリ・レイヤーごとに置いた CLAUDE.md と README.md が実体 (コード・コマンド・構成) とずれていないかを点検し、裏の取れた乖離だけを直す。引数で対象のディレクトリを任意に指定できる (省略時は repo 全体)。「CLAUDE.md を refresh して」「README が古くないか見て」「claude-md-refresh」「/claude-md-refresh」で発火。issues/ の更新漏れは issue-writeback / issue-sync の担当で、この skill は扱わない。
Codex が設計・実装を担い、Claude が要件確定・成果物の検証・反復・commit/push を管理する。「codex に書かせて」「codex メインで実装」「codex-drive」で発火。大きめの機能・移植・プロトコル実装向け。余剰トークンを厚く使う運用も選べる。
タスク着手時に codex にリードしてもらうワークフロー。codex に設計/方針を主導(リード)させ、その方針に沿って Claude が実装し、実装後は codex で設計適合・実装正当性・敵対的(red team)の 3 観点でレビューする。余っている codex トークンを積極的に消費したい時に使う。「codexにリードしてもらって」「設計から codex に任せて」「タスクを codex 主導で」「codex-lead」「/codex-lead」で発火。