local-first

Installation
SKILL.md

Local-First Architecture — Offline-capable Mastery


Mandatory Pre-Flight Context Inspection

Before implementing local-first storage or CRDT synchronization, you MUST inspect:

  1. Conflict Resolution Strategy (Section 15) → Define explicit conflict resolution (LWW timestamps or Yjs CRDTs) before writing local sync logic
  2. Persistent Storage (Section 16) → Use IndexedDB (via Dexie/idb) or SQLite WASM for local persistence; ban localStorage for >5MB data
  3. Incremental Watermark Sync (Section 17) → Perform delta syncs using timestamps/watermarks rather than re-fetching full datasets

Activation Boundaries

  • Activate when: Operating in tasks requiring Local-first software architecture mastery. CRDTs (Conflict-free Replicated Data Types), IndexedDB synchronization, sync engines (ElectricSQL, Replicache, PowerSync), offline-capable data fetching, optimistic UI, and SQLite in the browser (WASM). Use when building PWA offline capabilities, rapid UIs, or multiplayer collaborative tools..
  • DO NOT activate when: The task falls strictly outside local-first domain or belongs to a different dedicated specialist.

Hallucination Traps (Read First)

Installs
3
GitHub Stars
7
First Seen
Apr 26, 2026