setup-bloc-superpowers

Integrate bloc_superpowers into Flutter apps with Superpowers widget and error handling.

7|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/marcglasberg/bloc_superpowers --skill setup-bloc-superpowers
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: setup-bloc-superpowers
Source: https://github.com/marcglasberg/bloc_superpowers/tree/main/.claude/skills/setup-bloc-superpowers
Command: npx skills add https://github.com/marcglasberg/bloc_superpowers --skill setup-bloc-superpowers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps Flutter developers quickly integrate bloc_superpowers into a project by wiring the Superpowers widget and configuring error handling for Cubits, reducing boilerplate and setup time.

Core Features & Use Cases

  • Adds bloc_superpowers as a dependency to enable enhanced Cubit error handling and context helpers.
  • Wraps the app with the Superpowers widget, positioned above MaterialApp (or CupertinoApp) to enable global features.
  • Provides optional UserExceptionDialog or UserExceptionToast to automatically display errors.

Quick Start

Follow the steps to add bloc_superpowers to your Flutter project, wrap your app with Superpowers above MaterialApp, and attach a UserExceptionDialog for automatic error presentation.

Frequently Asked Questions about setup-bloc-superpowers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up global error handling for Cubits in a Flutter app?▼

Global error handling for Cubits in a Flutter app is configured by wrapping your MaterialApp with the Superpowers widget and attaching a UserExceptionDialog to automatically display errors.

What is the best way to show automatic error dialogs from Bloc state in Flutter?▼

To show automatic error dialogs from Bloc state in Flutter, you integrate bloc_superpowers and surround your home widget with UserExceptionDialog to catch and present exceptions automatically.

How do I add bloc_superpowers to a Flutter project bootstrap?▼

Adding bloc_superpowers to a Flutter project bootstrap requires declaring the dependency, placing the Superpowers widget above MaterialApp, and optionally adding UserExceptionToast for error notifications.

Does bloc_superpowers work with CupertinoApp for error handling?▼

Yes, bloc_superpowers works with CupertinoApp for error handling by wrapping the app with the Superpowers widget positioned above CupertinoApp during the UI setup.

Why do I need to wrap my MaterialApp with the Superpowers widget?▼

You need to wrap MaterialApp with the Superpowers widget to enable enhanced Cubit error handling and context helpers globally across your Flutter application.

Can I use UserExceptionToast instead of UserExceptionDialog for Flutter errors?▼

Yes, you can use UserExceptionToast instead of UserExceptionDialog to display automatic errors as transient toasts rather than blocking dialogs during your app setup.