nylo-storage

A storage guide for Nylo v7, a Flutter framework for building mobile apps. It covers secure data saved across app restarts, temporary in-memory data, expiring caches, collections, and sessions.

In plain words
What is it for?
Use it when saving, reading, or deleting app data; caching values with an expiration time; managing lists or sessions; or keeping persistent and in-memory copies together.
Why use it?
It explains which storage method to use for data that must persist, data that needs fast runtime access, or data that should expire.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/nylo-core/claude-code/nylo-storage
Any agent
npx skills add nylo-core/claude-code --skill nylo-storage
Clone the repo
git clone --depth 1 https://github.com/nylo-core/claude-code

Made for: Claude Code, Codex.

Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,093 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00053 $0.03093
Opus 5 $0.00026 $0.01546
Sonnet 5 $0.00011 $0.00619
Haiku 4.5 $0.00005 $0.00309

Measured 2d ago against content hash 34fe025f0e6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

nylo-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 2d 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/nylo-storage/SKILL.md · 449 lines

How it starts

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

Nylo Storage

Overview

Nylo v7 provides three storage mechanisms: NyStorage for secure persistent storage (backed by flutter_secure_storage), Backpack for fast in-memory synchronous access, and cache() for time-based caching. They can be combined for hybrid patterns where data is persisted and also available synchronously.

When to Use

  • Persisting data across app restarts (NyStorage)
  • Fast synchronous reads during runtime (Backpack)
  • Caching API responses or computed data with expiration (cache)
  • Storing collections/lists of items
  • Managing temporary session data (sessions)
  • Dual storage: persistent + in-memory access
  • When NOT to use: For authentication data specifically, use nylo-auth; for API response caching, see nylo-networking

Quick Reference

Action Code
Save to storage await NyStorage.save("key", value)
Read from storage await NyStorage.read<String>("key")
Delete from storage await NyStorage.delete("key")
Save JSON await NyStorage.saveJson("key", map)
Read JSON await NyStorage.readJson("key")
Save with TTL await NyStorage.saveWithExpiry("key", val, ttl: Duration(hours: 1))
Save to Backpack backpackSave("key", value)
Read from Backpack backpackRead<String>("key")
Save to both await NyStorage.save("key", value, inBackpack: true)
Cache with expiry await cache().saveRemember("key", 300, () async => data)
Cache forever await cache().saveForever("key", () async => data)
Read cache await cache().get<String>("key")
Clear cache await cache().clear("key")
Add to collection await NyStorage.addToCollection("key", item: value)
Read collection await NyStorage.readCollection<String>("key")

NyStorage (Persistent Storage)

Stores data securely on device using flutter_secure_storage under the hood.

Basic Operations

// Save
await NyStorage.save("coins", 100);
await NyStorage.save("username", "Anthony");

// Read with type
int? coins = await NyStorage.read<int>("coins");
String? username = await NyStorage.read<String>("username");

// Read with default value
String name = await NyStorage.read("name", defaultValue: "Guest") ?? "Guest";

// Delete
await NyStorage.delete("username");
await NyStorage.deleteMultiple(["key1", "key2", "key3"]);
await NyStorage.deleteAll();
await NyStorage.deleteAll(excludeKeys: ["auth_token"]);

Read the full file on GitHub · 449 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. 2d ago First seen · 449 lines · 53 tokens per session scan A 34fe025f0e6d

Subscribe to this mod's changes

nylo-storage is a skill published in the GitHub repository nylo-core/claude-code (4 stars, last pushed 4mo ago), licensed MIT. It adds 53 tokens to every session and 3,093 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-08-31.