offline-first-development

offline-first-development is a skill for Claude Code, Codex from BuilderCed/agent-skills. It costs 24 tokens per session (974 once invoked), scanned A, original, MIT.

Development guidance for applications that continue working without an internet connection and synchronize changes when connectivity returns.

In plain words
What is it for?
Use it to plan IndexedDB storage, service workers, background sync, local-first applications, and conflict-resolution rules for mobile or web apps.
Why use it?
It addresses unreliable networks, offline data storage, delayed synchronization, and conflicting edits made on different devices.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for cline. Also seen: mentions Codex; built for cline; mentions Gemini CLI.

Good fit Use it to plan IndexedDB storage, service workers, background sync, local-first applications, and conflict-resolution rules for mobile or web apps.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/builderced/agent-skills/offline-first-development"><img src="https://agentmods.dev/badge/skills/builderced/agent-skills/offline-first-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 974 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.00024 $0.00974
Opus 5.5 $0.00010 $0.00390
Sonnet 5.5 $0.00005 $0.00195
Haiku 4.5 $0.00002 $0.00097

Measured 3mo ago against content hash a89e3e7bb61a, 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-development 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 3mo 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/offline/offline-first-development/SKILL.md · 137 lines

How it starts

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

Offline-First Development

When to Use

  • Building apps for low-connectivity environments (rural, Africa, transit)
  • Building PWAs that must work without internet
  • Designing sync strategies for mobile apps
  • Implementing local-first architectures
  • Building for environments with unreliable connections

Core Principles

  1. Local-first: Data lives on the device. Server is backup, not source of truth.
  2. Sync on reconnect: Queue changes offline, sync when connection returns.
  3. Conflict resolution: Define merge strategy before building.
  4. Progressive enhancement: App works offline; online adds features.

Storage Options

Storage Size Limit Persistence Best For
IndexedDB ~50% of disk Persistent Structured data, large datasets
Cache API ~50% of disk Persistent HTTP responses, assets
localStorage 5-10 MB Persistent Small key-value config
OPFS ~50% of disk Persistent File-like access (new)

Recommendation: IndexedDB for data, Cache API for assets, OPFS for files.

Service Worker Pattern

Install → Cache essential assets (app shell, fonts, icons)
Activate → Clean old caches
Fetch → Cache-first for assets, network-first for API data
Sync → Background sync for queued mutations

Caching Strategies

Strategy When How
Cache-first Static assets (CSS, JS, images) Serve from cache, update in background
Network-first API data Try network, fall back to cache
Stale-while-revalidate Semi-static (user profile) Serve cache, update from network
Network-only Real-time data (chat, payments) No caching

Sync Patterns

Optimistic Updates

  1. Apply change locally immediately
  2. Queue mutation for sync
  3. On reconnect: send queued mutations
  4. On conflict: apply resolution strategy

Conflict Resolution Strategies

Strategy When How
Last-write-wins Simple data, single user Timestamp comparison
Server-wins Authoritative server Discard local on conflict
Client-wins User autonomy priority Overwrite server
Merge Collaborative editing Field-level merge
Manual Critical data Show conflict to user

Read the full file on GitHub · 137 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. 3mo ago First seen · 137 lines · 24 tokens per session scan A a89e3e7bb61a

Subscribe to this mod's changes

offline-first-development is a skill published in the GitHub repository BuilderCed/agent-skills (2 stars, last pushed 7mo ago), licensed MIT. It adds 24 tokens to every session and 974 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-08-31.

Related

offline-first-development compared with skills from other repositories

offline-first-development next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
offline-first-developmentBuilderCed/agent-skillsSkill27mo agoMITA24Claude Code, Codex
reimagine-itKayforkind/reimagine-itSkill2186d agoMITA230Claude Code
answer-me-with-htmlseaworld008/Commonly-used-high-value-skillsSkill754d agoMITA30Claude Code, Codex
tiktok-videoFangyuan025/ChatySkill60yesterdayMITA59Claude Code, Codex
communicationsafrotools/afrotoolsSkill32yesterdayApache-2.0A116Claude Code
languageafrotools/afrotoolsSkill32yesterdayApache-2.0A159Claude Code
logisticsafrotools/afrotoolsSkill32yesterdayApache-2.0A122Claude Code