axiom-ios-data by charleswiltgen/axiom
npx skills add https://github.com/charleswiltgen/axiom --skill axiom-ios-data对于任何数据持久化、数据库、axiom-storage、CloudKit 或序列化工作,您必须使用此技能。
在以下场景中使用此路由:
使用 SwiftData → /skill axiom-swiftdata
架构迁移 → /skill axiom-swiftdata-migration
迁移问题 → /skill axiom-swiftdata-migration-diag
从 Realm 迁移 → /skill axiom-realm-migration-ref
SwiftData 与 SQLiteData 对比 → /skill axiom-sqlitedata-migration
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
GRDB 查询 → /skill axiom-grdb
SQLiteData → /skill axiom-sqlitedata
高级 SQLiteData → /skill axiom-sqlitedata-ref
Core Data 模式 → /skill axiom-core-data
Core Data 问题 → /skill axiom-core-data-diag
数据库迁移安全性 → /skill axiom-database-migration(关键 - 防止数据丢失)
Codable 问题 → /skill axiom-codable
云同步模式 → /skill axiom-cloud-sync
CloudKit → /skill axiom-cloudkit-ref
iCloud Drive → /skill axiom-icloud-drive-ref
云同步错误 → /skill axiom-cloud-sync-diag
存储策略 → /skill axiom-storage
存储问题 → /skill axiom-storage-diag
存储管理 → /skill axiom-storage-management-ref
文件保护 → /skill axiom-file-protection-ref
tvOS 数据持久化 → /skill axiom-tvos(关键:tvOS 没有持久化本地存储)
tvOS + CloudKit → /skill axiom-sqlitedata(推荐:SyncEngine 作为持久化存储)
Core Data 审计 → 启动 core-data-auditor 代理或 /axiom:audit core-data(迁移风险、线程限制、N+1 查询、生产环境数据丢失)
Codable 审计 → 启动 codable-auditor 代理或 /axiom:audit codable(try? 吞没错误、JSONSerialization、日期处理)
iCloud 审计 → 启动 icloud-auditor 代理或 /axiom:audit icloud(权限检查、文件协调、CloudKit 反模式)
存储审计 → 启动 storage-auditor 代理或 /axiom:audit storage(错误的文件位置、缺少备份排除项、数据丢失风险)
| 想法 | 现实 |
|---|---|
| "只是添加一列,不需要迁移" | 没有迁移的架构变更会导致用户应用崩溃。database-migration 可防止数据丢失。 |
| "我会手动处理迁移" | 手动迁移会遗漏边缘情况。database-migration 涵盖回滚和测试。 |
| "简单查询,我不需要这个技能" | 查询模式可防止 N+1 和线程安全问题。该技能提供可复制的解决方案。 |
| "CloudKit 同步很简单" | CloudKit 有 15 种以上的失败模式。cloud-sync-diag 能系统地诊断它们。 |
| "我对 Codable 足够了解" | Codable 存在静默数据丢失陷阱(try? 吞没错误)。codable 技能可防止生产环境错误。 |
| "我将在 tvOS 上使用本地存储" | tvOS 没有 持久化本地存储。系统可能随时删除 Caches 目录。axiom-tvos 解释了 iCloud 优先的模式。 |
在添加/修改数据库列时,始终调用 /skill axiom-database-migration。
这可以防止:
用户:"我需要向我的 SwiftData 模型添加一列" → 调用:/skill axiom-database-migration(关键 - 防止数据丢失)
用户:"如何使用复杂过滤器查询 SwiftData?" → 调用:/skill axiom-swiftdata
用户:"CloudKit 同步不工作" → 调用:/skill axiom-cloud-sync-diag
用户:"我应该使用 SwiftData 还是 SQLiteData?" → 调用:/skill axiom-sqlitedata-migration
用户:"检查我的 Core Data 代码是否存在安全问题" → 调用:core-data-auditor 代理
用户:"在发布前扫描 Codable 反模式" → 调用:codable-auditor 代理
用户:"审计我的 iCloud 同步实现" → 调用:icloud-auditor 代理
用户:"检查我的文件是否存储在正确的位置" → 调用:storage-auditor 代理
用户:"如何在 tvOS 上持久化数据?" → 调用:/skill axiom-tvos + /skill axiom-sqlitedata
用户:"我的 tvOS 应用在两次启动之间丢失数据" → 调用:/skill axiom-tvos
每周安装量
119
代码仓库
GitHub 星标数
610
首次出现
2026年1月21日
安全审计
已安装于
opencode102
codex96
gemini-cli94
claude-code93
cursor90
github-copilot88
You MUST use this skill for ANY data persistence, database, axiom-storage, CloudKit, or serialization work.
Use this router when working with:
Working with SwiftData → /skill axiom-swiftdata Schema migration → /skill axiom-swiftdata-migration Migration issues → /skill axiom-swiftdata-migration-diag Migrating from Realm → /skill axiom-realm-migration-ref SwiftData vs SQLiteData → /skill axiom-sqlitedata-migration
GRDB queries → /skill axiom-grdb SQLiteData → /skill axiom-sqlitedata Advanced SQLiteData → /skill axiom-sqlitedata-ref Core Data patterns → /skill axiom-core-data Core Data issues → /skill axiom-core-data-diag
Database migration safety → /skill axiom-database-migration (critical - prevents data loss)
Codable issues → /skill axiom-codable
Cloud sync patterns → /skill axiom-cloud-sync CloudKit → /skill axiom-cloudkit-ref iCloud Drive → /skill axiom-icloud-drive-ref Cloud sync errors → /skill axiom-cloud-sync-diag
Storage strategy → /skill axiom-storage Storage issues → /skill axiom-storage-diag Storage management → /skill axiom-storage-management-ref File protection → /skill axiom-file-protection-ref
tvOS data persistence → /skill axiom-tvos (CRITICAL: no persistent local storage on tvOS) tvOS + CloudKit → /skill axiom-sqlitedata (recommended: SyncEngine as persistent store)
Core Data audit → Launch core-data-auditor agent or /axiom:audit core-data (migration risks, thread-confinement, N+1 queries, production data loss) Codable audit → Launch codable-auditor agent or /axiom:audit codable (try? swallowing errors, JSONSerialization, date handling) iCloud audit → Launch icloud-auditor agent or /axiom:audit icloud (entitlement checks, file coordination, CloudKit anti-patterns) Storage audit → Launch storage-auditor agent or /axiom:audit storage (wrong file locations, missing backup exclusions, data loss risks)
| Thought | Reality |
|---|---|
| "Just adding a column, no migration needed" | Schema changes without migration crash users. database-migration prevents data loss. |
| "I'll handle the migration manually" | Manual migrations miss edge cases. database-migration covers rollback and testing. |
| "Simple query, I don't need the skill" | Query patterns prevent N+1 and thread-safety issues. The skill has copy-paste solutions. |
| "CloudKit sync is straightforward" | CloudKit has 15+ failure modes. cloud-sync-diag diagnoses them systematically. |
| "I know Codable well enough" | Codable has silent data loss traps (try? swallows errors). codable skill prevents production bugs. |
| "I'll use local storage on tvOS" | tvOS has NO persistent local storage. System deletes Caches at any time. axiom-tvos explains the iCloud-first pattern. |
ALWAYS invoke/skill axiom-database-migration when adding/modifying database columns.
This prevents:
User: "I need to add a column to my SwiftData model" → Invoke: /skill axiom-database-migration (critical - prevents data loss)
User: "How do I query SwiftData with complex filters?" → Invoke: /skill axiom-swiftdata
User: "CloudKit sync isn't working" → Invoke: /skill axiom-cloud-sync-diag
User: "Should I use SwiftData or SQLiteData?" → Invoke: /skill axiom-sqlitedata-migration
User: "Check my Core Data code for safety issues" → Invoke: core-data-auditor agent
User: "Scan for Codable anti-patterns before release" → Invoke: codable-auditor agent
User: "Audit my iCloud sync implementation" → Invoke: icloud-auditor agent
User: "Check if my files are stored in the right locations" → Invoke: storage-auditor agent
User: "How do I persist data on tvOS?" → Invoke: /skill axiom-tvos + /skill axiom-sqlitedata
User: "My tvOS app loses data between launches" → Invoke: /skill axiom-tvos
Weekly Installs
119
Repository
GitHub Stars
610
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode102
codex96
gemini-cli94
claude-code93
cursor90
github-copilot88
Kotlin Exposed ORM 模式指南:DSL查询、DAO、事务管理与生产配置
913 周安装