hydrated-bloc

hydrated-bloc is a skill for Claude Code, Codex from ariaramin/flutter-skills. It costs 68 tokens per session (6,210 once invoked), scanned A, original, MIT.

A coding guide for keeping Flutter and Dart app state after the app closes, using the hydrated_bloc package. It covers setup, saved data, version changes, logout, encryption, and damaged saved state.

In plain words
What is it for?
Use it when adding, reviewing, debugging, migrating, testing, or optimizing HydratedBloc or HydratedCubit persistence, including storage setup, serialization, schema changes, clearing data, encryption, and web versus device storage.
Why use it?
It helps avoid losing user state or breaking existing saved data when the app, package version, or data format changes. It also warns against accidentally storing secrets or leaking state in tests.

Skill for Claude CodeCodex

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

Good fit Use it when adding, reviewing, debugging, migrating, testing, or optimizing HydratedBloc or HydratedCubit persistence, including storage setup, serialization, schema changes, clearing data, encryption, and web versus device storage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ariaramin/flutter-skills/hydrated-bloc
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 hydrated-bloc
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 hydrated-bloc

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ariaramin/flutter-skills/hydrated-bloc"><img src="https://agentmods.dev/badge/skills/ariaramin/flutter-skills/hydrated-bloc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,210 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.00068 $0.06210
Opus 5.5 $0.00027 $0.02484
Sonnet 5.5 $0.00014 $0.01242
Haiku 4.5 $0.00007 $0.00621

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

Security

Grade A, and why

hydrated-bloc 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 12d 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/hydrated-bloc/SKILL.md · 553 lines

How it starts

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

hydrated_bloc — Production Flutter Skill

Purpose

Teach an AI coding agent how to use hydrated_bloc correctly in production Flutter apps: when to hydrate, how to initialize storage, how to serialize safely, how keys/identity work, how errors and schema changes behave, and how to test without leaking state—based on official package docs, API, source, tests, examples, and changelog (stable 11.0.0 as of research).

Agent behavior rules (mandatory)

Before changing hydration-related code:

  1. Inspect pubspec.yaml / lockfile for the installed hydrated_bloc (and bloc) version. Do not use APIs from a different major.
  2. Inspect existing Bloc/Cubit architecture; reuse project patterns when correct.
  3. Do not convert a normal Bloc/Cubit to hydrated without a real post-restart persistence need.
  4. Identify exactly which fields must survive process death; persist only those.
  5. Do not persist secrets/tokens through default storage without an explicit security design.
  6. Before changing serialized shape, class names, storagePrefix, or id, consider already-installed app versions and existing persisted keys.
  7. Prefer reconstructing derived values over persisting them.
  8. Keep toJson/fromJson deterministic and defensive.
  9. Avoid introducing a second source of truth (e.g. hydrating the same data the backend already owns).
  10. Add/update tests whenever hydration, keys, schema, or clear/logout behavior changes.
  11. Validate platform assumptions (especially web vs IO directory, and temporary vs durable paths).
  12. Do not invent migration APIs, sync guarantees, or encryption properties the package does not provide.

When to Use This Skill

  • Persisting small durable UI/workflow state across app restarts (theme, filters, onboarding step, draft flags).
  • Implementing or reviewing HydratedCubit / HydratedBloc / HydratedMixin.
  • Fixing lost state after rename, minify/obfuscate, or web rebuild (storagePrefix).
  • Logout / account switch / cache clear flows.
  • Hydration errors, corrupted JSON, schema upgrades.
  • Unit/widget tests that touch hydrated types.

Read the full file on GitHub · 553 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. 12d ago First seen · 553 lines · 68 tokens per session scan A ba9802961e31

Subscribe to this mod's changes

hydrated-bloc is a skill published in the GitHub repository ariaramin/flutter-skills (2 stars, last pushed 12d ago), licensed MIT. It adds 68 tokens to every session and 6,210 once invoked, about $0.0003 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-09-25.

Related

Other skills, from other repositories

beta-testing

Beta testing strategy for iOS/macOS apps. Covers TestFlight program setup, beta tester recruitment, feedback collection methodology, user interviews, signal-vs-noise interpretation, and go/no-go launch readiness decisions. Use when planning a beta, setting up TestFlight, collecting user feedback, or deciding if ready…

rshankras/claude-code-apple-skills · 67 tokens

speq-planning

Plan-authoring workflow — spec delta authoring, test mapping, plan.md/decision-log.md generation, expert-task tagging, headless escalation, and revision mode. Triggered by planner-agent.

marconae/speq-skill · 44 tokens

speq-implement-pr

Headless follow-up to /speq-plan-pr. Continues a plan on its feat/plan-name branch and runs it end-to-end: implements via /speq-implement, bumps the version, commits and pushes, runs the real test suites, records only if green, then opens/updates the PR and marks it ready. Resumes from the PR Lifecycle checkpoint in…

marconae/speq-skill · 108 tokens

speq-implement

Orchestrate implementation of a reviewed plan: task breakdown, TDD sub-agents, code review, and verification report. Use when the user asks to implement, build, or execute a plan under specs/plans/ — after /speq-plan, before /speq-record. Arg: .

marconae/speq-skill · 68 tokens

speq-code-guardrails

TDD cycle and code quality guardrails — failing-test-first, evidence, dependency, error-handling, and test-quality rules. Triggered by implementer-agent, implementer-expert-agent, and code-reviewer before any implementation or review work.

marconae/speq-skill · 57 tokens

test-xcode

Build and test iOS apps on simulator using XcodeBuildMCP.

gvkhosla/compound-engineering-pi · 18 tokens