Agent skill · Security

cryptotokenkit

Access security tokens and smart cards using CryptoTokenKit. Use when building TKTokenDriver or TKSmartCardTokenDriver extensions, communicating with smart cards via TKSmartCard/TKSmartCardSlotManager, using iOS 26+ NFC smart-card sessions, registering smart cards, querying token-backed keychain items with kSecAttrTokenID, monitoring TKTokenWatcher, or configuring certificate-based smart-card authentication.

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

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

Facts
Files in the skill folder: 3
SKILL.md size: 17 KB
Bundled scripts: none
Path: skills/cryptotokenkit/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

# CryptoTokenKit Use CryptoTokenKit for token driver extensions, smart-card communication, token sessions, token-backed keychain integration, and certificate-based authentication in Swift 6.3 apps. **Platform availability:** CryptoTokenKit classes are available across Apple platforms, but capability depends on extension point, entitlement, hardware, and OS version. The smart-card app extension flow for login/keychain unlock is macOS. `TKSmartCardSlotManager.default` is optional and returns `nil` unless smart-card access is enabled. iOS/iPadOS 26+ add NFC smart-card slots and registration. ## Contents - [Architecture Overview](#architecture-overview) - [Token Extensions](#token-extensions) - [Token Sessions](#token-sessions) - [Smart Card Communication](#smart-card-communication) - [Keychain Integration](#keychain-integration) - [Certificate Authentication](#certificate-authentication) - [Token Watching](#token-watching) - [Error Handling](#error-handling) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Architecture Overview CryptoTokenKit bridges hardware security tokens (smart cards, USB tokens) with authentication and k

What's inside
Steps it walks through
  1. Contents
  2. Architecture Overview
  3. Key Types
  4. Token Extensions
  5. Driver Class
  6. Token Class
  7. Info.plist and Registration
  8. Token Sessions
  9. PIN Authentication
  10. Smart Card Communication
  11. Discovering Card Readers
  12. Sending APDU Commands
  13. NFC Smart Card Sessions (iOS/iPadOS 26+)
  14. Keychain Integration
Ships with 2 files
  • evals/evals.json
  • references/cryptotokenkit-patterns.md
Commands it runs
sudo -u _securityagent /Applications/TokenHost.app/Contents/MacOS/TokenHost
More from swift-ios-skills
All skills →
About this skill
What does the cryptotokenkit skill do?

Access security tokens and smart cards using CryptoTokenKit. Use when building TKTokenDriver or TKSmartCardTokenDriver extensions, communicating with smart cards via TKSmartCard/TKSmartCardSlotManager, using iOS 26+ NFC smart-card sessions, registering smart cards, querying token-backed keychain items with kSecAttrTokenID, monitoring TKTokenWatcher, or configuring certificate-based smart-card authentication.

How do I install it?

Run `npx skills add dpearson2699/swift-ios-skills --skill cryptotokenkit --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