add-optimistic-command

Community

Instant UI updates with safe rollback.

Authormarcglasberg
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill implements optimisticCommand for blocking one-time actions with immediate UI updates and automatic rollback on failure.

Core Features & Use Cases

  • Supports optimistic updates for creating, deleting, and updating items, as well as form submissions, file uploads, and payments.
  • Updates the UI instantly, runs the server operation asynchronously, and rolls back on failure.
  • Provides a clear flow: identify the operation, apply an optimistic update, perform the server call, and optionally reconcile with server data or customize rollback.

Quick Start

Define an optimisticCommand workflow in your Cubit to update the UI immediately and reconcile with the server response.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: add-optimistic-command
Download link: https://github.com/marcglasberg/bloc_superpowers/archive/main.zip#add-optimistic-command

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.