bloc

bloc is a skill for Claude Code from VeryGoodOpenSource/vgv-ai-flutter-plugin. It costs 216 tokens per session (1,814 once invoked), scanned A, original, MIT.

A set of coding rules for managing application state in Flutter and Dart with the BLoC pattern, which keeps business logic separate from screens.

In plain words
What is it for?
Use it when building or testing Flutter features that use Bloc or Cubit, including state classes, event handling, mocks, and page/view separation.
Why use it?
It gives developers consistent ways to structure state, events, tests, and feature responsibilities instead of putting logic directly in widgets.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the vgv-ai-flutter-plugin plugin — 15 skills, 1 agent, 4 hooks, 2 MCP servers shipped together

Good fit Use it when building or testing Flutter features that use Bloc or Cubit, including state classes, event handling, mocks, and page/view separation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/verygoodopensource/vgv-ai-flutter-plugin/bloc
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add VeryGoodOpenSource/vgv-ai-flutter-plugin --skill bloc
Clone the repo
git clone --depth 1 https://github.com/VeryGoodOpenSource/vgv-ai-flutter-plugin

Made for: Claude Code.

Or install vgv-ai-flutter-plugin, the plugin that ships this one along with the rest of its 15 skills, 1 agent, 4 hooks, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bloc

README.md
[![agentmods](https://agentmods.dev/badge/skills/verygoodopensource/vgv-ai-flutter-plugin/bloc/github.svg)](https://agentmods.dev/skills/verygoodopensource/vgv-ai-flutter-plugin/bloc)
Your own site
<a href="https://agentmods.dev/skills/verygoodopensource/vgv-ai-flutter-plugin/bloc"><img src="https://agentmods.dev/badge/skills/verygoodopensource/vgv-ai-flutter-plugin/bloc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bloc

Your own site · 80×15
<a href="https://agentmods.dev/skills/verygoodopensource/vgv-ai-flutter-plugin/bloc"><img src="https://agentmods.dev/badge/skills/verygoodopensource/vgv-ai-flutter-plugin/bloc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 216 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,814 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00216 $0.01814
Opus 5.5 $0.00086 $0.00726
Sonnet 5.5 $0.00043 $0.00363
Haiku 4.5 $0.00022 $0.00181

Measured 4d ago against content hash 042d5c647a24, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bloc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/bloc/SKILL.md · 164 lines

How it starts

The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bloc

State management library for Dart and Flutter using the BLoC (Business Logic Component) pattern to separate business logic from the presentation layer.


Core Standards

Apply these standards to all Bloc/Cubit work:

  • Read the matching VGE Standards file before writing code — every task listed under VGE Standards below has a file you MUST open with the Read tool first; it holds rules these bullets do not repeat
  • Use blocTest() from package:bloc_test for all Bloc and Cubit tests — never raw test() with manual stream assertions
  • Use package:mocktail for mocking — never package:mockito
  • build: constructs the bloc under test — return a new instance from the callback, never one built in setUp and shared, so every blocTest starts from a clean bloc and its lifecycle stays with blocTest
  • No bloc-to-bloc direct dependencies — blocs communicate through the UI or shared repositories
  • Page/View separation — Page provides the Bloc/Cubit via BlocProvider, View consumes via BlocBuilder/BlocListener
  • Sealed classes for events and multi-state types — enables exhaustive pattern matching with Dart 3 switch
  • Equatable for all states and events — extend Equatable and override props for value equality
  • Business logic in Bloc/Cubit only — never in widgets, pages, or views
  • Single responsibility — one Bloc/Cubit per feature concern
  • emit only inside the handler — call emit from the on<Event> callback or Cubit method that owns it, never from a stream subscription or callback that outlives the handler
  • Dart 3.13 primary constructors — on a Dart 3.13+ baseline, declare event, state, and widget fields as primary-constructor declaring parameters (class const ProfileRequested(final String userId) extends ProfileEvent) rather than this.field. A class-body constructor is named new (const new();, new() : super(0)), and an empty class body is ;. Keep the classic form only below 3.13

Read the full file on GitHub · 164 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed 042d5c647a24
  2. 24d ago Changed · -28 lines bd661e7ee699
  3. 1mo ago Changed 703f2480db11
  4. 1mo ago Changed · -9 lines f3fabf8d30db
  5. 2mo ago Changed · +1 lines eb8d9a265e0b
  6. 2mo ago Changed · -29 lines 24bdafe1aa07
  7. 2mo ago Changed · +7 lines · +143 tokens per session 97f41f749e3b
  8. 2mo ago Changed · +3 lines · +60 tokens per session 152db39fd3a0
  9. 3mo ago First seen · 219 lines · 13 tokens per session scan A 29e14eb350ce

Subscribe to this mod's changes

bloc is a skill published in the GitHub repository VeryGoodOpenSource/vgv-ai-flutter-plugin (182 stars, last pushed 4d ago), licensed MIT. It adds 216 tokens to every session and 1,814 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

bloc compared with skills from other repositories

bloc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
blocVeryGoodOpenSource/vgv-ai-flutter-pluginSkill1824d agoMITA216Claude Code
Flutter Testing PatternsPramodDutta/qaskillsSkill25227d agoMITA31Claude Code, Codex
fl-route-configphanbaohuy96/flutter_base_structureSkill10todaynoneA26Claude Code, Codex
fl-bus-eventphanbaohuy96/flutter_base_structureSkill10todaynoneA20Claude Code, Codex
fl-module-scaffoldphanbaohuy96/flutter_base_structureSkill10todaynoneA24Claude Code, Codex
fl-bloc-patternphanbaohuy96/flutter_base_structureSkill10todaynoneA28Claude Code, Codex
fl-reviewerphanbaohuy96/flutter_base_structureSkill10todaynoneA31Claude Code, Codex