← ClaudeAtlas

apple-cktool-jslisted

Builds and troubleshoots CloudKit automation with Apple's CKTool JS packages, including `@apple/cktool.database`, `@apple/cktool.target.nodejs`, and `@apple/cktool.target.browser`. Use when Codex needs typed JavaScript or TypeScript for CloudKit schema import, export, validation, or reset; container and team discovery; record queries, creation, updates, or deletion; Node.js or browser configuration; Promise-based API calls; CI integration; token injection; or migration from `xcrun cktool` shell scripts. Use `apple-cktool` alongside this skill for the Xcode-bundled macOS CLI.
bastos/skills · ★ 7 · AI & Automation · score 68
Install: claude install-skill bastos/skills
# Apple CKTool JS Use CKTool JS to embed CloudKit Console API operations in JavaScript or TypeScript automation. Prefer TypeScript and Node.js for schema management and CI because they provide strong parameter checks without exposing long-lived credentials to browser bundles. ## Choose the right companion | Need | Use | |---|---| | Typed, reusable automation or non-macOS CI | This skill | | Browser-targeted CKTool JS integration | This skill, with the browser credential rules | | One-off shell commands on a Mac | `apple-cktool` | | Xcode scheme or Run Script integration | Usually `apple-cktool` | Use both skills when maintaining equivalent local CLI and portable CI paths. Keep CloudKit target identifiers, schema files, token roles, and destructive-operation guards consistent. ## Follow the implementation workflow 1. **Inspect the project.** Determine package manager, module system, TypeScript configuration, Node/browser target, existing environment-variable conventions, and test runner. Reuse the repository's patterns. 2. **Verify package versions.** Query the registry instead of copying versions from an old sample: ```bash npm view @apple/cktool.database version npm view @apple/cktool.target.nodejs version npm view @apple/cktool.target.browser version ``` Keep `@apple/cktool.database` and the selected target package on the same exact release when possible. Read `references/setup-and-authentication.md`. 3. **Select one target adapter.** Install `@a