axiom-keychain-diag

axiom-keychain-diag is a skill for Claude Code, Codex from ComeOnOliver/skillshub. It costs 67 tokens per session (5,636 once invoked), scanned A, original, MIT.

A troubleshooting guide for Apple Keychain Services, which stores passwords, tokens, and other secrets securely.

In plain words
What is it for?
Use it to investigate SecItem errors, access groups, data protection timing, items lost after app updates, and Mac keychain differences.
Why use it?
It helps identify why keychain reads and writes fail, including duplicate items, missing items, background access limits, and permission mismatches.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate SecItem errors, access groups, data protection timing, items lost after app updates, and Mac keychain differences.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/comeonoliver/skillshub/axiom-keychain-diag
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ComeOnOliver/skillshub --skill axiom-keychain-diag
Clone the repo
git clone --depth 1 https://github.com/ComeOnOliver/skillshub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for axiom-keychain-diag

README.md
[![agentmods](https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-keychain-diag/github.svg)](https://agentmods.dev/skills/comeonoliver/skillshub/axiom-keychain-diag)
Your own site
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-keychain-diag"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-keychain-diag/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for axiom-keychain-diag

Your own site · 80×15
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-keychain-diag"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-keychain-diag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,636 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.05636
Opus 5 $0.00034 $0.02818
Sonnet 5 $0.00013 $0.01127
Haiku 4.5 $0.00007 $0.00564

Measured 9d ago against content hash 98b6648e9263, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

axiom-keychain-diag scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/CharlesWiltgen/Axiom/axiom-keychain-diag/SKILL.md · 360 lines

How it starts

The opening of the file, as written. The whole thing — 360 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Keychain Diagnostics

Systematic troubleshooting for Security framework failures: uniqueness constraint violations, query mismatches, data protection timing, access group entitlements, disappearing items after updates, and Mac shim behavior differences.

Overview

Core Principle: When keychain operations fail, the problem is usually:

  1. Uniqueness constraint mismatch (errSecDuplicateItem) — 25%
  2. Query attribute confusion (errSecItemNotFound) — 25%
  3. Data protection / background timing (errSecInteractionNotAllowed) — 20%
  4. Access group / entitlement mismatch (errSecMissingEntitlement) — 15%
  5. Mac shim behavior differences — 10%
  6. Lost items after app update (entitlement or App ID prefix change) — 5%

Always dump existing items and compare attributes BEFORE changing keychain code.

Red Flags

Symptoms that indicate keychain-specific issues:

Symptom Likely Cause
errSecDuplicateItem when query returned not found Non-unique attributes in add query — uniqueness is per-class + primary key attributes, not per your full query
errSecItemNotFound but item was just added Wrong kSecClass, erroneous attribute narrowing query, or access group mismatch
errSecInteractionNotAllowed in background kSecAttrAccessibleWhenUnlocked (default) + device locked + background execution
errSecMissingEntitlement Access group not listed in keychain-access-groups entitlement
errSecNoSuchAttr Attribute not supported for item class (e.g. kSecAttrApplicationTag on kSecClassGenericPassword)
errSecAuthFailed on Mac File-based keychain locked or timed out
Items gone after app update Access group or entitlement changed between versions
Items gone after team change App ID prefix changed — items keyed to old prefix are inaccessible
SecItemDelete deleted everything kSecMatchLimit is irrelevant for delete — it deletes ALL matching items
Keychain works in simulator, fails on device Simulator does not enforce data protection — device does

Read the full file on GitHub · 360 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 360 lines · 67 tokens per session scan A 98b6648e9263

Subscribe to this mod's changes

axiom-keychain-diag is a skill published in the GitHub repository ComeOnOliver/skillshub (63 stars, last pushed 2mo ago), licensed MIT. It adds 67 tokens to every session and 5,636 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

affaan-m/ECC · 46 tokens

dx-audit

Audits libraries, CLIs, and SDKs using 38 rules for public contracts, package exports, piped output, errors, and configuration. Use when asked to "audit my CLI", "review my SDK", "make this agent-friendly", or diagnose package type resolution. For agentic product trust use ax-audit; for docs use docs-writing.

mblode/agent-skills · 76 tokens

instance-performance-triage

Answer "the instance is slow" or "my nightly job never ran" from ServiceNow's own telemetry — transaction logs, syslog, systrigger, progress workers, execution trackers — instead of ad-hoc scripts that add to the load.

serac-labs/serac · 55 tokens

blast-radius

Trace ServiceNow configuration dependencies — what artifacts touch a given field, what calls a script include, table/app-level config inventory. Use before deletes, renames, or refactors.

serac-labs/serac · 39 tokens

incident-management

Manage ServiceNow incidents — creation with impact/urgency priority calc, auto-assignment by category, reassignment tracking, major incident declaration with bridge calls, time-based escalation, MTTR metrics.

serac-labs/serac · 42 tokens

problem-management

Manage ServiceNow problems — create from linked incidents, proactive pattern detection, RCA with 5-Whys, knownerror workarounds (KEDB), KEDB search by CI/category/keywords, and permanent-fix linkage to changes.

serac-labs/serac · 53 tokens