Upgrades very_good_analysis lint package in Dart/Flutter projects: bumps pubspec.yaml version, fixes new lint warnings from flutter/dart analyze, creates focused PR.
npx claudepluginhub verygoodopensource/very_good_claude_code_marketplace --plugin vgv-ai-flutter-pluginThis skill is limited to using the following tools:
This skill guides the full upgrade of `very_good_analysis` in a Dart or Flutter project.
Guides upgrading Dart and Flutter SDK versions in VGV repositories: resolves bundled Dart versions, updates pubspec.yaml with exact patches (^MAJOR.MINOR.PATCH), sets CI workflows to ^MAJOR.MINOR.x.
Analyzes dependencies for upgrade planning and migration. Identifies deprecated APIs, breaking changes, usage summaries, third-party compatibility, and migration checklists with effort estimates.
Plans safe incremental upgrades of project dependencies with risk assessment priority matrix migration guides test strategies and rollback plans. Use for dependency update workflows.
Share bugs, ideas, or general feedback.
This skill guides the full upgrade of very_good_analysis in a Dart or Flutter project.
The goal is a clean, focused PR: nothing more than the version bump in pubspec.yaml plus
the minimal code changes needed to satisfy any new lint rules introduced in that version.
These standards apply to every very_good_analysis upgrade.
flutter analyze or dart analyzeConfirm two things before proceeding:
Target version — if the user didn't specify a version, fetch the latest from the pub.dev API and use that. Don't ask — just look it up and proceed:
curl -s https://pub.dev/api/packages/very_good_analysis | jq -r '.latest.version'
Tell the user which version you're upgrading to before making any changes.
Project scope — is this a single package or a monorepo? In a monorepo, each sub-package
with its own pubspec.yaml needs its own bump (and potentially its own PR).
Locate the pubspec.yaml file(s) for the project. Update the very_good_analysis entry under
dev_dependencies:
dev_dependencies:
very_good_analysis: ^x.y.z # replace x.y.z with the target version
Keep the caret (^) prefix — that's the VGV convention. Don't change anything else in the file.
After editing, run:
flutter pub get
(For a pure Dart package without Flutter, use dart pub get instead.)
Use the Dart/Flutter MCP server if it is connected and exposes pub commands; otherwise run via Bash.
flutter analyze
Or for a pure Dart package:
dart analyze
Capture the full output. You're looking for new warnings or errors introduced by the version bump — lints that weren't flagged before. Ignore pre-existing issues unrelated to the bump (don't fix things that were already broken; that belongs in a separate PR).
Work through the warnings one by one. Keep fixes minimal and lint-compliance-only:
flutter analyze flagsAfter fixing, re-run flutter analyze to confirm zero warnings remain.
Run the full analyze pass one more time to make sure nothing was missed:
flutter analyze
Expected output: No issues found! (or only pre-existing issues that you haven't touched).
If new warnings appear that weren't there after Step 2, address them now. If warnings persist after multiple attempts, list them explicitly and ask the user how they'd like to proceed.
Stage only the changed files:
git add pubspec.yaml pubspec.lock # always include these
# plus any .dart files you edited for lint fixes
Commit with a clear message following the project's conventions. A good default:
chore: upgrade very_good_analysis to x.y.z
Bump very_good_analysis from <old> to <new> and resolve
lint warnings introduced by newly enabled rules.
Then push and open a PR. The PR should contain nothing else — no feature work, no unrelated refactors, no extra cleanup. Reviewers should be able to see at a glance that this is purely a lint compliance update.
If the project uses a PR template, fill it in. Mention specifically which rules were newly enabled if any warnings required code changes.
Monorepos: Each package that depends on very_good_analysis needs its own pubspec.yaml
bump. You can often run flutter analyze from the repo root to surface all warnings at once,
but pub get must be run per-package.
analysis_options.yaml: very_good_analysis ships its own analysis_options.yaml that is
included by the project's own options file. You generally don't need to touch the project's
analysis_options.yaml — the bump in pubspec.yaml is sufficient to pull in the new rules.
Breaking rule changes: Occasionally a new version disables a rule that was previously enabled, or changes its severity. That might cause previously-flagged issues to disappear, which is fine — don't re-introduce them.
flutter pub get fails: If dependency resolution fails after the bump (version conflicts), investigate the conflict before proceeding. Don't force-upgrade other dependencies just to make the bump work — surface the conflict to the user.
See reference.md for a quick-reference table of common lint rules introduced by very_good_analysis upgrades and their typical fixes (prefer_const_constructors, use_super_parameters, unnecessary_late, avoid_dynamic_calls, require_trailing_commas, unnecessary_null_checks).