mcpField
A
apple-app-services

apple-app-services

github.com/fandhe-ai开发484 次安装2 天前更新
代码仓库

关于 apple-app-services

apple-app-services 是面向 Apple 应用开发者的系统服务参考技能,可按任务定位 StoreKit、CloudKit、WidgetKit、通知、位置与地图、HealthKit 和身份验证相关文档。

主要功能

  1. 01按任务映射系统服务
  2. 02StoreKit 和 CloudKit 参考
  3. 03WidgetKit 与通知指引
  4. 04位置和地图参考
  5. 05HealthKit 与身份验证主题

适用场景

  1. 01实现应用内购买
  2. 02使用 CloudKit 同步数据
  3. 03构建小组件和通知
  4. 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.md
ckcontainer.md
ckdatabase.md
ckerror.md
ckfetchrecordsoperation.md
ckmodifyrecordsoperation.md
ckquery.md
ckqueryoperation.md
ckquerysubscription.md
ckrecord-id.md
ckrecord-reference.md
ckrecord.md
ckrecordzone.md
ckshare.md
cksubscription.md
cksyncengine.md
ckuseridentity.md
README.md
references/health-auth/
asauthorizationappleidcredential.md
asauthorizationappleidprovider.md
asauthorizationappleidrequest.md
asauthorizationcontroller.md
asauthorizationcontrollerdelegate.md
aswebauthenticationsession.md
authorizationcontroller.md
hkauthorizationstatus.md
hkhealthstore.md
hkobjecttype.md
hkobserverquery.md
hkquantitysample.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 で目的のページを特定する:

  1. 下記マッピング表でタスクに対応するカテゴリを探す
  2. そのカテゴリの references/{category}/README.md を参照して目的のページを特定する
  3. 該当ページの .md を Read して詳細を確認する

任务 → 类别映射

任务类别参考 README
想要实现应用内购买并了解购买流程storekitreferences/storekit/README.md
想要查看订阅状态和续订信息storekitreferences/storekit/README.md
想要使用 StoreKit UI(StoreView / SubscriptionStoreView)storekitreferences/storekit/README.md
想要验证 Transaction 并检查权益storekitreferences/storekit/README.md
想要显示促销内容、处理购买错误并判断相关订阅storekitreferences/storekit/README.md
想要请求 App Store 评分或评论(SwiftUI requestReview / RequestReviewAction)storekitreferences/storekit/README.md
想要使用 CloudKit 读取、写入和查询记录cloudkitreferences/cloudkit/README.md
想要在设备间同步 iCloud 数据cloudkitreferences/cloudkit/README.md
想要设置 CloudKit 推送通知订阅cloudkitreferences/cloudkit/README.md
想要使用 CKSyncEngine 实现持续的双向同步cloudkitreferences/cloudkit/README.md
想要处理 CloudKit 共享参与者和用户身份(CKUserIdentity)cloudkitreferences/cloudkit/README.md
想要创建和更新主屏幕小组件widgetkitreferences/widgetkit/README.md
想要实现 Live Activity / Dynamic Islandwidgetkitreferences/widgetkit/README.md
想要创建控制中心用的 ControlWidgetwidgetkitreferences/widgetkit/README.md
想要使用 TimelineProvider 控制小组件的更新计划widgetkitreferences/widgetkit/README.md
想要安排本地通知notificationsreferences/notifications/README.md
想要请求通知权限并查看设置状态notificationsreferences/notifications/README.md
想要定义通知操作按钮、类别和文本输入操作notificationsreferences/notifications/README.md
想要通过地理区域触发器发送通知notificationsreferences/notifications/README.md
想要在远程通知内容送达前对其进行处理(Notification Service Extension)notificationsreferences/notifications/README.md
想要获取当前位置并管理位置权限location-mapsreferences/location-maps/README.md
想要在 SwiftUI 的 Map 视图中显示标记和注释location-mapsreferences/location-maps/README.md
想要以声明式方式请求和诊断位置权限(CLServiceSession / 精度 authorization)location-mapsreferences/location-maps/README.md
想要在地址和坐标之间相互转换(地理编码和反向地理编码。MKGeocodingRequest / MKReverseGeocodingRequest。CLGeocoder 已弃用)location-mapsreferences/location-maps/README.md
想要设置 Look Around 或地图样式location-mapsreferences/location-maps/README.md
想要实现地理围栏、信标区域或持续的后台位置获取location-mapsreferences/location-maps/README.md
想要请求使用 HealthKit 读写健康数据的权限health-authreferences/health-auth/README.md
想要查询步数、心率、State of Mind 等样本并进行统计汇总health-authreferences/health-auth/README.md
想要实现 Sign in with Applehealth-authreferences/health-auth/README.md
想要从 SwiftUI 异步执行 Sign in with Apple / passkey(AuthorizationController)health-authreferences/health-auth/README.md
想要实现 OAuth / OpenID Connect Web 认证流程health-authreferences/health-auth/README.md

评论

支持 Markdown