cryptokit — Claude Code skill: what it does, how to install
Guides Swift cryptography work with Apple CryptoKit for hashes, encryption, signatures, and key exchange.
npx skills add dpearson2699/swift-ios-skills --skill cryptokit -a claude-codeWhat cryptokit does
This skill steers an agent toward Apple CryptoKit when editing Swift cryptography code. It covers SHA-2 and SHA-3 hashing, HMAC, AES-GCM, ChaChaPoly, P256, P384, P521 and Curve25519 signatures, plus ECDH, HPKE, ML-KEM, X-Wing, Secure Enclave keys, and CommonCrypto migration.
Its guidance includes one-shot and incremental hashes, HMAC verification, authenticated encryption with additional data, signing, and HKDF-based symmetric key derivation. For new Swift 6.3+ primitive code, it recommends CryptoKit over CommonCrypto and lower-level Security APIs.
Core primitives start at iOS 13+, while HPKE needs iOS 17+ and SHA-3 or post-quantum APIs need iOS 26+. That makes the deployment target a release blocker for those features.
What it helps with
- hash Swift data with SHA-256
- verify an HMAC without manual comparisons
- encrypt a message with AES-GCM
- sign data with a P256 key
- migrate CommonCrypto primitive code
Example prompts for the agent
- "Write Swift code that hashes a file incrementally with CryptoKit."
- "Add AES-GCM encryption with authenticated data to this Swift code."
- "Show P256 ECDH key agreement and derive a key with HKDF."
How to install cryptokit
1Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill cryptokit -a claude-code2Manually: put the files in place
~/.claude/skills/cryptokit/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cryptokit/
1Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill cryptokit -a codex2Manually: put the files in place
.agents/skills/cryptokit/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill cryptokit -a cursor2Manually: put the files in place
.cursor/skills/cryptokit/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install dpearson2699/swift-ios-skills cryptokit2Manually: put the files in place
.github/skills/cryptokit/SKILL.md1Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill cryptokit -a gemini-cli2Platform CLI
gemini skills install https://github.com/dpearson2699/swift-ios-skills --path skills/cryptokitManually: put the files in place
.devin/skills/cryptokit/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add dpearson2699/swift-ios-skills --skill cryptokit -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about cryptokit
How do I install cryptokit in Claude Code?
Run npx skills add dpearson2699/swift-ios-skills --skill cryptokit -a claude-code, then run npx skills add dpearson2699/swift-ios-skills --skill cryptokit -a claude-code again. The skill file is at ~/.claude/skills/cryptokit/SKILL.md.
What does cryptokit do?
It gives an agent instructions for using Apple CryptoKit in Swift. The material covers hashing, HMAC, symmetric encryption, signatures, and key agreement.
Which iOS versions support the CryptoKit APIs?
Core CryptoKit primitives are available from iOS 13+. HPKE requires iOS 17+, while SHA-3 and post-quantum APIs require iOS 26+.