axiom-cloudkit-ref

axiom-cloudkit-ref is a skill for Claude Code, Codex from ComeOnOliver/skillshub. It costs 62 tokens per session (3,851 once invoked), scanned A, original, MIT.

A reference for using Apple CloudKit to store structured app data in iCloud and keep it synchronised across devices. It covers SwiftData integration, custom sync, shared and public databases, and conflict handling.

In plain words
What is it for?
Use it when building or debugging iOS data sync with CloudKit, CKSyncEngine, CKRecord, CKDatabase, or SwiftData.
Why use it?
It helps you choose the right CloudKit approach and avoid data loss or sync mistakes when records change on multiple devices.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building or debugging iOS data sync with CloudKit, CKSyncEngine, CKRecord, CKDatabase, or SwiftData.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/comeonoliver/skillshub/axiom-cloudkit-ref
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ComeOnOliver/skillshub --skill axiom-cloudkit-ref
Clone the repo
git clone --depth 1 https://github.com/ComeOnOliver/skillshub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for axiom-cloudkit-ref

README.md
[![agentmods](https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-cloudkit-ref/github.svg)](https://agentmods.dev/skills/comeonoliver/skillshub/axiom-cloudkit-ref)
Your own site
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-cloudkit-ref"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-cloudkit-ref/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for axiom-cloudkit-ref

Your own site · 80×15
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-cloudkit-ref"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-cloudkit-ref.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,851 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.03851
Opus 5 $0.00031 $0.01925
Sonnet 5 $0.00012 $0.00770
Haiku 4.5 $0.00006 $0.00385

Measured 9d ago against content hash c0debe4963a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

axiom-cloudkit-ref scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/CharlesWiltgen/Axiom/axiom-cloudkit-ref/SKILL.md · 631 lines

How it starts

The opening of the file, as written. The whole thing — 631 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CloudKit Reference

Purpose: Comprehensive CloudKit reference for database-based iCloud storage and sync Availability: iOS 10.0+ (basic), iOS 17.0+ (CKSyncEngine), iOS 17.0+ (SwiftData integration) Context: Modern CloudKit sync via CKSyncEngine (WWDC 2023) or SwiftData integration

When to Use This Skill

Use this skill when:

  • Implementing structured data sync to iCloud
  • Choosing between SwiftData+CloudKit, CKSyncEngine, or raw CloudKit APIs
  • Setting up public/private/shared databases
  • Implementing conflict resolution
  • Debugging CloudKit sync issues
  • Monitoring CloudKit performance

NOT for: Simple file sync (use axiom-icloud-drive-ref instead)

Overview

CloudKit is for STRUCTURED DATA sync (records with relationships), not simple file sync.

Three modern approaches:

  1. SwiftData + CloudKit (Easiest, iOS 17+)
  2. CKSyncEngine (Custom persistence, iOS 17+, WWDC 2023)
  3. Raw CloudKit APIs (Maximum control, more complexity)

When to use: iOS 17+ apps with SwiftData models

Limitations:

  • Private database only (no public/shared)
  • Automatic sync (less control)
  • SwiftData constraints apply
// ✅ CORRECT: SwiftData with CloudKit sync
import SwiftData

@Model
class Task {
    var title: String
    var isCompleted: Bool
    var dueDate: Date

    init(title: String, isCompleted: Bool = false, dueDate: Date) {
        self.title = title
        self.isCompleted = isCompleted
        self.dueDate = dueDate
    }
}

// Configure CloudKit container
let container = try ModelContainer(
    for: Task.self,
    configurations: ModelConfiguration(
        cloudKitDatabase: .private("iCloud.com.example.app")
    )
)

// That's it! Sync happens automatically

Entitlements required:

  • iCloud capability
  • CloudKit container

Use axiom-swiftdata skill for SwiftData details


Approach 2: CKSyncEngine (Modern, WWDC 2023)

When to use: Custom persistence (SQLite, GRDB, JSON) with cloud sync

Read the full file on GitHub · 631 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 631 lines · 62 tokens per session scan A c0debe4963a9

Subscribe to this mod's changes

axiom-cloudkit-ref is a skill published in the GitHub repository ComeOnOliver/skillshub (63 stars, last pushed 2mo ago), licensed MIT. It adds 62 tokens to every session and 3,851 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.