axiom-keychain-ref
БесплатноБез исполняемых скриптовНе проверенUse when needing SecItem function signatures, keychain attribute constants, item class uniqueness constraints, accessibility level details…
от ComeOnOliver★ 67 звёзд на GitHubОб этом скилле
Keychain Services API Reference
Comprehensive API reference for iOS/macOS Keychain Services: SecItem CRUD functions, item class attributes, uniqueness constraints, accessibility levels, access control flags, biometric integration, and error codes.
Quick Reference
// Add a generic password
let addQuery: [String: Any] = [
kSecClass as String: kSecClassGenericPassword,
kSecAttrService as String: "com.example.app",
kSecAttrAccount as String: "[email protected]",
kSecValueData as String: "secret".data(using: .utf8)!
]
let addStatus = SecItemAdd(addQuery as CFDictionary, nil)
// Read a generic password
let readQuery: [String: Any] = [
kSecClass as String: kSecClassGenericPassword,
kSecAttrService as String: "com.example.app",
kSecAttrAccount as String: "[email protected]",
kSecReturnData as String: true,
kSecMatchLimit as String: kSecMatchLimitOne
]
var result: AnyObject?
let readStatus = SecItemCopyMatching(readQuery as CFDictionary, &result)
let data = result as? Data
// Update a generic password
let updateQuery: [String: Any] = [
kSecClass as String: kSecClassGenericPassword,
kSecAttrService as String: "com.example.app",
kSecAttrAccount as String: "[email protected]"
]
let updateAttributes: [String: Any] = [
kSecValueData as String: "newSecret".data(using: .utf8)!
]
let updateStatus = SecItemUpdate(updateQuery as CFDictionary, updateAttributes as CFDictionary)
// Delete a generic password
let deleteQuery: [String: Any] = [
kSecClass as String: kSecClassGenericPassword,
kSecAttrService as String: "com.example.app",
kSecAttrAccount as String: "[email protected]"
]
let deleteStatus = SecItemDelete(deleteQuery as CFDictionary)
SecItem Functions
SecItemAdd
func SecItemAdd(_ attributes: CFDictionary, _ result: UnsafeMutablePointer<CFTypeRef?>?) -> OSStatus
attributes dictionary accepts: Item class + item attributes + value properties + return type properties.
Does NOT accept search properties (kSecMatch*). Providing kSecMatchLimit in an add query is an error.
result: Pass nil if you don't need the added item back. Pass a pointer to receive the item in the format specified by kSecReturn* keys. Pass nil in most cases — requesting the result back forces an extra read.
SecItemCopyMatching
func SecItemCopyMatching(_ query: CFDictionary, _ result: UnsafeMutablePointer<CFTypeRef?>?) -> OSStatus
query dictionary accepts: Item class + item attributes + search properties + return type properties.
Does NOT accept value properties (kSecValueData) as search criteria.
result: The type depends on which kSecReturn* keys are set:
kSecReturnDataalone →CFDatakSecReturnAttributesalone →CFDictionarykSecReturnRefalone →SecKey/SecCertificate/SecIdentitykSecReturnPersistentRefalone →CFData(persistent reference)- Multiple
kSecReturn*keys →CFDictionarycontaining requested types kSecMatchLimit = kSecMatchLimitAll→CFArrayof the above
SecItemUpdate
func SecItemUpdate(_ query: CFDictionary, _ attributesToUpdate: CFDictionary) -> OSStatus
query dictionary accepts: Item class + item attributes + search properties. Used to find items to update.
attributesToUpdate dictionary accepts: Item attributes + value properties. These are applied to matched items. Does NOT accept item class or search properties.
Updating kSecValueData replaces the stored secret. Updating attributes (e.g., kSecAttrLabel) changes metadata without touching the secret.
SecItemDelete
func SecItemDelete(_ query: CFDictionary) -> OSStatus
query dictionary accepts: Item class + item attributes + search properties.
On macOS, deletes ALL matching items by default (implicit kSecMatchLimitAll). On iOS, also deletes all matches. There is no confirmation — deletion is immediate.
Item Classes
kSecClassGenericPassword
General-purpose secret storage. The most commonly used class.
| Attribute | Key | Type |
|---|---|---|
| Service | kSecAttrService |
CFString |
| Account | kSecAttrAccount |
CFString |
| Access Group | kSecAttrAccessGroup |
CFString |
| Accessible | kSecAttrAccessible |
CFString (constant) |
| Synchronizable | kSecAttrSynchronizable |
CFBoolean |
| Label | kSecAttrLabel |
CFString |
| Description | kSecAttrDescription |
CFString |
| Comment | kSecAttrComment |
CFString |
| Generic | kSecAttrGeneric |
CFData |
| Creator | kSecAttrCreator |
CFNumber (FourCharCode) |
| Type | kSecAttrType |
CFNumber (FourCharCode) |
| Creation Date | kSecAttrCreationDate |
CFDate (read-only) |
| Modification Date | kSecAttrModificationDate |
CFDate (read-only) |
kSecClassInternetPassword
URL-associated credentials. Rarely needed — most apps use generic passwords.
| Attribute | Key | Type |
|---|
Установить axiom-keychain-ref в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл axiom-keychain-ref?
Use when needing SecItem function signatures, keychain attribute constants, item class uniqueness constraints, accessibility level details, SecAccessControlCreateFlags, kSecReturn behavior per class, LAContext keychain integration, or OSStatus error codes. Covers complete keychain API surface.
Как установить скилл axiom-keychain-ref?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл axiom-keychain-ref запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic