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.
npx agentmods add skills/mdazadhossain95/flutter-agent-skills/flutter-caching-datanpx skills add mdazadhossain95/flutter-agent-skills --skill flutter-caching-datagit clone --depth 1 https://github.com/mdazadhossain95/flutter-agent-skillsWrote 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.
[](https://agentmods.dev/skills/mdazadhossain95/flutter-agent-skills/flutter-caching-data)<a href="https://agentmods.dev/skills/mdazadhossain95/flutter-agent-skills/flutter-caching-data"><img src="https://agentmods.dev/badge/skills/mdazadhossain95/flutter-agent-skills/flutter-caching-data.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.01773 |
| Opus 5 | $0.00017 | $0.00886 |
| Sonnet 5 | $0.00007 | $0.00355 |
| Haiku 4.5 | $0.00003 | $0.00177 |
Grade A, and why
flutter-caching-data 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Implementing Flutter Caching and Offline-First Architectures
Contents
- Selecting a Caching Strategy
- Implementing Offline-First Data Synchronization
- Managing File System and SQLite Persistence
- Optimizing UI, Scroll, and Image Caching
- Caching the FlutterEngine (Android)
- Workflows
Selecting a Caching Strategy
Apply the appropriate caching mechanism based on the data lifecycle and size requirements.
- If storing small, non-critical UI states or preferences: Use
shared_preferences. - If storing large, structured datasets: Use on-device databases (SQLite via
sqflite, Drift, Hive CE, or Isar). - If storing binary data or large media: Use file system caching via
path_provider. - If retaining user session state (navigation, scroll positions): Implement Flutter's built-in state restoration to sync the Element tree with the engine.
- If optimizing Android initialization: Pre-warm and cache the
FlutterEngine.
Implementing Offline-First Data Synchronization
Design repositories as the single source of truth, combining local databases and remote API clients.
Read Operations (Stream Approach)
Yield local data immediately for fast UI rendering, then fetch remote data, update the local cache, and yield the fresh data.
Stream<UserProfile> getUserProfile() async* {
// 1. Yield local cache first
final localProfile = await _databaseService.fetchUserProfile();
if (localProfile != null) yield localProfile;
// 2. Fetch remote, update cache, yield fresh data
try {
final remoteProfile = await _apiClientService.getUserProfile();
await _databaseService.updateUserProfile(remoteProfile);
yield remoteProfile;
} catch (e) {
// Handle network failure; UI already has local data
}
}
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.
- 5d ago First seen · 169 lines · 34 tokens per session scan A eb1e276f477d
flutter-caching-data is a skill published in the GitHub repository mdazadhossain95/flutter-agent-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 34 tokens to every session and 1,773 once invoked, about $0.0002 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.
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.
mobile-offline-support
Implement offline-first mobile apps with local storage, sync strategies, and conflict resolution. Covers AsyncStorage, Realm, SQLite, and background sync patterns.
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.
flutter-storage
Use this skill when working on Flutter data persistence — SecureStorage (tokens, credentials), SharedPreferences (key-value non-sensitive), Drift (SQLite database, DAOs, tables, migrations), local database schema, caching, offline storage, key-value store, encrypted storage, or any local data layer.
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.
couchbase
Couchbase distributed NoSQL database. Use for mobile and edge.