dart-resolve-package-conflicts

Resolve Dart package version conflicts and modify pubspec.lock files.

Updated Nov 23, 2025
One-click install
npx skills add https://github.com/manuelbrandner85/Weltenbibliothekapp --skill dart-resolve-package-conflicts-manuelbrandner85
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dart-resolve-package-conflicts
Source: https://github.com/manuelbrandner85/Weltenbibliothekapp/tree/main/.agents/skills/dart-resolve-package-conflicts
Command: npx skills add https://github.com/manuelbrandner85/Weltenbibliothekapp --skill dart-resolve-package-conflicts-manuelbrandner85

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the common frustration of Dart dependency resolution failures, preventing broken builds caused by incompatible package versions or retracted releases.

Core Features & Use Cases

  • Dependency Auditing: Provides a structured workflow to identify outdated or resolvable packages using Dart's native tooling.
  • Surgical Lockfile Management: Offers a safe, manual method to resolve conflicts without the risks associated with deleting the entire lockfile.
  • Use Case: When a project fails to build due to a retracted package version, this Skill guides you through the process of isolating and updating only the problematic dependency to restore stability.

Quick Start

Use the dart-resolve-package-conflicts skill to audit your current dependencies and resolve any version mismatches found in your pubspec.lock file.

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 resolve Dart package version conflicts in my Flutter project?

To resolve Dart package version conflicts, you need to audit your dependencies and surgically modify the pubspec.lock file to isolate incompatible versions. This approach restores build stability without deleting the entire lockfile.

Why does my Flutter build fail due to a retracted package version?

Your Flutter build fails because dependency graph inconsistencies arise when a package version is retracted or incompatible. You must identify the problematic dependency and update it within the pubspec.lock file to ensure reproducible builds.

What is the safest way to fix pubspec.lock dependency mismatches?

The safest way to fix pubspec.lock dependency mismatches is surgical lockfile management, which isolates and updates only the problematic dependency. This avoids the risks of deleting the entire lockfile and validates integrity using pub.

Do I need the Dart SDK to audit outdated packages in my project?

Yes, you need the standard Dart SDK tools including pub, analyze, and test to audit outdated packages and validate dependency integrity. These native tools facilitate the structured workflow to identify resolvable packages.

Can I update a single problematic dependency without deleting the pubspec.lock file?

Yes, you can update a single problematic dependency through surgical lockfile management. This isolates the retracted package version and modifies the pubspec.lock file manually, ensuring reproducible builds without regenerating the entire dependency graph.