axiom-ios-integration
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseiOS 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 →
App Shortcuts →
App discoverability →
Core Spotlight →
/skill axiom-app-intents-ref/skill axiom-app-shortcuts-ref/skill axiom-app-discoverability/skill axiom-core-spotlight-refApp Intents →
App Shortcuts →
应用可发现性 →
Core Spotlight →
/skill axiom-app-intents-ref/skill axiom-app-shortcuts-ref/skill axiom-app-discoverability/skill axiom-core-spotlight-refWidgets & Extensions
小组件与扩展
Widgets/Live Activities →
Widget reference →
/skill axiom-extensions-widgets/skill axiom-extensions-widgets-ref小组件/Live Activities →
小组件参考 →
/skill axiom-extensions-widgets/skill axiom-extensions-widgets-refIn-App Purchases
应用内购买
IAP implementation →
StoreKit 2 reference →
/skill axiom-in-app-purchases/skill axiom-storekit-refIAP实现 →
StoreKit 2参考 →
/skill axiom-in-app-purchases/skill axiom-storekit-refCamera & Photos
相机与照片
Camera capture implementation →
Camera API reference →
Camera debugging →
Photo pickers & library →
Photo library API reference →
/skill axiom-camera-capture/skill axiom-camera-capture-ref/skill axiom-camera-capture-diag/skill axiom-photo-library/skill axiom-photo-library-ref相机捕获实现 →
相机API参考 →
相机调试 →
照片选择器与图库 →
照片库API参考 →
/skill axiom-camera-capture/skill axiom-camera-capture-ref/skill axiom-camera-capture-diag/skill axiom-photo-library/skill axiom-photo-library-refAudio & Haptics
音频与触觉反馈
Audio (AVFoundation) →
Haptics →
Now Playing →
CarPlay Now Playing →
MusicKit integration →
/skill axiom-avfoundation-ref/skill axiom-haptics/skill axiom-now-playing/skill axiom-now-playing-carplay/skill axiom-now-playing-musickit音频(AVFoundation) →
触觉反馈 →
Now Playing →
CarPlay Now Playing →
MusicKit集成 →
/skill axiom-avfoundation-ref/skill axiom-haptics/skill axiom-now-playing/skill axiom-now-playing-carplay/skill axiom-now-playing-musickitLocalization & Privacy
本地化与隐私
Localization →
Privacy UX →
/skill axiom-localization/skill axiom-privacy-ux本地化 →
隐私用户体验 →
/skill axiom-localization/skill axiom-privacy-uxBackground Processing
后台处理
BGTaskScheduler implementation →
Background task debugging →
Background task API reference →
/skill axiom-background-processing/skill axiom-background-processing-diag/skill axiom-background-processing-refBGTaskScheduler实现 →
后台任务调试 →
后台任务API参考 →
/skill axiom-background-processing/skill axiom-background-processing-diag/skill axiom-background-processing-refLocation Services
定位服务
Implementation patterns →
API reference →
Debugging location issues →
/skill axiom-core-location/skill axiom-core-location-ref/skill axiom-core-location-diag实现模式 →
API参考 →
定位问题调试 →
/skill axiom-core-location/skill axiom-core-location-ref/skill axiom-core-location-diagDecision Tree
决策树
- App Intents / Siri / Apple Intelligence? → app-intents-ref
- App Shortcuts? → app-shortcuts-ref
- App discoverability / Spotlight? → app-discoverability, core-spotlight-ref
- Widgets / Live Activities? → extensions-widgets, extensions-widgets-ref
- In-app purchases / StoreKit? → in-app-purchases, storekit-ref
- Camera capture? → camera-capture (patterns), camera-capture-diag (debugging), camera-capture-ref (API)
- Photo pickers / library? → photo-library (patterns), photo-library-ref (API)
- Audio / AVFoundation? → avfoundation-ref
- Now Playing? → now-playing, now-playing-carplay, now-playing-musickit
- Haptics? → haptics
- Localization? → localization
- Privacy / permissions? → privacy-ux
- Background processing? → background-processing (patterns), background-processing-diag (debugging), background-processing-ref (API)
- Location services? → core-location (patterns), core-location-diag (debugging), core-location-ref (API)
- App Intents / Siri / Apple Intelligence?→ app-intents-ref
- App Shortcuts?→ app-shortcuts-ref
- 应用可发现性 / Spotlight?→ app-discoverability, core-spotlight-ref
- 小组件 / Live Activities?→ extensions-widgets, extensions-widgets-ref
- 应用内购买 / StoreKit?→ in-app-purchases, storekit-ref
- 相机捕获?→ camera-capture(模式), camera-capture-diag(调试), camera-capture-ref(API)
- 照片选择器 / 图库?→ photo-library(模式), photo-library-ref(API)
- 音频 / AVFoundation?→ avfoundation-ref
- Now Playing?→ now-playing, now-playing-carplay, now-playing-musickit
- 触觉反馈?→ haptics
- 本地化?→ localization
- 隐私 / 权限?→ privacy-ux
- 后台处理?→ background-processing(模式), background-processing-diag(调试), background-processing-ref(API)
- 定位服务?→ core-location(模式), core-location-diag(调试), core-location-ref(API)
Anti-Rationalization
常见误区纠正
| Thought | Reality |
|---|---|
| "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-refUser: "My widget isn't updating"
→ Invoke:
/skill axiom-extensions-widgetsUser: "Implement in-app purchases with StoreKit 2"
→ Invoke:
/skill axiom-in-app-purchasesUser: "How do I localize my app strings?"
→ Invoke:
/skill axiom-localizationUser: "Implement haptic feedback for button taps"
→ Invoke:
/skill axiom-hapticsUser: "How do I set up a camera preview?"
→ Invoke:
/skill axiom-camera-captureUser: "Camera freezes when I get a phone call"
→ Invoke:
/skill axiom-camera-capture-diagUser: "What is RotationCoordinator?"
→ Invoke:
/skill axiom-camera-capture-refUser: "How do I let users pick photos in SwiftUI?"
→ Invoke:
/skill axiom-photo-libraryUser: "User can't see their photos after granting access"
→ Invoke:
/skill axiom-photo-libraryUser: "How do I save a photo to the camera roll?"
→ Invoke:
/skill axiom-photo-libraryUser: "My background task never runs"
→ Invoke:
/skill axiom-background-processing-diagUser: "How do I implement BGTaskScheduler?"
→ Invoke:
/skill axiom-background-processingUser: "What's the difference between BGAppRefreshTask and BGProcessingTask?"
→ Invoke:
/skill axiom-background-processing-refUser: "How do I implement geofencing?"
→ Invoke:
/skill axiom-core-locationUser: "Location updates not working in background"
→ Invoke:
/skill axiom-core-location-diagUser: "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