/bloc-signals:bloc-signalsfrom bloc-signals
Implements, reviews, tests, and debugs Dart/Flutter code using bloc_signals, including BlocSignal, CubitSignal, providers, builders, selectors, and migration from package:bloc or Riverpod.
Ships in bloc-signals. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
BlocSignal is young and its API may change between releases. Inspect the consumer project's
pubspec.yaml, lockfile, imports, and installed package source before editing code. Use this
repository only when the project follows its current branch or the task concerns the repository
itself.
Do not infer API parity from package:bloc, package:flutter_bloc, or Riverpod. BlocSignal uses
signals, has no state stream or provider dependency graph, and does not implement every source
package lifecycle, predicate, or widget API.
This plugin is self-contained for BlocSignal work. When the agent already has skills from
rodydavis/signals.dart, use these optional companions for lower-level Signals tasks:
signals-dart for signals_core primitives and utilities.signals-flutter for Flutter bindings and signal-aware widgets.signals-hooks for flutter_hooks integration.signals-lint for analyzer rules and quick fixes.signals-migration-6-to-7 for Signals 6 to 7 migrations.Do not assume these skills are installed. If they are unavailable, inspect the consumer project's installed Signals source before changing code.
flutter_hooks integration (signals_hooks), widget ownership, and derived UI state.bloc, flutter_bloc, bloc_concurrency, hydrated_bloc, replay_bloc, or bloc_test.bloc_signals_hydrate).bloc_signals_replay).bloc_signals_jaspr).bloc_signals_devtools).bloc_signals_lint).OtelBlocSignalObserver, span completion gaps, and telemetry data
choices.Load only the references needed for the task.
BlocSignalBase<State> owns state and lifecycle. Use CubitSignal<State> for public methods and
BlocSignal<Event, State> for event dispatch. Use CubitSignalMixin<State> or BlocSignalMixin<Event, State> when a class already extends an existing superclass (such as ChangeNotifier, TextEditingController, or BaseRepository) and invoke initCubitSignal(initialState: ...) in the constructor.initialState: (for example : super(initialState: initial)), NOT positional super(initial).value (the preferred modern getter) or stateValue (permanent alias for backward compatibility) to read raw StateType values inside methods/handlers (such as emit(value + 1)). state returns ReadonlySignal<StateType> for reactive signal subscriptions.emit changes state synchronously and skips a value equal to the current state.BlocSignal.add returns void. Synchronous handlers finish before it returns. Async handler
futures are observed for errors but are not returned or cancelled by close.on<E> registration is runtime routing. Duplicate exact types throw StateError; registration
does not give sealed-class exhaustiveness. An onEvent override must call super.onEvent.close is idempotent, returns Future<void>, and disposes effects registered through
createEffect. New events are dropped after closure. A post-close emit asserts in debug
mode and returns without updating state in release mode.onChange runs after mutation. Both
local hooks require super; equal emits run neither hook.BlocSignalProvider(create:) is lazy by default, owns its bloc, and closes it. Use lazy: false
for eager creation. BlocSignalProvider.value does not own its bloc. Both BlocSignalProvider
and BlocSignalListener support an optional child parameter (defaulting to const SizedBox.shrink() in Flutter and const _NullComponent() in Jaspr), eliminating placeholder child arguments inside MultiBlocSignalProvider or MultiBlocSignalListener.context.watch<T>() tracks provider replacement, not state changes. Use BlocSignalBuilder or a
signals widget to rebuild for state.BlocSignalListener suppresses its initial effect run and supports listenWhen(previous, current). It passes only the current state to the listener callback.BlocSignalObserver is a single slot. Installing a telemetry observer can replace an
existing logger unless the application composes them.BlocSignalBase overrides toString() to output $runtimeType($stateValue), providing immediate diagnostic visibility across all CubitSignal and BlocSignal subclasses.late final field declarations with type inference for computed properties (for example late final itemCount = computed(() => stateValue.items.length);) rather than uninitialized field declarations with constructor-body assignments.Isolate.run for CPU compute, batch() for multi-signal mutations, and cooperative time-slicing via Stopwatch + Future.pause() (Dart 3.13+) or Future<void>.delayed(Duration.zero) (Dart 3.5). Never use event loop delays as a crutch to wait for state transitions to settle.Never create an effect or computed during a Flutter build method. Keep its owner and disposal
path explicit.
agents/openai.yaml (opens in a new tab)core.md (opens in a new tab)decision_matrix.md (opens in a new tab)devtools.md (opens in a new tab)flutter.md (opens in a new tab)genui.md (opens in a new tab)hydration.md (opens in a new tab)interoperability.md (opens in a new tab)jaspr.md (opens in a new tab)lint.md (opens in a new tab)migration.md (opens in a new tab)migration_bridge.md (opens in a new tab)otel.md (opens in a new tab)replay.md (opens in a new tab)riverpod_migration.md (opens in a new tab)scars.md (opens in a new tab)testing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub randalschwartz/blocsignal --plugin bloc-signalsOther plugins' skills for the same job