apple-cktool-jslisted
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