axiom-file-protection-ref

axiom-file-protection-ref is a skill for Claude Code, Codex from ComeOnOliver/skillshub. It costs 62 tokens per session (3,596 once invoked), scanned A, original, MIT.

A reference for protecting files on Apple devices using iOS Data Protection. It explains file encryption, protection levels, device-lock behavior, and when to use protected files or the Keychain.

In plain words
What is it for?
Use it when choosing file-protection settings, securing stored user data, debugging file-access failures, or comparing file protection with Keychain storage.
Why use it?
It helps keep sensitive data encrypted while stored and avoid errors caused by trying to access protected files when the device is locked.

Skill for Claude CodeCodex

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

Good fit Use it when choosing file-protection settings, securing stored user data, debugging file-access failures, or comparing file protection with Keychain storage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/comeonoliver/skillshub/axiom-file-protection-ref
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-file-protection-ref
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-file-protection-ref

README.md
[![agentmods](https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-file-protection-ref/github.svg)](https://agentmods.dev/skills/comeonoliver/skillshub/axiom-file-protection-ref)
Your own site
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-file-protection-ref"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-file-protection-ref/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-file-protection-ref

Your own site · 80×15
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-file-protection-ref"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-file-protection-ref.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,596 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.00062 $0.03596
Opus 5 $0.00031 $0.01798
Sonnet 5 $0.00012 $0.00719
Haiku 4.5 $0.00006 $0.00360

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

Security

Grade A, and why

axiom-file-protection-ref 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-file-protection-ref/SKILL.md · 546 lines

How it starts

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

iOS File Protection Reference

Purpose: Comprehensive reference for file encryption and data protection APIs Availability: iOS 4.0+ (all protection levels), latest enhancements in iOS 26 Context: Built on iOS Data Protection architecture using hardware encryption

When to Use This Skill

Use this skill when you need to:

  • Protect sensitive user data at rest
  • Choose appropriate FileProtectionType for files
  • Understand when files are accessible/encrypted
  • Debug "file not accessible" errors after device lock
  • Implement secure file storage
  • Compare Keychain vs file protection approaches
  • Handle background file access requirements

Overview

iOS Data Protection provides hardware-accelerated file encryption tied to the device passcode. When a user sets a passcode, every file can be encrypted with keys protected by that passcode.

Key concepts:

  • Files are encrypted automatically when protection is enabled
  • Encryption keys are derived from device hardware + user passcode
  • Files become inaccessible when device is locked (depending on protection level)
  • No performance cost (hardware AES encryption)

Protection Levels Comparison

Level Encrypted Until Accessible When Use For Background Access
complete Device unlocked Only while unlocked Sensitive data (health, finances) ❌ No
completeUnlessOpen File closed After first unlock, while open Large downloads, videos ✅ If already open
completeUntilFirstUserAuthentication First unlock after boot After first unlock Most app data ✅ Yes
none Never Always Public caches, temp files ✅ Yes

Detailed Level Descriptions

.complete

Full Description:

"The file is stored in an encrypted format on disk and cannot be read from or written to while the device is locked or booting."

Use For:

  • User health data
  • Financial information
  • Password vaults
  • Sensitive documents
  • Personal photos (if app requires maximum security)

Read the full file on GitHub · 546 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 · 546 lines · 62 tokens per session scan A c86fa83b53d6

Subscribe to this mod's changes

axiom-file-protection-ref is a skill published in the GitHub repository ComeOnOliver/skillshub (63 stars, last pushed 2mo ago), licensed MIT. It adds 62 tokens to every session and 3,596 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.