flutter-storage

flutter-storage is a skill for Claude Code, Codex from yendangn/flutter-app-builder. It costs 62 tokens per session (470 once invoked), scanned A, original, MIT.

A set of instructions for handling data stored locally in Flutter apps. It covers encrypted secrets, simple settings, and structured SQLite data through separate application-owned interfaces.

In plain words
What is it for?
Use it when adding secure token storage, preferences, SQLite tables, data-access objects, local caches, sync queues, or database migrations.
Why use it?
It prevents sensitive data and database code from being handled inconsistently, while providing rules for schemas, migrations, caching, and offline data.

Skill for Claude CodeCodex

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

Good fit Use it when adding secure token storage, preferences, SQLite tables, data-access objects, local caches, sync queues, or database migrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yendangn/flutter-app-builder/flutter-storage
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 yendangn/flutter-app-builder --skill flutter-storage
Clone the repo
git clone --depth 1 https://github.com/yendangn/flutter-app-builder

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 flutter-storage

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yendangn/flutter-app-builder/flutter-storage"><img src="https://agentmods.dev/badge/skills/yendangn/flutter-app-builder/flutter-storage.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 470 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.00470
Opus 5.5 $0.00025 $0.00188
Sonnet 5.5 $0.00012 $0.00094
Haiku 4.5 $0.00006 $0.00047

Measured 1mo ago against content hash 29da70684977, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flutter-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 1mo 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/flutter-storage/SKILL.md · 43 lines

What it actually says

Flutter Storage

Full reference: template.md

Key rules

  • Three storage tiers, each behind an app-owned interface:
    1. SecureStorage — wraps flutter_secure_storage. Tokens, credentials, sensitive data only.
    2. KeyValueStore — wraps shared_preferences. Non-sensitive settings, flags, simple values.
    3. AppDatabase — Drift ORM over SQLite. Structured data, offline cache, sync queue.
  • Never import flutter_secure_storage, shared_preferences, or drift outside their designated wrapper/impl files.
  • Drift tables are defined in app_database.dart with @DriftDatabase(tables: [...]). DAOs are separate files per entity.
  • DAO files annotated @DriftAccessor(tables: [...]). Each DAO exposes typed CRUD methods — never raw SQL in repository code.
  • AppDatabase is a LazyDatabase backed by sqlite3_flutter_libs. Always created once as a singleton.
  • Run dart run build_runner build --delete-conflicting-outputs after any Drift schema change.

Files

lib/src/core/storage/
  secure_storage.dart            ← interface
  secure_storage_impl.dart       ← only import of flutter_secure_storage
  key_value_store.dart           ← interface
  key_value_store_impl.dart      ← only import of shared_preferences
lib/src/core/database/
  app_database.dart              ← @DriftDatabase, table definitions, LazyDatabase
  app_database.g.dart            ← generated
  daos/
    <entity>_dao.dart            ← @DriftAccessor, typed CRUD
    <entity>_dao.g.dart          ← generated

Co-load with

  • flutter-di — register as lazySingleton
  • flutter-offline — Drift is the offline cache backend
  • flutter-auth — SecureStorage stores tokens
Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 43 lines · 62 tokens per session scan A 29da70684977

Subscribe to this mod's changes

flutter-storage is a skill published in the GitHub repository yendangn/flutter-app-builder (6 stars, last pushed 3mo ago), licensed MIT. It adds 62 tokens to every session and 470 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

mobile-storage-sqlite-powersync

PowerSync offline-first sync engine on SQLite for React Native - schema definition, watched queries, CRUD operations, backend connectors, sync rules, conflict resolution, attachments.

agents-inc/skills · 40 tokens

couchbase

Expert Couchbase NoSQL assistance covering N1QL/SQL++ queries, memory-first caching, document scopes, and cross-datacenter replication (XDCR). Use when building ultra-low latency JSON document platforms.

G1Joshi/Agent-Skills · 46 tokens

offline-first-expert

Expert guidance for offline-first KMP and Android architectures using Store5, Room, SQLDelight, Ktor. Always trigger this skill when designing repositories, databases, caching, offline sync, Fetchers, SourceOfTruth, Updaters, Bookkeepers.

JosephSanjaya/skills · 57 tokens

mobile-offline-support

Implement offline-first mobile apps with local storage, sync strategies, and conflict resolution. Covers AsyncStorage, Realm, SQLite, and background sync patterns.

aj-geddes/useful-ai-prompts · 34 tokens

riverpod-offline

Persist Riverpod notifier state offline with Storage and persist(); riverpodsqflite, JsonPersist, key, destroyKey, cache duration, testing with in-memory storage. Use when saving state across app restarts or offline. Use this skill when the user asks about offline persistence, persisting state, or Riverpod storage.

serverpod/skills-registry · 70 tokens

ionic-offline-first

The ultimate architectural standard for Offline-First Ionic applications with Synchronization Engines, Delta Updates, Conflict Resolution (CRDT/LWW), and SQLite Cache.

DiegoVilla27/agents-ai-store · 35 tokens