offline-first

offline-first is a skill for Kiro from ihatesea69/kiro-kit. It costs 29 tokens per session (274 once invoked), scanned A, original, MIT.

A guide to making an app useful when there is no internet connection. It covers saving data on the device, synchronising it with a server later, and handling conflicting changes.

In plain words
What is it for?
Use it to design local storage, queued updates, cached responses, retry behaviour, sync-status screens, and conflict handling for mobile or other networked apps.
Why use it?
It prevents users from losing work or being blocked when connectivity is weak, intermittent, or unavailable.

Skill for Kiro

Written for Kiro: installed under .kiro/.

Good fit Use it to design local storage, queued updates, cached responses, retry behaviour, sync-status screens, and conflict handling for mobile or other networked apps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ihatesea69/kiro-kit/offline-first
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 ihatesea69/kiro-kit --skill offline-first
Clone the repo
git clone --depth 1 https://github.com/ihatesea69/kiro-kit

Made for: Kiro.

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 offline-first

README.md
[![agentmods](https://agentmods.dev/badge/skills/ihatesea69/kiro-kit/offline-first/github.svg)](https://agentmods.dev/skills/ihatesea69/kiro-kit/offline-first)
Your own site
<a href="https://agentmods.dev/skills/ihatesea69/kiro-kit/offline-first"><img src="https://agentmods.dev/badge/skills/ihatesea69/kiro-kit/offline-first/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 offline-first

Your own site · 80×15
<a href="https://agentmods.dev/skills/ihatesea69/kiro-kit/offline-first"><img src="https://agentmods.dev/badge/skills/ihatesea69/kiro-kit/offline-first.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 274 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.00029 $0.00274
Opus 5.5 $0.00012 $0.00110
Sonnet 5.5 $0.00006 $0.00055
Haiku 4.5 $0.00003 $0.00027

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

Security

Grade A, and why

offline-first 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 2mo 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.

.kiro/skills/offline-first/SKILL.md · 42 lines

What it actually says

Offline First

Activate this skill when implementing offline-capable mobile features.

When to Use

  • Designing data persistence strategy
  • Implementing local-first data storage
  • Building sync mechanisms with remote servers
  • Handling conflict resolution for concurrent edits
  • Implementing optimistic updates with rollback
  • Caching network responses for offline access

Storage Options

  • SQLite (drift/sqflite): relational data, complex queries
  • Hive: fast key-value, good for settings and small datasets
  • Isar: NoSQL, good for large datasets with indexing
  • SharedPreferences: simple key-value for settings
  • Secure storage: credentials and tokens

Sync Strategies

  • Queue-based: store operations, replay when online
  • Timestamp-based: last-write-wins with conflict detection
  • CRDT-based: conflict-free for collaborative data
  • Delta sync: send only changes since last sync

Rules

  • Always design for offline-first, online as enhancement
  • Handle sync conflicts explicitly (never silently overwrite)
  • Show clear UI indicators for sync status
  • Implement retry with exponential backoff
  • Test with airplane mode and intermittent connectivity
  • Encrypt sensitive data stored locally
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. 2mo ago First seen · 42 lines · 29 tokens per session scan A aad67e2e25e9

Subscribe to this mod's changes

offline-first is a skill published in the GitHub repository ihatesea69/kiro-kit (19 stars, last pushed 3mo ago), licensed MIT. It adds 29 tokens to every session and 274 once invoked, about $0.0001 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-03.

Related

offline-first compared with skills from other repositories

offline-first next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
offline-firstihatesea69/kiro-kitSkill193mo agoMITA29Kiro
scaffold-projectMarve10s/Better-FullstackSkill831yesterdayMITA80Claude Code
amazon-location-serviceseandkendall/kiro-configSkill102d agoApache-2.0A20Claude Code, Codex
expo-notificationsfatihkan/badiSkill81mo agoMITA73Claude Code
cmp-firebase-connectkvdm-co-pilot/create-cmpSkill07d agoMITA195Claude Code
sinch-in-app-callingsinch/sinch-pluginsSkill63d agoApache-2.0A71Claude Code, Codex
build-zoom-contact-center-appanthropics/knowledge-work-pluginsSkill37k4d agoApache-2.0A48Claude Code