/vgv-ai-flutter-plugin:dart-flutter-sdk-upgrade [flutter-version]from VGV AI Flutter Plugin
Bumps Dart and Flutter SDK constraints across packages in VGV repositories, covering pubspec.yaml environment blocks, CI workflow versions, and SDK upgrade PR preparation.
Ships in VGV AI Flutter Plugin. 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.
One PR per project. Only CI workflow and pubspec.yaml changes — no logic, no dependency
version bumps, no test changes.
Apply these standards to all SDK upgrade work:
sdk: constraint takes the Dart number, never the Flutter one. Look the pairing up in the release archive at https://docs.flutter.dev/install/archiveMAJOR.MINOR.x — no caret, .x wildcard resolves to latest patchMAJOR.MINOR.PATCH, no caret, no wildcard^MAJOR.MINOR.PATCH with the specific patch versiondart_sdk in dart_package.yml, not flutter_version in flutter_package.yml, and the environment block gets sdk: with no flutter: line beside itwith: block from the CI workflows section below and name the file it belongs in rather than asking for the file firstpub get and analyze — don't silently resolve conflictsFlutter bundles a specific Dart release, and the two version numbers are unrelated. A bump to
Flutter 3.35.5 does not make the Dart constraint ^3.35.5, and the Dart number cannot be
derived from the Flutter number by any rule. Every SDK upgrade therefore starts with two
versions, not one: the Flutter release being targeted, and the Dart release it ships.
How to find the Dart version:
The Flutter target comes from $ARGUMENTS when the user supplied one. If $ARGUMENTS is
empty or still shows the literal text $ARGUMENTS (the host did not substitute it), take the
latest Flutter stable from that same page. For pure Dart packages, no mapping is involved: the
Dart version is whatever $ARGUMENTS specifies or the latest Dart stable.
When the archive is out of reach, which is the common case in a session with no network
access, do not fill the gap from memory. A recalled pairing is wrong often enough to break
pub get, and it is wrong silently — the constraint looks plausible in the diff. Say the Dart
version has to come off the archive, name the page as the source, and ask the user to confirm
it. If the user already supplied both numbers, use them as given and say which is which.
State both resolved versions and get confirmation before editing any file.
.github/workflows/VGV packages use VeryGoodOpenSource/very_good_workflows reusable workflows. Leave the
@v1 tag untouched. Flutter packages use MAJOR.MINOR.x — no caret, literal x as the
patch wildcard so CI resolves to the latest patch automatically. Dart packages pin the exact
patch version. When bumping versions, update MAJOR and/or MINOR as appropriate
(e.g., 3.47.x → 3.50.x or 4.0.x):
Flutter package:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_version: "3.50.x" # ← MAJOR.MINOR.x, resolves to latest patch
Pure Dart package — note the key is dart_sdk, not flutter_version. Use the Dart
version, not the Flutter version:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
dart_sdk: "3.14.0" # ← exact Dart version (not Flutter version)
If a file uses flutter_channel: stable instead of a pinned version,
pin the version — VGV always pins Flutter versions in CI workflows.
A VGV package's CI is one job calling one of the two reusable workflows above, so the block that
needs changing is fully determined by the package type. When the workflow lives in another
checkout, or the user described it instead of pasting it, write the with: block from the
shapes above rather than stalling on the file. Say which workflow and which key you are
targeting — dart_package.yml with dart_sdk for a pure Dart package, flutter_package.yml
with flutter_version for a Flutter one — and present it as the block to merge into the
existing job.
Two things are not invented that way. Do not fabricate the surrounding name:, on: or jobs:
keys when you have not seen them, and do not guess a version number. Show the with: block and
name the file it belongs in.
# Pure Dart package, target Dart 3.14.0 — the block to merge into your existing job
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
dart_sdk: "3.14.0"
pubspec.yaml environment constraintsFormat is ^MAJOR.MINOR.PATCH (caret, exact patch). Unlike CI, pubspec pins a specific
patch version — the one the user specifies or the current stable at the time of the bump.
Flutter package (has flutter: under dependencies):
environment:
sdk: ^<dart-version> # ← the Dart version the target Flutter release ships
flutter: ^<flutter-version> # ← the target Flutter release itself
The two placeholders are deliberate. Filling them in requires the archive lookup from step 0,
and the numbers are never the same: for a bump to Flutter 3.35.5 the flutter: constraint is
^3.35.5 and the sdk: constraint is whatever Dart version the archive lists beside 3.35.5.
Writing the Flutter number into sdk: is the single most common error in this change.
Pure Dart package (no Flutter SDK dependency):
environment:
sdk: ^3.14.0 # ← Dart version only
# no flutter: line
In a monorepo, update each package's pubspec.yaml individually. The shared CI workflow
only needs updating once.
Run from each package directory. Use Dart/Flutter MCP tools if available; otherwise Bash.
flutter pub get # or: dart pub get (for pure Dart packages)
flutter analyze # or: dart analyze
If pub get fails with dependency conflicts, report them — don't silently resolve by
upgrading packages. Name the blocking package, its version, and the SDK constraint that
clashes with the new one, then hand the decision back to the user: raising that
dependency is its own PR, not part of this one. If analyze surfaces new errors
introduced by the SDK bump, report them rather than fixing them in this PR.
Crossing Flutter 3.50: package:flutter/material.dart and package:flutter/cupertino.dart
are deprecated in favor of package:material_ui and package:cupertino_ui. Both libraries
carry @Deprecated, so analyze reports deprecated_member_use on every Material and
Cupertino import. GlobalMaterialLocalizations and GlobalCupertinoLocalizations from
flutter_localizations are deprecated too. That is expected. Report it and name the
follow-up PR: dart fix --apply --code=migrate_design_widgets, which updates the imports, then
flutter pub add material_ui / flutter pub add cupertino_ui when the fix does not add them,
then a manual switch of localizationsDelegates to GlobalMaterialLocalizations.delegates
(the breaking-change guide shows it as a manual step), then a second dart fix --apply for the
remaining fixes such as import sorting. Do not run any of them in the SDK bump PR.
Crossing Dart 3.13: final and var on ordinary parameters become errors, and dart format
output changes for code at language version 3.13 or higher. Report the errors and the format
diff as the follow-up PR. Do not fix or reformat in the SDK bump PR.
Do not use dart migrate --apply for the bump. It applies code fixes along with the
constraint change. Edit the constraints by hand. dart migrate --dry-run is fine for listing
the fixes the follow-up PR needs.
Crossing Flutter 3.44 to 3.50 also raises Android, iOS and macOS build minimums, and the Flutter tool edits some project files on its own. See references/version-conflicts.md.
See references/version-conflicts.md for reading version solving output, the three shapes a conflict takes, tracing a transitive blocker, and the report format to hand back.
Users routinely ask for the SDK bump plus extras in one breath — "while you're in the pubspec, bump this package too", "and fix the new analyzer warnings so CI is green". Refuse the extras outright. A caveat attached to the forbidden edit is not a refusal: writing the new dependency version into the pubspec while noting that it doesn't belong there still ships the mixed PR.
So when the request is "bump to the new Flutter, raise the http constraint, and fix the two
analyzer warnings", the pubspec you return changes the environment block and nothing else:
environment:
sdk: ^<dart-version> # ← changed, Dart version from the archive
flutter: ^<flutter-version> # ← changed, the target Flutter release
dependencies:
flutter:
sdk: flutter
http: ^1.2.0 # ← left alone, dependency bumps are a separate PR
Then say plainly what you did not do and where it goes instead:
Offer the follow-up as a separate PR. Do not offer to fold it into this one.
Before committing, confirm the diff contains only:
.github/workflows/*.ymlpubspec.yaml (one or more)git diff HEAD --name-only
Suggested commit/PR message:
chore: bump Flutter to <flutter-version> / Dart to <dart-version>
- Update flutter_version in .github/workflows/ to MAJOR.MINOR.x (CI resolves latest patch)
- Update dart_sdk in .github/workflows/ to the exact Dart patch
- Update environment sdk/flutter constraints in pubspec.yaml
No logic or code changes.
Both numbers appear in the subject line because a reviewer scanning history needs to see which Dart release came with the bump.
What SKILL.md sets; muted values are Claude Code's defaults
mediumThree short reads, in order
flutter-upgrade, dart-upgrade, sdk-constraints, pubspec, ci-workflow
15 skills in this plugin
/accessibilityAudits or remediates Flutter widgets against WCAG 2.2 conformance levels A, AA, or AAA across iOS, Android, Web, macOS, Windows, and Linux, covering Semantics labels and screen reader output under VoiceOver and TalkBack, touch target sizes, dragging alternatives, focus order and keyboard navigation, color contrast, text scaling, animation gating on disableAnimations, and form autofillHints, including the test suite that locks every fix in. Use when building, auditing, or reviewing Flutter widgets for accessibility on one or several of those platforms.
/animationsBest practices for Flutter animations using the built-in animation framework, covering implicit animations, explicit `AnimationController` animations, page transitions, and Material 3 motion tokens. Use when creating, modifying, or reviewing animations, transitions, motion, or animated widgets, and also for custom route transitions built with `CustomTransitionPage`, a `buildPage` override on a `GoRouteData` subclass, or a `Hero` transition, since motion between routes is animation work even when the surrounding code is `go_router`.
/blocBest practices for Bloc state management in Flutter/Dart, covering Cubit versus Bloc, event and state naming, sealed classes with Equatable, the Page/View split with BlocProvider, BlocBuilder, BlocListener, and BlocSelector. Use when writing, modifying, or reviewing code that uses package:bloc, package:flutter_bloc, or package:bloc_test. Also use for any test of a class that extends Bloc or Cubit, including "write the unit tests for this bloc", "test my cubit", "add tests for LoginBloc", mocking a repository a bloc depends on, and asserting the states an event emits. Bloc and Cubit tests must use blocTest() from package:bloc_test with package:mocktail, so prefer this over the testing skill whenever the class under test is a Bloc or Cubit. Also use when a request pushes against these rules, such as injecting one bloc into another to read its state, calling a repository from a widget or build method, or keeping a Cubit for a feature that needs an event transformer such as debounce.
/create-projectScaffold a new Dart or Flutter project from a Very Good CLI template, covering the flutter_app, dart_package, flutter_package, flutter_plugin, dart_cli, flame_game, and docs_site templates, inferring the right one from what the user wants to build and then installing dependencies. Use when the user says "create a new project", "start a new flutter app", "scaffold a package", "create a new package", "initialize a dart cli", "new flame game", or "generate a plugin". Use it for bare, vague, or under-specified scaffolding requests too — "create a new package for me", "make me a new app", "I need a new project", "set one up" — including ones that name no template, no project name, and no organization, or that only hint at what is being built. Missing or ambiguous details are a reason to use this skill, not a reason to skip it: it asks the clarifying questions and picks the template.
/green-gateDrives a Dart or Flutter package fully green through a verify-fix-rerun loop across four gates: analyze, format, test, coverage. It owns gate configuration, so plan-only questions belong here: which tool and arguments run each gate, in what order, the coverage target, and what leaves the coverage denominator. Use it for "green gate", "make it green", "get CI green", fixing all analyze and test failures, cleaning a package up before a PR, bringing coverage to 100, looping until everything passes, or confirming a package is green. Use it too when the user wants a gate weakened or skipped: lowering the coverage threshold, coverage ignore comments on untested or generated code, skipping analyze and format because they passed earlier, calling a 94% package done, or retrying while the same failures repeat. Prefer it over the single-gate testing or analysis skills.
/internationalizationBest practices for internationalization (i18n) and localization (l10n) in Flutter, using the built-in `flutter_localizations` and `intl` setup with ARB files as the single source of truth. Use when adding, modifying, or reviewing ARB translations, locale setup (`l10n.yaml`, `generate: true` in `pubspec.yaml`, `flutter gen-l10n`, `localizationsDelegates`, `supportedLocales`), BuildContext l10n extensions such as `context.l10n`, hardcoded user-facing strings that should be localized, localized strings passed into shared or reusable widgets, or RTL/directional layout support with `EdgeInsetsDirectional`. Also use when asked to add or configure any third-party i18n or translation package (easy_localization, slang, flutter_i18n, or intl_utils), and when shipping or fixing a screen for a right-to-left language such as Arabic, Hebrew, Farsi, or Urdu, including mirroring padding, alignment, icons, or images, and replacing `EdgeInsets` left/right.
vgv-ai-flutter-plugin@very-good-claude-code-marketplace is listed by verygoodopensource/very-good-claude-code-marketplace — review the source before installing
npx claudepluginhub verygoodopensource/very-good-claude-code-marketplace --plugin vgv-ai-flutter-pluginOther plugins' skills for the same job