Sandbox
@VeryGoodOpenSource/vgv-ai-flutter-plugin

Claude Code plugin for Flutter and Dart skills

This plugin gives Claude Code a set of Flutter and Dart skills for architecture, testing, accessibility, theming, navigation, security, and more. It also adds a Flutter reviewer agent, hooks that analyze and format changed Dart files, and MCP connections to Dart and Very Good CLI tools.

161 starsโ€ข22 forksโ€ขShellโ€ขUpdated 7d ago
Who it's for

Builders who want Claude Code to follow Flutter and Dart best practices while they build.

What it delivers

You can get more consistent Flutter and Dart output without restating project standards every time.

What it does

Flutter and Dart skills

Packaged skill files cover project scaffolding, animations, accessibility, testing, navigation, internationalization, theming, Bloc, layered architecture, security, UI packages, license compliance, SD

Flutter reviewer agent

`agents/flutter-reviewer.md` gives Claude a read-only reviewer for changed Dart code, focused on bloc, testing, security, and accessibility standards.

Session and tool hooks

Scripts in `hooks/` warn about missing Very Good CLI, block CLI bypasses, allow read-only git for the reviewer agent, and run `dart analyze` and `dart format` after file edits.

MCP integrations

`.mcp.json` connects Claude Code to the Dart and Flutter MCP server and the Very Good CLI MCP server for formatting, testing, project creation, license checks, and package tasks.

Skill evals

`evals/` contains promptfoo-based checks that measure whether Claude routes to the right skill and follows it.

How to get it

  1. 1One-line install from your terminal
    claude plugin marketplace add VeryGoodOpenSource/very-good-claude-code-marketplace && claude plugin install vgv-ai-flutter-plugin
  2. 2Add the marketplace
    /plugin marketplace add VeryGoodOpenSource/very-good-claude-code-marketplace
  3. 3Install the plugin
    /plugin install vgv-ai-flutter-plugin

README

VGV AI Flutter Plugin

Very Good Ventures Very Good Ventures

A Claude Code plugin that accelerates Flutter & Dart development with best-practices skills from Very Good Ventures.

Developed with ๐Ÿ’™ by Very Good Ventures ๐Ÿฆ„

Overview

VGV AI Flutter Plugin is a collection of contextual best-practices skills that Claude uses when helping you write Flutter and Dart code. Each skill provides opinionated, production-quality guidance covering architecture patterns, naming conventions, folder structures, code examples, testing strategies, and anti-patterns to avoid, so you get code that follows VGV standards out of the box.

Installation

One-line install from your terminal:

claude plugin marketplace add VeryGoodOpenSource/very-good-claude-code-marketplace && claude plugin install vgv-ai-flutter-plugin

Or inside an active Claude Code session, run these as two separate commands (the second only after the first completes):

  1. Add the marketplace:

    /plugin marketplace add VeryGoodOpenSource/very-good-claude-code-marketplace
    
  2. Install the plugin:

    /plugin install vgv-ai-flutter-plugin
    

For more details, see the Very Good Claude Marketplace.

Skills

SkillDescription
Create ProjectScaffold new Dart/Flutter projects from Very Good CLI templates โ€” flutter_app, dart_package, flutter_plugin, dart_cli, flame_game, and more
AnimationsFlutter built-in animations โ€” implicit vs explicit decision tree, Material 3 motion tokens (Durations, Easing), page transitions with GoRouter, Hero animations, staggered animations, and performance guidelines
AccessibilityWCAG 2.2 compliance with A/AA/AAA conformance level selection across iOS, Android, Web, macOS, Windows, and Linux โ€” semantics, screen reader support, touch targets, focus management, color contrast, text scaling, and motion sensitivity
TestingUnit, widget, and golden testing โ€” mocktail mocking, pumpApp helpers, test structure & naming, coverage patterns, and dart_test.yaml configuration
NavigationGoRouter routing โ€” @TypedGoRoute type-safe routes, deep linking, redirects, shell routes, and widget testing with MockGoRouter
Internationalizationi18n/l10n โ€” ARB files, context.l10n patterns, pluralization, RTL/LTR support with directional widgets, and backend localization strategies
Material ThemingMaterial 3 theming โ€” ColorScheme, TextTheme, component themes, spacing systems, light/dark mode support, and refactoring hardcoded or duplicated styling out of widget code
BlocState management with Bloc/Cubit โ€” sealed events & states, BlocProvider/BlocBuilder widgets, event transformers, and testing with blocTest() & mocktail
Layered ArchitectureVGV layered architecture โ€” four-layer package structure (Data, Repository, Business Logic, Presentation), dependency rules, data flow, and bootstrap wiring
SecurityFlutter-specific static security review โ€” secrets management, flutter_secure_storage, certificate pinning, Random.secure(), formz validation, dependency vulnerability scanning with osv-scanner, and OWASP Mobile Top 10 guidance
UI PackageFlutter UI package creation โ€” custom widget libraries with ThemeExtension-based theming, design tokens, barrel file exports, widget tests, Widgetbook catalog, and consistent API conventions
License ComplianceDependency license auditing โ€” categorizes licenses (permissive, weak/strong copyleft, unknown), flags non-compliant or missing licenses, and produces a structured compliance report using Very Good CLI
Dart/Flutter SDK UpgradeBump Dart and Flutter SDK constraints across packages โ€” CI workflow versions, pubspec.yaml environment constraints, and PR preparation for SDK upgrades
Very Good Analysis UpgradeUpgrade the very_good_analysis lint package across Dart/Flutter projects โ€” version bump in pubspec.yaml, minimal lint fixes for new rules, and PR preparation
Green GateAutonomous verify-fix-rerun loop that drives a package to green across four quality gates โ€” analyze, format, test, and coverage โ€” exiting only when a final iteration proves all four pass with observed numbers (default 100% coverage, overridable). Also answers how the gates are configured โ€” tool per gate, arguments, order, coverage target and exclusions

Agents

This plugin ships subagents that Claude Code can dispatch as isolated, specialized reviewers. Unlike skills, agents are not invoked as slash commands โ€” Claude dispatches them automatically, or you can ask Claude to run one by name (e.g. "review my changes with the flutter-reviewer agent").

AgentDescription
Flutter ReviewerRead-only reviewer of changed Dart code against the preloaded bloc, testing, static-security, and accessibility standards โ€” emits a location | problem | fix | standard findings table. Never edits files; Bash is hook-restricted to git diff/git status

Hooks

This plugin includes SessionStart, PreToolUse, and PostToolUse hooks that validate the Very Good CLI, guard against CLI bypass, and automatically run Dart analysis and formatting on .dart files.

HookTriggerBehavior
Warn Missing MCP (warn-missing-mcp.sh)SessionStartWarns if the Very Good CLI is missing or older than 1.3.0; non-blocking
Check VGV CLI (check-vgv-cli.sh)PreToolUse (mcp__.*very-good-cli__.*)Auto-approves Very Good CLI MCP tool calls in every run mode via a PreToolUse allow decision, so they never dead-end when the tool isn't on permissions.allow (including under skipAutoPermissionPrompt); denies with an install/upgrade message if the CLI is missing or < 1.3.0
Block CLI Workarounds (block-cli-workarounds.sh)PreToolUse (Bash)Blocks direct CLI bypass of Very Good CLI commands through the Bash tool; exits 2 on failure (blocking)
Allow Read-only Git (allow-readonly-git.sh)PreToolUse (Bash, flutter-reviewer agent only)Restricts the flutter-reviewer agent's Bash to git diff/git status; exits 2 on anything else (blocking). Scoped via the agent's frontmatter, not hooks.json
Analyze (analyze.sh)PostToolUse (Edit/Write)Runs dart analyze on the modified .dart file; exits 2 on failure (blocking โ€” Claude must fix issues before continuing)
Format (format.sh)PostToolUse (Edit/Write)Runs dart format on the modified .dart file; always exits 0 (non-blocking โ€” formatting is applied silently)

Prerequisites

  • Dart SDK โ€” must be available on your PATH
  • jq โ€” used to parse the hook payload; hooks are skipped gracefully if jq is not installed

Evals

Skill evals ask whether Claude routes to a skill and follows it. promptfoo sends each case's prompt through the Claude Agent SDK twice โ€” once with this plugin loaded, once sealed with nothing loaded โ€” so a grader that passes in both columns is measuring the model rather than the skill. They authenticate through your local Claude Code session, so they need no API key.

npx promptfoo@latest eval -c evals/promptfooconfig.yaml

Run them locally before opening a PR that changes a skill. CI also runs them after a merge to main, scoped to the skills that changed, as an advisory signal rather than a gate โ€” see evals/README.md.

See evals/README.md for the case format, the assertion reference, prerequisites, and what these evals deliberately do not cover.

Usage

Skills activate automatically when Claude detects relevant context in your conversation. Simply ask Claude to help with a Flutter or Dart task, and the appropriate skill's guidance will be applied.

For example:

You: Create a new Bloc for user authentication with login and logout events.

Claude: (applies the Bloc skill โ€” uses sealed classes for events and states, follows the Page/View separation pattern, generates blocTest() tests with mocktail mocks, and follows VGV naming conventions)

You can also invoke skills directly as slash commands:

/create-project
/animations
/accessibility
/bloc
/internationalization
/layered-architecture
/material-theming
/navigation
/static-security
/testing
/ui-package
/license-compliance
/dart-flutter-sdk-upgrade
/very-good-analysis-upgrade
/green-gate

What Each Skill Provides

Every skill includes:

  • Core Standards โ€” recommended conventions (e.g., mocktail over mockito, sealed classes for Bloc events)
  • Architecture patterns โ€” folder structures and layered architecture guidance
  • Code examples โ€” ready-to-adapt snippets following best practices
  • Testing strategies โ€” unit, widget, and integration testing patterns
  • Common workflows โ€” step-by-step guides for tasks like "adding a new feature" or "adding a new route"
  • Anti-patterns โ€” what to avoid and why

MCP Integration

This plugin includes a .mcp.json configuration that connects Claude Code to two MCP servers โ€” the Dart and Flutter MCP server (dart mcp-server) and the Very Good CLI MCP server (very_good mcp). This gives Claude the ability to execute Dart, Flutter, and Very Good CLI actions directly, complementing the skills which provide architectural guidance and best practices.

Dart and Flutter MCP server (dart)

The Dart and Flutter MCP server ships with the Dart SDK and exposes core Dart/Flutter development actions to Claude.

Available MCP tools:

ToolWhat it does
Error analysis & fixingAnalyze the project for static errors and apply fixes
Symbol resolutionResolve symbols to elements and fetch documentation and signature information
App introspectionIntrospect and interact with a running Dart or Flutter application
Package searchSearch pub.dev for packages that fit a given use case
Dependency managementAdd, remove, and update dependencies in pubspec.yaml files
Package source explorationResolve package: URIs and search dependency sources
Code formatting (dart_format)Format code using the same formatter and config as dart format

The server's cli feature category โ€” dart_format, dart_fix, create_project, run_tests, and list_devices โ€” is off by default, so a bare dart mcp-server advertises 13 tools with no formatter. .mcp.json therefore starts it as dart mcp-server --enable dart_format. The green-gate skill's format gate calls that tool; drop the flag and the gate has nothing to call. Test execution is deliberately left disabled โ€” the test tool from the Very Good CLI MCP server is used instead.

Prerequisites:

  • Dart SDK installed with dart on your PATH (the MCP server is provided by dart mcp-server)

Very Good CLI MCP server (very-good-cli)

The Very Good CLI MCP server exposes Very Good CLI commands to Claude.

Available MCP tools:

ToolWhat it does
createScaffold projects from templates (flutter_app, dart_cli, dart_package, flutter_package, flutter_plugin, flame_game, docs_site)
testRun tests with coverage enforcement
packages_check_licensesAudit dependency licenses against an allowed list
packages_getGet dependencies for a single package or recursively across a monorepo

Prerequisites:

  • Very Good CLI v1.3.0+ installed: dart pub global activate very_good_cli
  • very_good must be on your PATH

How it works:

The .mcp.json file at the project root registers the dart and very-good-cli MCP servers using stdio transport. When Claude Code detects this configuration, it connects to both servers and gains access to the tools above. The skills continue to provide knowledge and best practices while the MCP tools handle execution.

Files in the repo

Repository payloadโ€ข19 top-level entries
  • .claude-plugin
  • .github
  • agents
  • config
  • evals
  • hooks
  • skills
  • .gitignore
  • .mcp.json
  • .release-please-config.json
  • .release-please-manifest.json
  • AGENTS.md
  • CHANGELOG.md
  • CLAUDE.md
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • LICENSE
  • README.md
  • SECURITY.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More plugins

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

138k
1 add

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

82k
code-yeongyu/
oh-my-openagent

OmO: Just type "mass ulw" keyword with your prompt. Now you are the master of graph engineering.

69k

Persistent Context Across Sessions for Every Agent โ€“ Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

94k

Opinionated Oxlint rules for rejecting low-evidence TypeScript and JavaScript patterns

4.3k