offline

Architecture guidance for software that continues working without an internet connection and synchronizes data when connectivity returns.

In plain words
What is it for?
Adding offline mode, local caching, data synchronization, queued updates, and conflict-resolution rules.
Why use it?
It addresses the difficulty of storing local changes, syncing them later, and handling conflicting edits.

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/launch52-ai/flutter-template/offline
Any agent
npx skills add launch52-ai/flutter-template --skill offline
Clone the repo
git clone --depth 1 https://github.com/launch52-ai/flutter-template

Made for: Claude Code, Codex.

Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,607 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.00044 $0.01607
Opus 5 $0.00022 $0.00804
Sonnet 5 $0.00009 $0.00321
Haiku 4.5 $0.00004 $0.00161

Measured yesterday against content hash 90050ad89956, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

offline 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 yesterday.

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.

.claude/skills/offline/SKILL.md · 196 lines

How it starts

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

Offline - Offline-First Architecture

Implement offline-first architecture with local storage, automatic sync, and conflict resolution. Supports multiple patterns from fully offline apps to online-first with offline fallback.

When to Use This Skill

  • Adding offline support to existing features
  • Building fully offline-first apps
  • Implementing data synchronization
  • Adding local caching with sync
  • User asks "offline mode", "sync data", "work offline", "cache locally"

When NOT to Use This Skill

  • Simple in-memory caching - Use /data caching patterns instead
  • Network connectivity detection - Use /network-connectivity instead
  • Error handling for failed requests - Use /data NetworkFailure types

Questions to Ask

  1. Offline mode: Fully offline-first or online-first with offline fallback?
  2. Data complexity: Simple key-value or structured relational data?
  3. Sync strategy: Periodic sync, on-demand, or push-based?
  4. Conflict resolution: Last-write-wins, server-wins, or custom merge?
  5. Data sensitivity: Does local data need encryption?

Quick Reference

Offline Patterns

Pattern Use When Local DB Sync
Fully Offline Notes, journals, todo apps Primary Optional upload
Offline-First Field apps, travel apps Primary Background sync
Online-First + Fallback E-commerce, social apps Cache On reconnect
Cache-Only Read-heavy feeds TTL cache Refresh on pull

Storage Options

Storage Best For Encryption Performance
Drift (SQLite) Relational data, complex queries AES-256 via SQLCipher Fast
Hive Key-value, settings, small objects Built-in AES-256 Very fast
Isar Large datasets, full-text search Limited Fastest
SharedPreferences Flags, simple settings None Fast
SecureStorage Tokens, PII Platform keychain Slower

Read the full file on GitHub · 196 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. yesterday First seen · 196 lines · 44 tokens per session scan A 90050ad89956

Subscribe to this mod's changes

offline is a skill published in the GitHub repository launch52-ai/flutter-template (2 stars, last pushed 6mo ago), licensed MIT. It adds 44 tokens to every session and 1,607 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.

Related

Other skills, from other repositories