关于 apple-app-services
apple-app-services 是面向 Apple 应用开发者的系统服务参考技能,可按任务定位 StoreKit、CloudKit、WidgetKit、通知、位置与地图、HealthKit 和身份验证相关文档。
主要功能
- 01按任务映射系统服务
- 02StoreKit 和 CloudKit 参考
- 03WidgetKit 与通知指引
- 04位置和地图参考
- 05HealthKit 与身份验证主题
适用场景
- 01实现应用内购买
- 02使用 CloudKit 同步数据
- 03构建小组件和通知
- 04管理位置或身份验证
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ fandhe-ai/ agent-reference-skills --skill apple-app-services安装后在 Claude Code 中输入/apple-app-services确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/cloudkit/ckasset.mdckcontainer.mdckdatabase.mdckerror.mdckfetchrecordsoperation.mdckmodifyrecordsoperation.mdckquery.mdckqueryoperation.mdckquerysubscription.mdckrecord-id.mdckrecord-reference.mdckrecord.mdckrecordzone.mdckshare.mdcksubscription.mdcksyncengine.mdckuseridentity.mdREADME.mdreferences/health-auth/asauthorizationappleidcredential.mdasauthorizationappleidprovider.mdasauthorizationappleidrequest.mdasauthorizationcontroller.mdasauthorizationcontrollerdelegate.mdaswebauthenticationsession.mdauthorizationcontroller.mdhkauthorizationstatus.mdhkhealthstore.mdhkobjecttype.mdhkobserverquery.mdhkquantitysample.md详细介绍
ディレクトリ構成
skills/apple-app-services/
SKILL.md
references/
storekit/
README.md
appstore.md
apptransaction.md
message.md
product-promotioninfo.md
product-purchaseerror.md
product-purchaseoption.md
product-purchaseresult.md
product-subscriptioninfo.md
product-subscriptioninfo-renewalstate.md
product-subscriptioninfo-status.md
product-subscriptionrelationship.md
product.md
requestreviewaction.md
storeview.md
subscriptionstoreview.md
transaction.md
transaction-currententitlements.md
transaction-updates.md
verificationresult.md
cloudkit/
README.md
ckcontainer.md
ckdatabase.md
ckrecord.md
ckrecord-id.md
ckrecord-reference.md
ckquery.md
ckqueryoperation.md
ckfetchrecordsoperation.md
ckmodifyrecordsoperation.md
cksubscription.md
ckquerysubscription.md
ckasset.md
ckshare.md
ckuseridentity.md
ckerror.md
ckrecordzone.md
cksyncengine.md
widgetkit/
README.md
widget.md
widgetconfiguration.md
staticconfiguration.md
appintentconfiguration.md
timelineprovider.md
appintenttimelineprovider.md
timelineentry.md
timeline.md
timelinereloadpolicy.md
timelineprovidercontext.md
widgetcenter.md
widgetbundle.md
widgetfamily.md
controlwidget.md
staticcontrolconfiguration.md
activityconfiguration.md
activitykit-activity.md
notifications/
README.md
UNCalendarNotificationTrigger.md
UNLocationNotificationTrigger.md
UNMutableNotificationContent.md
UNNotification.md
UNNotificationAction.md
UNNotificationAttachment.md
UNNotificationCategory.md
UNNotificationContent.md
UNNotificationContentProviding.md
UNNotificationRequest.md
UNNotificationResponse.md
UNNotificationServiceExtension.md
UNNotificationSettings.md
UNNotificationSound.md
UNNotificationTrigger.md
UNPushNotificationTrigger.md
UNTextInputNotificationAction.md
UNTextInputNotificationResponse.md
UNTimeIntervalNotificationTrigger.md
UNUserNotificationCenter.md
UNUserNotificationCenterDelegate.md
requestAuthorization.md
location-maps/
README.md
Annotation.md
CLAccuracyAuthorization.md
CLAuthorizationStatus.md
CLBackgroundActivitySession.md
CLGeocoder.md
CLLocation.md
CLLocationCoordinate2D.md
CLLocationManager.md
CLLocationManagerDelegate.md
CLLocationUpdate.md
CLMonitor.md
CLPlacemark.md
CLRegion.md
CLServiceSession.md
LookAroundPreview.md
Map.md
MapCameraPosition.md
MapCircle.md
MapPolyline.md
MapStyle.md
Marker.md
MKCoordinateRegion.md
MKGeocodingRequest.md
MKMapItem.md
MKReverseGeocodingRequest.md
health-auth/
README.md
asauthorizationappleidcredential.md
asauthorizationappleidprovider.md
asauthorizationappleidrequest.md
asauthorizationcontroller.md
asauthorizationcontrollerdelegate.md
aswebauthenticationsession.md
authorizationcontroller.md
hkauthorizationstatus.md
hkhealthstore.md
hkobjecttype.md
hkobserverquery.md
hkquantitysample.md
hkquantitytype.md
hkquery.md
hksamplequery.md
hksampletype.md
hkstatisticscollectionquery.md
hkstatisticsquery.md
hkstateofmind.md
hkunit.md
signinwithapplebutton.md
探索手順
タスクからカテゴリを引き、カテゴリの README.md で目的のページを特定する:
- 下記マッピング表でタスクに対応するカテゴリを探す
- そのカテゴリの
references/{category}/README.mdを参照して目的のページを特定する - 該当ページの
.mdを Read して詳細を確認する
任务 → 类别映射
| 任务 | 类别 | 参考 README |
|---|---|---|
| 想要实现应用内购买并了解购买流程 | storekit | references/storekit/README.md |
| 想要查看订阅状态和续订信息 | storekit | references/storekit/README.md |
| 想要使用 StoreKit UI(StoreView / SubscriptionStoreView) | storekit | references/storekit/README.md |
| 想要验证 Transaction 并检查权益 | storekit | references/storekit/README.md |
| 想要显示促销内容、处理购买错误并判断相关订阅 | storekit | references/storekit/README.md |
| 想要请求 App Store 评分或评论(SwiftUI requestReview / RequestReviewAction) | storekit | references/storekit/README.md |
| 想要使用 CloudKit 读取、写入和查询记录 | cloudkit | references/cloudkit/README.md |
| 想要在设备间同步 iCloud 数据 | cloudkit | references/cloudkit/README.md |
| 想要设置 CloudKit 推送通知订阅 | cloudkit | references/cloudkit/README.md |
| 想要使用 CKSyncEngine 实现持续的双向同步 | cloudkit | references/cloudkit/README.md |
| 想要处理 CloudKit 共享参与者和用户身份(CKUserIdentity) | cloudkit | references/cloudkit/README.md |
| 想要创建和更新主屏幕小组件 | widgetkit | references/widgetkit/README.md |
| 想要实现 Live Activity / Dynamic Island | widgetkit | references/widgetkit/README.md |
| 想要创建控制中心用的 ControlWidget | widgetkit | references/widgetkit/README.md |
| 想要使用 TimelineProvider 控制小组件的更新计划 | widgetkit | references/widgetkit/README.md |
| 想要安排本地通知 | notifications | references/notifications/README.md |
| 想要请求通知权限并查看设置状态 | notifications | references/notifications/README.md |
| 想要定义通知操作按钮、类别和文本输入操作 | notifications | references/notifications/README.md |
| 想要通过地理区域触发器发送通知 | notifications | references/notifications/README.md |
| 想要在远程通知内容送达前对其进行处理(Notification Service Extension) | notifications | references/notifications/README.md |
| 想要获取当前位置并管理位置权限 | location-maps | references/location-maps/README.md |
| 想要在 SwiftUI 的 Map 视图中显示标记和注释 | location-maps | references/location-maps/README.md |
| 想要以声明式方式请求和诊断位置权限(CLServiceSession / 精度 authorization) | location-maps | references/location-maps/README.md |
| 想要在地址和坐标之间相互转换(地理编码和反向地理编码。MKGeocodingRequest / MKReverseGeocodingRequest。CLGeocoder 已弃用) | location-maps | references/location-maps/README.md |
| 想要设置 Look Around 或地图样式 | location-maps | references/location-maps/README.md |
| 想要实现地理围栏、信标区域或持续的后台位置获取 | location-maps | references/location-maps/README.md |
| 想要请求使用 HealthKit 读写健康数据的权限 | health-auth | references/health-auth/README.md |
| 想要查询步数、心率、State of Mind 等样本并进行统计汇总 | health-auth | references/health-auth/README.md |
| 想要实现 Sign in with Apple | health-auth | references/health-auth/README.md |
| 想要从 SwiftUI 异步执行 Sign in with Apple / passkey(AuthorizationController) | health-auth | references/health-auth/README.md |
| 想要实现 OAuth / OpenID Connect Web 认证流程 | health-auth | references/health-auth/README.md |
评论
支持 Markdown