flutter-hive-persistence-engineering

flutter-hive-persistence-engineering is a skill for Claude Code, Codex from ariaramin/flutter-skills. It costs 131 tokens per session (4,390 once invoked), scanned A, original, MIT.

A guide for storing app data on a device with Hive or Hive CE, local databases for Dart and Flutter. It treats stored records and their identifiers as data that must remain readable across app updates.

In plain words
What is it for?
Use it to choose boxes and data models, change stored fields, migrate Hive data, configure encrypted storage, and test upgrades and failures.
Why use it?
It helps prevent updates from losing or misreading existing user data. It also addresses safe schema changes, migrations, encryption, recovery, and tests using older stored data.

Skill for Claude CodeCodex

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

Good fit Use it to choose boxes and data models, change stored fields, migrate Hive data, configure encrypted storage, and test upgrades and failures.

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

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-hive-persistence-engineering

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ariaramin/flutter-skills/flutter-hive-persistence-engineering"><img src="https://agentmods.dev/badge/skills/ariaramin/flutter-skills/flutter-hive-persistence-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,390 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.00131 $0.04390
Opus 5.5 $0.00052 $0.01756
Sonnet 5.5 $0.00026 $0.00878
Haiku 4.5 $0.00013 $0.00439

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

Security

Grade A, and why

flutter-hive-persistence-engineering 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 22d 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-hive-persistence-engineering/SKILL.md · 494 lines

How it starts

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

Flutter Hive Persistence Engineering

Mission

Treat Hive/Hive CE persistence as a long-lived data contract, not a transient implementation detail. Use this loop:

Classify data/access pattern
→ inspect deployed storage contract
→ choose storage/box/model strategy
→ design compatibility + recovery
→ implement smallest safe change
→ test old persisted data + failures
→ measure startup/memory/storage/write cost

Highest-priority invariant:

Persisted data is part of the application's long-lived external contract. A Dart model change is not safe merely because the new code compiles.

Operating Rules

  1. Inspect pinned package versions and existing storage before editing persistence.
  2. Treat box names, key formats, type IDs, field IDs, encryption configuration, and generated schema metadata as migration-sensitive.
  3. Never reuse a retired type ID for a different persisted type.
  4. Never renumber existing field IDs for aesthetics or source-order cleanup.
  5. Design migrations before shipping incompatible schema changes.
  6. Make migrations sequential, restartable/idempotent, validated, and historical-fixture tested.
  7. Commit the schema version only after validation succeeds.
  8. Preserve valuable source data until the replacement is safely written and validated.
  9. Register adapters deterministically before opening boxes containing those types.
  10. Open boxes through a deliberate owner and reuse them; openBox is lifecycle configuration, not a query.
  11. Keep Hive details behind repository/local-data boundaries in nontrivial applications.
  12. Choose Box<T> vs LazyBox<T> from measured memory and access patterns.
  13. Do not force relational/query-heavy workloads into Hive.
  14. Await important writes; do not assume arbitrary multi-record/cross-box operations are atomic.
  15. Keep Hive encryption keys outside Hive, normally in platform-secure storage.
  16. Do not store high-value credentials in ordinary Hive merely because it is convenient.
  17. Recover differently for disposable cache, reconstructable data, and critical local user data.
  18. Never delete valuable storage as generic exception handling.
  19. Debounce/batch high-frequency writes and persist critical edits before termination.
  20. Use Hive CE IsolatedHive only when supported multi-isolate persistence is genuinely required.
  21. Treat Flutter Web as browser/IndexedDB persistence with different durability and security semantics.
  22. Preserve Hive CE generated schema metadata in version control.
  23. Separate package migration from schema redesign when valuable production data exists.
  24. Re-run historical compatibility tests after adapter, generator, encryption, or package changes.

Read the full file on GitHub · 494 lines

Files

What ships with it

5 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. 22d ago First seen · 494 lines · 131 tokens per session scan A cb672cbc85b2

Subscribe to this mod's changes

flutter-hive-persistence-engineering is a skill published in the GitHub repository ariaramin/flutter-skills (8 stars, last pushed 2d ago), licensed MIT. It adds 131 tokens to every session and 4,390 once invoked, about $0.0005 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-10-11.

Related

Other skills, from other repositories