Builds CryptoTokenKit security-token and smart-card integrations for macOS token-driver extensions, TKSmartCard communication, NFC smart-card sessions, token-backed Keychain queries, certificate authentication, APDU handling, and PIN workflows.
Ships in all-ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use CryptoTokenKit for token-driver extensions, smart-card sessions, token-backed Keychain items, certificate authentication, and iOS/iPadOS 26+ NFC smart-card access.
API presence is not an access guarantee: extension points, entitlements,
hardware, and runtime support all matter. The login/keychain-unlock token
extension flow is macOS-specific, TKSmartCardSlotManager.default is optional,
and NFC smart-card slot creation requires iOS/iPadOS 26+.
CryptoTokenKit has three distinct modes:
TKSmartCard.Own token/smart-card sessions, token-backed items, APDUs, PIN operations, and
smart-card certificate authentication here. Route passkeys/WebAuthn and account
sign-in to authentication; route CryptoKit primitives, Secure Enclave,
ordinary Keychain architecture, pinning, and trust policy to swift-security.
| Type | Role | Important constraint |
|---|---|---|
TKTokenDriver, TKToken, TKTokenSession | Driver/token/session primitives | Extension behavior depends on platform and extension point |
TKSmartCardTokenDriver | Smart-card driver entry point | System login integration is a macOS extension flow |
TKSmartCard, TKSmartCardSlotManager | Reader discovery and APDU transport | Default manager may be nil |
TKTokenWatcher | Token insertion/removal | Retain it for the monitoring lifetime |
TKSmartCardSlotNFCSession | Temporary NFC-backed slot | iOS/iPadOS 26+; always end the session |
TKSmartCardTokenRegistrationManager | NFC token registration | iOS/iPadOS 26+ |
com.apple.ctk-tokens and the exact
com.apple.ctk.driver-class; the host app is only its delivery vehicle.TKTokenKeychainContents with stable, matching object IDs.
TKTokenKeychainKey capabilities must reflect the hardware.TKTokenSessionDelegate.supports returns true only for algorithms and
operations the token actually implements.send calls in withSession; for raw transmit, pair
beginSession and endSession on every path.errSecItemNotFound.TKTokenSmartCardPINAuthOperation from the real card format and
APDU layout; never log or retain PIN bytes.TKSmartCardSlotNFCSession, including error and cancellation paths.import CryptoTokenKit
guard let manager = TKSmartCardSlotManager.default else {
// Missing entitlement/access, unsupported runtime, or no smart-card service.
return
}
On iOS/iPadOS 26+, also require manager.isNFCSupported() before creating an
NFC slot. Keep macOS configuration and system-authentication guidance outside
iOS-only branches. Do not force unwrap a manager, slot, card, certificate, or
keychain item obtained from hardware.
Handle TKError according to recovery semantics:
| Error | Expected response |
|---|---|
.canceledByUser | Stop quietly or restore prior UI state |
.authenticationFailed / .authenticationNeeded | Present bounded retry or authentication UI |
.tokenNotFound / .objectNotFound | Ask for reinsertion or refresh token contents |
.communicationError | End the session and offer a fresh attempt |
.corruptedData | Reject the response; do not parse or trust partial data |
.notImplemented | Disable the unsupported operation |
Preserve smart-card-specific status information in app errors without exposing secrets. Avoid blind retries of PIN or destructive card commands.
What SKILL.md sets; muted values are Claude Code's defaults
95 skills in this plugin
/accessorysetupkitDiscover and configure Bluetooth and Wi-Fi accessories using AccessorySetupKit. Use when presenting a privacy-preserving accessory picker, defining discovery descriptors for BLE or Wi-Fi devices, handling accessory session events, migrating from CoreBluetooth permission-based scanning, or setting up accessories without requiring broad Bluetooth permissions./activitykitBuild or review Live Activities and Dynamic Island experiences with ActivityKit, including lifecycle, layouts, push updates, and scheduled delivery. Use for time-sensitive Lock Screen or Dynamic Island state; route ordinary widgets to widgetkit./adattributionkitMeasure ad effectiveness with privacy-preserving attribution using AdAttributionKit. Use when registering ad impressions, handling attribution postbacks, updating conversion values, implementing re-engagement attribution, configuring publisher or advertiser apps, or replacing SKAdNetwork with AdAttributionKit for ad measurement./all-ios-skills:cryptotokenkitfrom all-ios-skills
npx claudepluginhub thienqo/ios-skills --plugin all-ios-skillsOther plugins' skills for the same job