/flutter-bloc:flutter-context-watch-instead-of-top-builderfrom Flutter BLoC
Refactors Flutter widgets to replace top-level BlocBuilder wrappers with context.watch-based state reads while preserving behavior. Use when the user asks to remove BlocBuilder at page/widget root, use context.watch, or simplify Flutter BLoC widget trees.
Ships in Flutter BLoC. 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.
None: SKILL.md is the whole skill.
Replace a top-level BlocBuilder<Cubit, State> with context.watch<Cubit>() in build, while keeping the same UI behavior.
BlocBuilder wrapping most of the screen.build, read the cubit once:
final cubit = context.watch<MyCubit>();final state = cubit.state;BlocBuilder and return the wrapped widget directly.context.read<MyCubit>() in handlers (onTap, submit, etc.).presentation stream listeners exist (for useOnStreamChange), use cubit.presentation so there is a single watched cubit reference.// Before
return BlocBuilder<MyCubit, MyState>(
builder: (context, state) => MyScaffold(
isLoading: state.isLoading,
),
);
// After
final cubit = context.watch<MyCubit>();
final state = cubit.state;
return MyScaffold(
isLoading: state.isLoading,
);
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub leancodepl/ai-plugins --plugin flutter-bloc