axiom-ios-integration

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

iOS System Integration Router

iOS系统集成路由

You MUST use this skill for ANY iOS system integration including Siri, Shortcuts, widgets, in-app purchases, camera, photo library, audio, axiom-haptics, and more.
在集成任意iOS系统功能(包括Siri、快捷指令、小组件、应用内购买、相机、照片库、音频、Core Haptics等)时,你必须使用此技能。

When to Use

使用场景

Use this router for:
  • Siri & Shortcuts (App Intents)
  • Apple Intelligence integration
  • Widgets & Live Activities
  • In-app purchases (StoreKit)
  • Camera capture (AVCaptureSession)
  • Photo library & pickers (PHPicker, PhotosPicker)
  • Audio & haptics
  • Localization
  • Privacy & permissions
  • Spotlight search
  • App discoverability
  • Background processing (BGTaskScheduler)
  • Location services (Core Location)
在以下场景中使用此路由:
  • Siri与快捷指令(App Intents)
  • Apple Intelligence集成
  • 小组件与Live Activities
  • 应用内购买(StoreKit)
  • 相机捕获(AVCaptureSession)
  • 照片库与选择器(PHPicker、PhotosPicker)
  • 音频与触觉反馈
  • 本地化
  • 隐私与权限
  • Spotlight搜索
  • 应用可发现性
  • 后台处理(BGTaskScheduler)
  • 定位服务(Core Location)

Routing Logic

路由逻辑

Apple Intelligence & Siri

Apple Intelligence与Siri

App Intents
/skill axiom-app-intents-ref
App Shortcuts
/skill axiom-app-shortcuts-ref
App discoverability
/skill axiom-app-discoverability
Core Spotlight
/skill axiom-core-spotlight-ref
App Intents
/skill axiom-app-intents-ref
App Shortcuts
/skill axiom-app-shortcuts-ref
应用可发现性
/skill axiom-app-discoverability
Core Spotlight
/skill axiom-core-spotlight-ref

Widgets & Extensions

小组件与扩展

Widgets/Live Activities
/skill axiom-extensions-widgets
Widget reference
/skill axiom-extensions-widgets-ref
小组件/Live Activities
/skill axiom-extensions-widgets
小组件参考
/skill axiom-extensions-widgets-ref

In-App Purchases

应用内购买

IAP implementation
/skill axiom-in-app-purchases
StoreKit 2 reference
/skill axiom-storekit-ref
IAP实现
/skill axiom-in-app-purchases
StoreKit 2参考
/skill axiom-storekit-ref

Camera & Photos

相机与照片

Camera capture implementation
/skill axiom-camera-capture
Camera API reference
/skill axiom-camera-capture-ref
Camera debugging
/skill axiom-camera-capture-diag
Photo pickers & library
/skill axiom-photo-library
Photo library API reference
/skill axiom-photo-library-ref
相机捕获实现
/skill axiom-camera-capture
相机API参考
/skill axiom-camera-capture-ref
相机调试
/skill axiom-camera-capture-diag
照片选择器与图库
/skill axiom-photo-library
照片库API参考
/skill axiom-photo-library-ref

Audio & Haptics

音频与触觉反馈

Audio (AVFoundation)
/skill axiom-avfoundation-ref
Haptics
/skill axiom-haptics
Now Playing
/skill axiom-now-playing
CarPlay Now Playing
/skill axiom-now-playing-carplay
MusicKit integration
/skill axiom-now-playing-musickit
音频(AVFoundation)
/skill axiom-avfoundation-ref
触觉反馈
/skill axiom-haptics
Now Playing
/skill axiom-now-playing
CarPlay Now Playing
/skill axiom-now-playing-carplay
MusicKit集成
/skill axiom-now-playing-musickit

Localization & Privacy

本地化与隐私

Localization
/skill axiom-localization
Privacy UX
/skill axiom-privacy-ux
本地化
/skill axiom-localization
隐私用户体验
/skill axiom-privacy-ux

Background Processing

后台处理

BGTaskScheduler implementation
/skill axiom-background-processing
Background task debugging
/skill axiom-background-processing-diag
Background task API reference
/skill axiom-background-processing-ref
BGTaskScheduler实现
/skill axiom-background-processing
后台任务调试
/skill axiom-background-processing-diag
后台任务API参考
/skill axiom-background-processing-ref

Location Services

定位服务

Implementation patterns
/skill axiom-core-location
API reference
/skill axiom-core-location-ref
Debugging location issues
/skill axiom-core-location-diag
实现模式
/skill axiom-core-location
API参考
/skill axiom-core-location-ref
定位问题调试
/skill axiom-core-location-diag

Decision Tree

决策树

  1. App Intents / Siri / Apple Intelligence? → app-intents-ref
  2. App Shortcuts? → app-shortcuts-ref
  3. App discoverability / Spotlight? → app-discoverability, core-spotlight-ref
  4. Widgets / Live Activities? → extensions-widgets, extensions-widgets-ref
  5. In-app purchases / StoreKit? → in-app-purchases, storekit-ref
  6. Camera capture? → camera-capture (patterns), camera-capture-diag (debugging), camera-capture-ref (API)
  7. Photo pickers / library? → photo-library (patterns), photo-library-ref (API)
  8. Audio / AVFoundation? → avfoundation-ref
  9. Now Playing? → now-playing, now-playing-carplay, now-playing-musickit
  10. Haptics? → haptics
  11. Localization? → localization
  12. Privacy / permissions? → privacy-ux
  13. Background processing? → background-processing (patterns), background-processing-diag (debugging), background-processing-ref (API)
  14. Location services? → core-location (patterns), core-location-diag (debugging), core-location-ref (API)
  1. App Intents / Siri / Apple Intelligence?→ app-intents-ref
  2. App Shortcuts?→ app-shortcuts-ref
  3. 应用可发现性 / Spotlight?→ app-discoverability, core-spotlight-ref
  4. 小组件 / Live Activities?→ extensions-widgets, extensions-widgets-ref
  5. 应用内购买 / StoreKit?→ in-app-purchases, storekit-ref
  6. 相机捕获?→ camera-capture(模式), camera-capture-diag(调试), camera-capture-ref(API)
  7. 照片选择器 / 图库?→ photo-library(模式), photo-library-ref(API)
  8. 音频 / AVFoundation?→ avfoundation-ref
  9. Now Playing?→ now-playing, now-playing-carplay, now-playing-musickit
  10. 触觉反馈?→ haptics
  11. 本地化?→ localization
  12. 隐私 / 权限?→ privacy-ux
  13. 后台处理?→ background-processing(模式), background-processing-diag(调试), background-processing-ref(API)
  14. 定位服务?→ core-location(模式), core-location-diag(调试), core-location-ref(API)

Anti-Rationalization

常见误区纠正

ThoughtReality
"App Intents are just a protocol conformance"App Intents have parameter validation, entity queries, and background execution. app-intents-ref covers all.
"Widgets are simple, I've done them before"Widgets have timeline, interactivity, and Live Activity patterns that evolve yearly. extensions-widgets is current.
"I'll add haptics with a simple API call"Haptic design has patterns for each interaction type. haptics skill matches HIG guidelines.
"Localization is just String Catalogs"Xcode 26 has type-safe localization, generated symbols, and #bundle macro. localization skill is current.
"Camera capture is just AVCaptureSession setup"Camera has interruption handlers, rotation, and threading requirements. camera-capture covers all.
错误想法实际情况
"App Intents只是协议实现而已"App Intents包含参数验证、实体查询和后台执行逻辑,app-intents-ref技能涵盖所有相关内容。
"小组件很简单,我之前做过"小组件的时间线、交互性和Live Activity模式每年都在更新,extensions-widgets技能提供最新的实现方案。
"我用简单的API调用就能添加触觉反馈"触觉设计针对不同交互类型有对应的模式,haptics技能完全符合HIG指南。
"本地化只是用字符串目录而已"Xcode 26引入了类型安全本地化、生成符号和#bundle宏,localization技能包含这些最新内容。
"相机捕获只是设置AVCaptureSession而已"相机开发需要处理中断回调、旋转和线程要求,camera-capture技能涵盖所有这些细节。

Example Invocations

调用示例

User: "How do I add Siri support for my app?" → Invoke:
/skill axiom-app-intents-ref
User: "My widget isn't updating" → Invoke:
/skill axiom-extensions-widgets
User: "Implement in-app purchases with StoreKit 2" → Invoke:
/skill axiom-in-app-purchases
User: "How do I localize my app strings?" → Invoke:
/skill axiom-localization
User: "Implement haptic feedback for button taps" → Invoke:
/skill axiom-haptics
User: "How do I set up a camera preview?" → Invoke:
/skill axiom-camera-capture
User: "Camera freezes when I get a phone call" → Invoke:
/skill axiom-camera-capture-diag
User: "What is RotationCoordinator?" → Invoke:
/skill axiom-camera-capture-ref
User: "How do I let users pick photos in SwiftUI?" → Invoke:
/skill axiom-photo-library
User: "User can't see their photos after granting access" → Invoke:
/skill axiom-photo-library
User: "How do I save a photo to the camera roll?" → Invoke:
/skill axiom-photo-library
User: "My background task never runs" → Invoke:
/skill axiom-background-processing-diag
User: "How do I implement BGTaskScheduler?" → Invoke:
/skill axiom-background-processing
User: "What's the difference between BGAppRefreshTask and BGProcessingTask?" → Invoke:
/skill axiom-background-processing-ref
User: "How do I implement geofencing?" → Invoke:
/skill axiom-core-location
User: "Location updates not working in background" → Invoke:
/skill axiom-core-location-diag
User: "What is CLServiceSession?" → Invoke:
/skill axiom-core-location-ref
用户:"如何为我的应用添加Siri支持?" → 调用:
/skill axiom-app-intents-ref
用户:"我的小组件不更新了" → 调用:
/skill axiom-extensions-widgets
用户:"用StoreKit 2实现应用内购买" → 调用:
/skill axiom-in-app-purchases
用户:"如何本地化我的应用字符串?" → 调用:
/skill axiom-localization
用户:"为按钮点击添加触觉反馈" → 调用:
/skill axiom-haptics
用户:"如何设置相机预览?" → 调用:
/skill axiom-camera-capture
用户:"来电时相机卡住了" → 调用:
/skill axiom-camera-capture-diag
用户:"RotationCoordinator是什么?" → 调用:
/skill axiom-camera-capture-ref
用户:"如何在SwiftUI中让用户选择照片?" → 调用:
/skill axiom-photo-library
用户:"用户授予权限后仍无法查看照片" → 调用:
/skill axiom-photo-library
用户:"如何将照片保存到相机胶卷?" → 调用:
/skill axiom-photo-library
用户:"我的后台任务从未运行" → 调用:
/skill axiom-background-processing-diag
用户:"如何实现BGTaskScheduler?" → 调用:
/skill axiom-background-processing
用户:"BGAppRefreshTask和BGProcessingTask有什么区别?" → 调用:
/skill axiom-background-processing-ref
用户:"如何实现地理围栏?" → 调用:
/skill axiom-core-location
用户:"后台定位更新不工作" → 调用:
/skill axiom-core-location-diag
用户:"CLServiceSession是什么?" → 调用:
/skill axiom-core-location-ref