Back to Skills

dart-resolve-package-conflicts

Workflow for fixing package version conflicts. Use this when `pub get` fails due to incompatible package versions.

256stars18forksUpdated 5/21/2026

Security Assessment

Safe(100/100)
Security Score100/100

About dart-resolve-package-conflicts

The `dart-resolve-package-conflicts` skill provides a structured workflow for managing and resolving package version conflicts in Dart projects. It addresses the common problem of `pub get` failures caused by incompatible package versions. By enforcing a single-version rule across a project's dependencies, this skill ensures that all packages and their transitive dependencies are compatible, preventing runtime type mismatches and improving build stability. Users struggling with dependency resolution issues can leverage this skill to maintain consistent and reproducible builds without resorting to uncontrolled upgrades or guesswork.

FAQ

When should I use this skill?

Use this skill whenever `pub get` fails due to version conflicts or when you want to audit and upgrade your Dart project's dependencies safely.

Does this skill work with all Dart packages?

Yes, it works with any Dart package managed via `pub`, provided the dependencies are listed in `pubspec.yaml` and resolved in `pubspec.lock`.

Can I delete `pubspec.lock` to resolve conflicts?

No. The recommended approach is to manipulate the lockfile selectively for specific conflicting packages, rather than deleting it entirely, to avoid uncontrolled upgrades.

Does this skill handle major version upgrades?

Yes. It provides guidance for updating to both 'Upgradable' versions and 'Resolvable' versions, including manual edits to version constraints when necessary.

Is this skill suitable for CI/CD pipelines?

Absolutely. It includes guidance on enforcing lockfiles in CI/CD to ensure reproducible builds using the exact versions tested locally.

Install dart-resolve-package-conflicts

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill