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 $0.00015 $0.00137
Sonnet 5 $0.00006 $0.00055
Haiku 4.5 $0.00003 $0.00027

Measured 8d ago against content hash aad67e2e25e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 8d 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. 8d 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 (18 stars, last pushed 23d ago), licensed MIT. It adds 29 tokens to every session and 274 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

expo-notifications

Push and local notification setup with expo-notifications. iOS (APNs) + Android (FCM) credentials, permission flow, channels (Android 8+), categories, and scheduled notifications.

fatihkan/badi · 73 tokens

printing-press-amend

Amend a published CLI from one of two input sources: (1) dogfood mode mines the active Claude Code session transcript for friction (missing flags, hand- rolled API payloads, silent-null returns); (2) direct-input mode accepts user-supplied asks (rename a command, add commands or feeds, fix a named bug, optionally…

mvanhorn/cli-printing-press · 222 tokens

printing-press

Set up a new integration, connector, or CLI binding for any API. Wrap or generate a ship-ready Go CLI from an OpenAPI, HAR, or Postman spec via the lean research -> generate -> build -> shipcheck loop. Use when the user says build a CLI, wrap this API, set up a new integration, add a connector, integrate with a…

mvanhorn/cli-printing-press · 86 tokens

opensrc

Fetch dependency source code to give AI agents deeper implementation context. Use when the agent needs to understand how a library works internally, read source code for a package, fetch implementation details for a dependency, or explore how an npm/PyPI/crates.io package is built. Triggers include "fetch source for"…

vercel-labs/opensrc · 103 tokens

scaffold-project

Scaffold a new app, API, backend, fullstack project, mobile app, polyglot service, monorepo, or starter with Better Fullstack. Use when the user wants to create, start, bootstrap, initialize, or generate a project from a stack description. Prefer the bundled Better Fullstack MCP server: guidance, schema…

Marve10s/Better-Fullstack · 80 tokens

binance-spot-openapi-skill

Operate Binance Spot market, account, and order APIs through UXC with a curated OpenAPI schema, Binance query signing, and separate mainnet/testnet link flows.

holon-run/uxc · 42 tokens