dart-resolve-package-conflicts

Resolve Dart dependency version conflicts in pubspec.yaml and pubspec.lock files.

2.8k|166|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/flutter/agent-plugins --skill dart-resolve-package-conflicts-flutter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dart-resolve-package-conflicts
Source: https://github.com/flutter/agent-plugins/tree/main/skills/dart-resolve-package-conflicts
Command: npx skills add https://github.com/flutter/agent-plugins --skill dart-resolve-package-conflicts-flutter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill resolves complex Dart dependency version conflicts and retracted package issues without resorting to destructive actions like deleting the entire lockfile.

Core Features & Use Cases

  • Surgical Lockfile Manipulation: Safely remove specific conflicting packages from pubspec.lock to trigger targeted re-resolution.
  • Dependency Auditing: Provides a structured workflow to identify outdated, resolvable, or retracted packages using dart pub commands.
  • Constraint Management: Guides the user on when to tighten dev dependencies or update version constraints in pubspec.yaml to ensure stable builds.

Quick Start

Use the dart-resolve-package-conflicts skill to identify and fix the version conflict currently blocking the pub get command in this project.

Frequently Asked Questions about dart-resolve-package-conflicts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix Dart dependency version conflicts without deleting the pubspec.lock file?

To fix Dart dependency version conflicts safely, you can surgically remove specific conflicting packages from pubspec.lock to trigger targeted re-resolution, avoiding destructive actions like deleting the entire lockfile.

What is the best way to audit outdated or retracted Dart packages in a Flutter project?

The best way to audit outdated or retracted Dart packages is using a structured workflow with dart pub commands to evaluate the dependency graph and identify resolvable packages within your project.

Why does my Flutter pub get command fail due to dependency resolution issues?

Your Flutter pub get command fails because dependency version conflicts and retracted packages create resolution barriers, requiring you to manage package constraints or surgically adjust the lockfile.

How do I update version constraints in pubspec.yaml to ensure stable Flutter builds?

To ensure stable Flutter builds, update version constraints in pubspec.yaml by tightening dev dependencies and adjusting package constraints based on a structured dart pub dependency audit.

Does resolving Dart dependency conflicts require the Dart SDK?

Yes, resolving Dart dependency conflicts requires the Dart SDK to execute dart pub commands and perform the necessary dependency graph analysis.