optimistic-ui-fullstack
Installation
SKILL.md
Optimistic UI — Fullstack
Discovery
Infer from context before asking:
- Data fetching library? — React Query, SWR, RTK Query, tRPC, or raw fetch with local state?
- What's being mutated? — list item (add/delete/reorder), field update, toggle, or form submit?
- Is ordering or ID generation involved? — optimistic items need a temporary ID strategy
- What should happen on failure? — silent rollback, toast, inline error, or retry prompt?
The Three Failure Modes to Design For Upfront
Most implementations only handle the happy path. Design all three before writing code: