create-mix-preset

Convert mix() calls into reusable MixPreset callables with per-call overrides.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turn mix() usage into reusable MixPreset callables.

Core Features & Use Cases

  • Define a const MixPreset with preset parameters to encapsulate common API call patterns.
  • Use the preset as a callable replacement for mix() with per-call overrides and optional default keys.
  • Access runtime context via .ctx() to inspect retry state and other metadata during actions.
  • Reduce boilerplate and enforce consistent configurations across cubits in your Flutter apps.

Quick Start

Create a MixPreset constant and invoke it with a key and a function to execute the action.

Frequently Asked Questions about create-mix-preset

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

FAQPage Schema
How do I reduce boilerplate for repeated mix() API call patterns in Flutter cubits?

To reduce mix() boilerplate, define a const MixPreset with preset parameters to encapsulate common API call patterns. This callable replaces mix() directly, enforcing consistent configurations and standardized retry behavior across cubits.

Can I override preset parameters for individual mix() calls in Dart?

Yes, you can override preset parameters for individual mix() calls. A MixPreset callable accepts per-call overrides and optional default keys, allowing you to customize specific action parameters without modifying the const preset definition.

How do I inspect retry state metadata during a Flutter cubit action?

You inspect retry state metadata by accessing runtime context via the .ctx() method exposed by the MixPreset callable. This provides context access during actions to inspect retry state and other metadata.

Does create-mix-preset work with Flutter projects using bloc_superpowers?

Yes, create-mix-preset applies specifically to Dart/Flutter projects using bloc_superpowers. It provides standardized call patterns and consistent retry behavior for developers operating within this state management environment.

What is the best way to standardize API call configurations across multiple cubits?

The best way to standardize configurations is turning mix() usage into reusable MixPreset callables. Defining a const MixPreset enforces consistent API call patterns and reduces boilerplate across all cubits in your Flutter application.