Diffuse-Native-Apps: Skill for Claude Code

.agents/skills/storage/SKILL.md

storage is a skill for Claude Code, Codex from hoangsonww/Diffuse-Native-Apps. It costs 37 tokens per session (195 once invoked), scanned A, original, MIT.

A guide to the file-based storage used for snapshots, including saving, loading, searching, indexing, and repairing stored data. Snapshots are kept as JSON files rather than in a database.

In plain words
What is it for?
Use it when changing the snapshot store, paging or querying snapshots, rebuilding the index, or investigating corrupt files and save/load errors.
Why use it?
It helps prevent inconsistent filtering and handles missing or damaged files without making an index rebuild fail. It also documents safe file replacement and immutable saved snapshots.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is hoangsonww/Diffuse-Native-Apps's own configuration. It tells Claude Code and Codex how to work on Diffuse-Native-Apps itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Diffuse-Native-Apps configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hoangsonww/Diffuse-Native-Apps. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hoangsonww/Diffuse-Native-Apps/master/.agents/skills/storage/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hoangsonww/Diffuse-Native-Apps

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 storage

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangsonww/diffuse-native-apps/storage/github.svg)](https://agentmods.dev/skills/hoangsonww/diffuse-native-apps/storage)
Your own site
<a href="https://agentmods.dev/skills/hoangsonww/diffuse-native-apps/storage"><img src="https://agentmods.dev/badge/skills/hoangsonww/diffuse-native-apps/storage/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 storage

Your own site · 80×15
<a href="https://agentmods.dev/skills/hoangsonww/diffuse-native-apps/storage"><img src="https://agentmods.dev/badge/skills/hoangsonww/diffuse-native-apps/storage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 195 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.00037 $0.00195
Opus 5.5 $0.00015 $0.00078
Sonnet 5.5 $0.00007 $0.00039
Haiku 4.5 $0.00004 $0.00019

Measured yesterday against content hash c7fb75e72565, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

storage 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 yesterday.

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.

.agents/skills/storage/SKILL.md · 17 lines

What it actually says

Storage

JSON files plus a rebuildable index.json. No database. Core code depends on the SnapshotStore protocol so tests can use InMemorySnapshotStore.

  • Snapshots are immutable after save. Only annotations (label, note, isPinned, tags) mutate.
  • SnapshotQuery.apply is the single filter implementation; stores must not reimplement filtering.
  • Duplicate saves throw StorageError.alreadyExists. Missing deletes throw .notFound.
  • Corrupt snapshot files are skipped on rebuildIndex, not fatal to the library.
  • Writes are atomic (temp file + replace).

Read Documentation/Storage.md. Tests: Tests/Domain/SnapshotServiceAndStoreTests.swift, Storage package suite.

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. yesterday First seen · 17 lines · 37 tokens per session scan A c7fb75e72565

Subscribe to this mod's changes

storage is a skill published in the GitHub repository hoangsonww/Diffuse-Native-Apps (11 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 195 once invoked, about $0.0001 per session on Opus 5.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-11-07.

Related

storage compared with skills from other repositories

storage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
storagehoangsonww/Diffuse-Native-AppsSkill111mo agoMITA37Claude Code, Codex
swiftdata-prokelvinkosbab/AppBootstrapAISkill8yesterdayMITA34Claude Code, Codex
data-layer-footgunsmaxrave-dev/kotlin-footgunsSkill2.1k10d agoGPL-3.0A55Claude Code
motion-design-prokelvinkosbab/AppBootstrapAISkill8yesterdayMITA129Claude Code
android-adaptive-layout-prokelvinkosbab/AppBootstrapAISkill8yesterdayMITA147Claude Code
android-gradle-architecture-prokelvinkosbab/AppBootstrapAISkill8yesterdayMITA74Claude Code
r8-shrink-prokelvinkosbab/AppBootstrapAISkill8yesterdayMITA87Claude Code