LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

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.

936stars47forksUpdated 7/29/2026
Security#security#ios#mobile#swift#cryptography#keychain

Security Assessment

Safe(95/100)
Security Score95/100

About swift-security

Swift Security is a defensive, client-side security reference skill for Apple platform development. It covers Keychain Services (SecItem queries, kSecClass, OSStatus handling), access control and accessibility classes, biometric-gated secrets via LAContext (Face ID / Touch ID), CryptoKit symmetric and public-key cryptography, Secure Enclave keys, secure credential storage for OAuth tokens and API keys, certificate trust and SPKI pinning, keychain sharing across apps and extensions, and migration of secrets out of insecure stores like UserDefaults or plists. It also maps work to OWASP MASVS/MASTG mobile compliance. The problem it solves is that AI-generated and hand-written iOS security code frequently gets subtle but critical details wrong, so the skill encodes verified correct patterns.

The skill is deliberately split into progressive-disclosure reference files and directs the agent to classify the request first, then load only the minimum references needed. It defines three workflows — reviewing existing code against a checklist and anti-patterns, migrating or improving code while preserving existing data and verifying before removing legacy storage, and implementing new security code with full OSStatus handling and tests. It includes concrete correct-pattern examples such as a minimum safe keychain write using separate add/identity/update dictionaries and appropriate accessibility flags, plus a reference-loading table mapping tasks to files (keychain fundamentals, item classes, access control, biometrics, Secure Enclave, CryptoKit symmetric and public-key, credential storage, sharing, certificate trust, migration, testing, and OWASP mapping). It defaults to iOS 17+ with Swift concurrency and treats iOS 26 post-quantum CryptoKit APIs as availability-gated.

Target users are iOS and macOS engineers building or reviewing security-sensitive code, and teams pursuing mobile security compliance. It is entirely guidance and correct-usage reference material focused on protecting secrets and using platform cryptography properly.

FAQ

What platforms and versions does it target?

Apple platforms (iOS/macOS). It defaults to iOS 17+ with Swift concurrency examples, keeps iOS 13+ compatibility notes when asked, and treats iOS 26 post-quantum CryptoKit APIs as availability-gated.

How is the content organized?

As progressive-disclosure reference files. You classify the task first, then load only the specific references needed (keychain, biometrics, CryptoKit, Secure Enclave, certificate trust, migration, testing, or OWASP mapping).

Can it review existing security code?

Yes. One workflow runs a review checklist plus a common-anti-patterns reference and reports severity, evidence, and the corrected pattern for each failing area.

Does it help move secrets off UserDefaults or plists?

Yes. A migration workflow preserves existing data, writes to the secure store, verifies the new item, and only then removes the legacy storage.

Does it cover compliance?

It maps implementations to OWASP MASVS/MASTG mobile security requirements via a dedicated compliance reference.

All Files

16 files
evals/evals.json4.6 KB
View
references/cryptokit-public-key.md34.3 KB
View
references/migration-legacy-stores.md36.8 KB
View
references/certificate-trust.md31.1 KB
View
references/keychain-access-control.md32.7 KB
View
references/testing-security-code.md35.1 KB
View
references/common-anti-patterns.md30.8 KB
View
references/keychain-fundamentals.md30.0 KB
View
SKILL.md12.7 KB
View
references/credential-storage-patterns.md42.9 KB
View
references/keychain-sharing.md32.0 KB
View
references/biometric-authentication.md28.5 KB
View
references/cryptokit-symmetric.md28.7 KB
View
references/secure-enclave.md32.0 KB
View
references/compliance-owasp-mapping.md38.2 KB
View
references/keychain-item-classes.md32.8 KB
View

Install swift-security

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

dpearson2699/swift-ios-skills

Related Skills

parallel-web

45,195

create-blazor-project

5,423

od-contribute

96,513

redesign-existing-projects

96,513