dart-resolve-package-conflicts

Audit Dart dependency constraints and modify pubspec.lock to resolve version conflicts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill resolves complex dependency version conflicts in Dart projects, preventing build failures and runtime mismatches caused by incompatible package versions.

Core Features & Use Cases

  • Dependency Auditing: Provides a structured workflow to analyze outdated or conflicting packages using Dart CLI tools.
  • Surgical Lockfile Management: Offers safe, manual intervention techniques to fix specific package conflicts without triggering uncontrolled global upgrades.
  • Use Case: When a project fails to build due to a retracted package or a version lock, use this workflow to surgically remove the problematic entry from the lockfile and restore a stable dependency graph.

Quick Start

Use the dart-resolve-package-conflicts skill to audit my current project dependencies and identify packages that require manual constraint updates.

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 causing build failures?

To resolve Dart package version conflicts, you need to audit dependency constraints and perform surgical modifications to the pubspec.lock file to restore a stable dependency graph. This workflow targets incompatible package versions directly without triggering uncontrolled global upgrades.

What is the best way to fix a retracted package version lock in Flutter?

Fixing a retracted package version lock involves surgically removing the problematic entry from the pubspec.lock file. This targeted manual intervention prevents runtime mismatches and resolves dependency resolution errors while maintaining the rest of your environment.

Can I use this dependency resolution workflow for standard Dart environments?

Yes, you can use this workflow for standard Dart environments as well as Flutter projects. It applies standard Dart SDK tools to analyze dependency graphs and validate version compatibility whenever you experience build failures or dependency resolution errors.

How do I audit outdated Dart dependencies before updating the lockfile?

To audit outdated Dart dependencies, you follow a structured workflow using Dart CLI tools to analyze your current project dependencies. This process identifies packages that require manual constraint updates and validates version compatibility across your dependency graph.

Why does surgically editing the pubspec.lock file prevent uncontrolled upgrades?

Surgically editing the pubspec.lock file prevents uncontrolled upgrades by targeting specific package conflicts directly. Instead of refreshing the entire dependency tree, this safe manual intervention technique fixes version locks and retracted packages while preserving your existing stable constraints.