本文へ移動
cccskills
無料GitHub で公開

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-ontopics/swiftui-watchos.md
iPhone ⇔ Watch 通信 (WatchConnectivity)topics/watch-connectivity.md
Complications (WidgetKit) / Timeline Providertopics/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

TaskCommand
Build Watch simulatorxcodebuild -destination 'platform=watchOS Simulator,name=Apple Watch Series 10 (46mm)' build
List Watch simulatorsxcrun simctl list devices 'watchOS'
Pair Watch to iPhoneUse Xcode's "Devices and Simulators" window
Clean DerivedDatarm -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+ OnlywatchOS 9 Compatible
TabView (vertical paging, .verticalPage)PageTabViewStyle()
.containerBackground()Custom backgrounds
New Workout APIsWorkoutKit basics
Smart Stack widgetsBasic complications

Minimum Deployment Target

# XcodeGen project.yml
options:
  deploymentTarget:
    watchOS: "9.0"

Common Issues

ErrorSolution
Watch simulator not pairedOpen Xcode → Window → Devices and Simulators → Pair with iPhone simulator
WCSession not reachableCheck both Watch and iPhone apps are running, use transferUserInfo for queued delivery
Complication not updatingEnsure Timeline returns proper refresh policy, call WidgetCenter.shared.reloadAllTimelines()
HealthKit authorization failedCheck entitlements and Info.plist descriptions are set
Background refresh not workingVerify WKApplication background modes capability enabled

Testing on Simulator

  1. Open Xcode → Window → Devices and Simulators
  2. Create iPhone and Watch simulator pair
  3. Select Watch scheme in Xcode
  4. Choose paired Watch simulator as destination
  5. Run (Cmd + R)

Tip: Test WatchConnectivity by running both iPhone and Watch apps simultaneously in their respective simulators.

Resources

Source

Custom skill created based on Apple's official watchOS documentation and best practices.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

audit

無料日本語概要

プロジェクト監査。「監査して」「audit」「/audit」で発火。設計/UX/品質/テストなどの観点でコードベース全体を監査し、課題をissuesディレクトリに書き出す。実行ログで重複実行を防止。特定の差分・コミットのレビューには使わない(codex-review / cross-review を使う)。

jiikko/dotfiles22026年10月11日 更新

avfoundation-reference

無料日本語概要

AVFoundation (AVPlayer / AVPlayerLayer / AVPlayerItemVideoOutput / AVAsset) の落とし穴・文書化されていない実装挙動・debugging チェックリストを集約した reference skill。Swift / Objective-C で AVPlayer を使った動画再生 / seek / scrub / frame stepping を実装・debug するときに発火。VLCKit ではなく **AVFoundation 系** の問題に特化。

jiikko/dotfiles22026年10月11日 更新

c

無料日本語概要

このセッションで行った変更をコミットする。「コミットして」「commit」「/c」で発火。push はしない/クレデンシャルは混入させない。

jiikko/dotfiles22026年10月11日 更新

claude-md-refresh

無料日本語概要

ディレクトリ・レイヤーごとに置いた CLAUDE.md と README.md が実体 (コード・コマンド・構成) とずれていないかを点検し、裏の取れた乖離だけを直す。引数で対象のディレクトリを任意に指定できる (省略時は repo 全体)。「CLAUDE.md を refresh して」「README が古くないか見て」「claude-md-refresh」「/claude-md-refresh」で発火。issues/ の更新漏れは issue-writeback / issue-sync の担当で、この skill は扱わない。

jiikko/dotfiles22026年10月11日 更新

codex-drive

無料日本語概要

Codex が設計・実装を担い、Claude が要件確定・成果物の検証・反復・commit/push を管理する。「codex に書かせて」「codex メインで実装」「codex-drive」で発火。大きめの機能・移植・プロトコル実装向け。余剰トークンを厚く使う運用も選べる。

jiikko/dotfiles22026年10月11日 更新

codex-lead

無料日本語概要

タスク着手時に codex にリードしてもらうワークフロー。codex に設計/方針を主導(リード)させ、その方針に沿って Claude が実装し、実装後は codex で設計適合・実装正当性・敵対的(red team)の 3 観点でレビューする。余っている codex トークンを積極的に消費したい時に使う。「codexにリードしてもらって」「設計から codex に任せて」「タスクを codex 主導で」「codex-lead」「/codex-lead」で発火。

jiikko/dotfiles22026年10月11日 更新

jiikko のスキルをすべて見る

このスキルの問題を報告する