simplify-state

Community

Migrate state management with ease and safety.

Authormarcglasberg
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The skill helps teams migrate Bloc/Cubit state management by removing isLoading and error-related fields from state classes and updating copies and UI logic to rely on context.isWaiting() and context.isFailed().

Core Features & Use Cases

  • Detects and removes isLoading, loading, isProcessing, errorMessage, error, and related fields from state classes.
  • Updates copyWith methods and Cubit methods to use mix keys and remove explicit loading/error emissions.
  • Replaces widget checks with context.isWaiting(key) and context.isFailed(key), and surfaces exceptions via context.getException(key).
  • Use case: Upgrading an existing Flutter app that uses legacy loading/error fields to a cleaner, predictable UI flow across screens.

Quick Start

Apply the migration steps to a sample Cubit and its widgets to remove loading and error fields and replace checks with context.isWaiting and context.isFailed.

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: simplify-state
Download link: https://github.com/marcglasberg/bloc_superpowers/archive/main.zip#simplify-state

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.