Agent skill · Frontend

frontend-optimistic-mutations

A portable, framework-agnostic discipline for the write path of any React or React Native app using a query/cache layer. Codifies the optimistic-update lifecycle (cancel in-flight queries → snapshot every affected cache → patch instantly → roll back verbatim on error → invalidate on...

Nick44,086★ · +407/wk · 1 repos on radarProfile →
claude-codecodexcursorMIT
Install
npx skills add sickn33/agentic-awesome-skills --skill frontend-optimistic-mutations --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 14 KB
Bundled scripts: none
Path: skills/frontend-optimistic-mutations/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 44,414 · +328 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Frontend Optimistic Mutations (the write path) ## When to Use Use this skill when you need a portable, framework-agnostic discipline for the write path of any React or React Native app using a query/cache layer. Codifies the optimistic-update lifecycle (cancel in-flight queries → snapshot every affected cache → patch instantly → roll back verbatim on error → invalidate on... > Portable skill — readable by Claude Code, OpenCode, Codex, Cursor, Windsurf, and others. > This skill describes the **discipline of the write path** — optimistic updates, rollback, > idempotency, cache coherence — not a UI library or a styling system. It builds directly on the > **frontend-data-contracts** skill (writes go through the typed client) and the > **frontend-architecture** skill (mutations live in `modules/{feature}/hooks/`, keyed by a factory). The goal: a write **feels instant** (the UI reflects it before the server confirms), is **safe** (a failure restores the exact prior state, and a retry never double-charges), and leaves the cache **coherent** (the detail view and every list page agree). All three at once — that's the craft. --- ## 0. The five core ideas 1. **The optimistic lifecycle is fi

What's inside
Steps it walks through
  1. When to Use
  2. 0. The five core ideas
  3. 1. When to be optimistic (and when not)
  4. 2. The optimistic lifecycle (TanStack Query)
  5. 3. Non-optimistic writes: create with server-owned fields
  6. 4. Cache coherence (lock-step detail + lists)
  7. 5. Idempotency (safe retries on money-moving writes)
  8. 6. Retry policy
  9. 7. Library adapters
  10. 8. Conventions checklist (enforce in review)
  11. 9. How to apply this skill
  12. Publishing / installing this skill
  13. Limitations
More from agentic-awesome-skills
All skills →
About this skill
What does the frontend-optimistic-mutations skill do?

A portable, framework-agnostic discipline for the write path of any React or React Native app using a query/cache layer. Codifies the optimistic-update lifecycle (cancel in-flight queries → snapshot every affected cache → patch instantly → roll back verbatim on error → invalidate on...

How do I install it?

Run `npx skills add sickn33/agentic-awesome-skills --skill frontend-optimistic-mutations --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going