跳到正文
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(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

audit

免费

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

中文简介正在准备中。当前显示原文说明。

jiikko/dotfiles22026年10月20日 更新

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

中文简介正在准备中。当前显示原文说明。

jiikko/dotfiles22026年10月20日 更新

c

免费

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

中文简介正在准备中。当前显示原文说明。

jiikko/dotfiles22026年10月20日 更新

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

中文简介正在准备中。当前显示原文说明。

jiikko/dotfiles22026年10月20日 更新

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

中文简介正在准备中。当前显示原文说明。

jiikko/dotfiles22026年10月20日 更新

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

中文简介正在准备中。当前显示原文说明。

jiikko/dotfiles22026年10月20日 更新

查看 jiikko 的全部技能

报告此技能的问题