axiom-storage-management-ref

Guide iOS storage management with purge priorities, backup exclusions, and capacity checks.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/pradeepmouli/swift-template --skill axiom-storage-management-ref-pradeepmouli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-storage-management-ref
Source: https://github.com/pradeepmouli/swift-template/tree/main/.agents/skills/axiom-storage-management-ref
Command: npx skills add https://github.com/pradeepmouli/swift-template --skill axiom-storage-management-ref-pradeepmouli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This reference provides guidance on managing iOS storage, including how to handle storage pressure, purging, capacity checks, and backup exclusions to maintain app reliability and user experience.

Core Features & Use Cases

  • Understand location-based purge priorities (temporary, caches, documents) and how to choose storage locations that align with data importance.
  • Learn how to query URL resource values for available capacity, total capacity, and backup settings to make informed write decisions.
  • Apply best practices for marking data as purgeable, excluding large cache or retrievable content from backups, and respond to low storage with proactive cleanup.
  • Real-world scenarios include caching strategies, user data preservation, and automatic cleanup during storage pressure.

Quick Start

Read the core guide to implement appropriate purge and backup strategies in your app.

Frequently Asked Questions about axiom-storage-management-ref

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does iOS decide which files to purge during low disk space conditions?

iOS purge priority follows file location, clearing temporary data first, then caches, while preserving documents. Selecting appropriate storage locations ensures critical data survives storage pressure while purgeable content gets cleaned automatically.

How do I exclude large cache files from iOS backups?

Apply backup exclusion attributes via URLResourceValues to mark large cache or retrievable content, preventing it from inflating iOS backups. This keeps locally stored retrievable data available on-device without consuming backup storage capacity.

What is the best way to check available disk capacity before writing files on iOS?

Query URLResourceValues for available and total volume capacity to determine if sufficient disk space exists before writing files. This informs write decisions by distinguishing important storage usage from opportunistic data allocation under limited disk space.

How do I mark app data as purgeable in iOS storage management?

Mark app data as purgeable by storing retrievable content in caches directories and applying purgeable attributes via URLResourceValues. This allows the system to automatically clean up non-critical data during background storage pressure events.

Can I detect low storage pressure and trigger proactive cleanup in my iOS app?

Detect low storage pressure by monitoring volume capacity APIs and trigger proactive cleanup of purgeable cache data. Responding to limited disk space with automatic cleanup of non-critical content maintains app reliability and preserves user experience.

What is the difference between purgeable and non-purgeable data in iOS?

Purgeable data is retrievable content the system can automatically delete during storage pressure, while non-purgeable data includes important user documents. Location-based purge priorities across temporary, caches, and documents directories determine automatic deletion behavior.