
Description
dart-resolve-package-conflicts is an agent skill from the Dart team's skills collection, listed on skills.sh. It is a workflow for fixing package version conflicts, and it applies when pub get fails because the packages in a project require incompatible versions. The skill explains Dart's dependency model: a project and all of its transitive dependencies must resolve to one shared version of each package, which prevents runtime type mismatches but can lead to what the skill calls version lock, where one package holds back the others. To reduce version lock, Dart uses version constraints in pubspec.yaml rather than pinned versions, while pubspec.lock records the exact resolved versions for reproducible builds. The skill then sets out three workflows: auditing dependencies, upgrading dependencies, and resolving version conflicts, with examples for each. It guides the agent to read the constraints that cause the failure before changing anything, so that the fix is deliberate. A skill is a SKILL.md file of instructions, sometimes with scripts and reference notes, that an AI agent loads only when a task calls for it. The skill is listed as free on skills.sh.…
Highlights
- Fixes pub get failures from version conflicts
- Explains version lock and constraints
- Workflows for auditing and upgrading packages
- Uses pubspec.lock for reproducible builds
Ratings & Reviews
No ratings yet
Be the first to rate dart-resolve-package-conflicts.
People also visit

dart-migrate-to-checks-package
Replace the usage of `expect` and similar functions from `package:matcher`
dart-resolve-package-conflicts FAQ
What does the dart-resolve-package-conflicts skill do?
It helps an AI agent fix package version conflicts in a Dart or Flutter project, for example when pub get fails.
How do I install it?
Run: npx skills add https://github.com/dart-lang/skills --skill dart-resolve-package-conflicts
Is it free?
Yes. The skill is listed as free on skills.sh.
What is version lock?
The skill's term for the situation where Dart's single-version rule means one package's constraints hold back the others.
What does pubspec.lock do?
It records the exact resolved versions so that builds are reproducible, according to the skill.
What are the best dart-resolve-package-conflicts alternatives?
Popular alternatives to dart-resolve-package-conflicts include dart-fix-runtime-errors, dependencies-audit and dart-run-static-analysis. See all dart-resolve-package-conflicts alternatives















