Logo
Agent Skills Guide

liveview-optimistic-ui

published 2026/03/13

Implements optimistic UI patterns in Elixir Phoenix LiveView: instant client feedback before server confirmation, loading states, rollback/revert on failure, race condition guards, stream insert/delete animations, undo windows, and accessibility for async interactions. Use when the user needs LiveView interactions to feel immediate, wants to add loading indicators or spinners, needs to handle double-submit or double-click, wants to animate stream inserts or deletes, needs undo/rollback for destructive actions, is dealing with stale data or flicker under latency, or needs aria-live announcements for optimistic state changes. Don't use for general LiveView form validation or changeset errors (use liveview-forms instead), non-LiveView frontend frameworks (React, Vue, Svelte), or server-side performance optimization unrelated to perceived UI responsiveness.

📦 Install Skill

Command line install

Install directly with the `skills` CLI.

npx skills add wunki/amplify/skills/liveview-optimistic-ui

Local download

Download only this skill directory.

Download liveview-optimistic-ui only
File Explorer
0 files
No file selected
readonly

Select a file to view its content