Agent skill · Security

swift-security

Use when working with iOS/macOS Keychain Services (SecItem queries, kSecClass, OSStatus errors), biometric authentication (LAContext, Face ID, Touch ID), CryptoKit (AES-GCM, ChaChaPoly, ECDSA, ECDH, HPKE, ML-KEM), Secure Enclave, secure credential storage (OAuth tokens, API keys), certificate pinning (SecTrust, SPKI), keychain sharing across apps/extensions, migrating secrets from UserDefaults or plists, or OWASP MASVS/MASTG mobile compliance on Apple platforms.

Derek Pearson935★ · +23/wk · 1 repos on radarProfile →
claude-codecodexcursorNOASSERTION
Install
npx skills add dpearson2699/swift-ios-skills --skill swift-security --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 16
SKILL.md size: 13 KB
Bundled scripts: none
Path: skills/swift-security/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 963 · +28 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Swift Security Use this skill for client-side Apple platform security work: Keychain Services, access control, biometric-gated secrets, CryptoKit, Secure Enclave keys, credential storage, certificate trust, keychain sharing, legacy secret migration, security testing, and OWASP mobile compliance mapping. Default to iOS 17+ and Swift concurrency examples when the deployment target is unknown. Keep iOS 13+ compatibility notes when the user asks for older targets. Treat iOS 26 CryptoKit post-quantum APIs as availability-gated. ## Contents - [Workflow](#workflow) - [Reference Loading](#reference-loading) - [Security Invariants](#security-invariants) - [Sibling Boundaries](#sibling-boundaries) - [Review Checklist](#review-checklist) - [Common Mistakes](#common-mistakes) - [Output Rules](#output-rules) - [References](#references) ## Workflow Classify the request before loading references. 1. Review existing code: run the [Review Checklist](#review-checklist), then load [common-anti-patterns.md](references/common-anti-patterns.md) plus the domain reference for each failing area. Report severity, evidence, and the corrected pattern. 2. Improve or migrate code: identify the migration type,

What's inside
Steps it walks through
  1. Contents
  2. Workflow
  3. Minimum Safe Keychain Write
  4. Reference Loading
  5. Security Invariants
  6. Sibling Boundaries
  7. Review Checklist
  8. Common Mistakes
  9. Output Rules
  10. References
Ships with 15 files
  • evals/evals.json
  • references/biometric-authentication.md
  • references/certificate-trust.md
  • references/common-anti-patterns.md
  • references/compliance-owasp-mapping.md
  • references/credential-storage-patterns.md
  • references/cryptokit-public-key.md
  • references/cryptokit-symmetric.md
  • references/keychain-access-control.md
  • references/keychain-fundamentals.md
  • references/keychain-item-classes.md
  • references/keychain-sharing.md
  • references/migration-legacy-stores.md
  • references/secure-enclave.md
  • references/testing-security-code.md
More from swift-ios-skills
All skills →
About this skill
What does the swift-security skill do?

Use when working with iOS/macOS Keychain Services (SecItem queries, kSecClass, OSStatus errors), biometric authentication (LAContext, Face ID, Touch ID), CryptoKit (AES-GCM, ChaChaPoly, ECDSA, ECDH, HPKE, ML-KEM), Secure Enclave, secure credential storage (OAuth tokens, API keys), certificate pinning (SecTrust, SPKI), keychain sharing across apps/extensions, migrating secrets from UserDefaults or plists, or OWASP MASVS/MASTG mobile compliance on Apple platforms.

How do I install it?

Run `npx skills add dpearson2699/swift-ios-skills --skill swift-security --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From dpearson2699/swift-ios-skills, a repository with 963 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going