dart-resolve-package-conflicts
The dart-resolve-package-conflicts skill provides a structured workflow for auditing, upgrading, and resolving dependency conflicts in Dart projects. It guides users through interpreting pub output, managing version constraints, and performing surgical updates to lockfiles.
Is dart-resolve-package-conflicts safe to install?
Review before installing: our audit of dart-resolve-package-conflicts's source files found 9 shell commands, 0 external URLs, file reads and writes (medium risk). Every command and URL listed appears verbatim in the skill's source. The skill requires reading and writing to pubspec.yaml and pubspec.lock files and executing Dart CLI commands.
How we audit skills: our security review methodology.
Who is this skill for?
Dart developers managing project dependencies and resolving version conflicts.
What can you do with it?
- Auditing project dependencies for outdated packages.
- Upgrading dependencies to resolvable versions.
- Resolving version conflicts by surgically modifying the pubspec.lock file.
- Tightening dependency constraints in pubspec.yaml.
How good is this skill?
Quality score: 5/10. The skill provides clear, actionable steps for common Dart dependency issues and follows best practices for lockfile management.
What does the skill file contain?
# Managing Dart Dependencies ## Contents - [Core Concepts](#core-concepts) - [Version Constraints](#version-constraints) - [Workflow: Auditing Dependencies](#workflow-auditing-dependencies) - [Workflow: Upgrading Dependencies](#workflow-upgrading-dependencies) - [Workflow: Resolving Version Conflicts](#workflow-resolving-version-conflicts) - [Examples](#examples) ## Core Concepts Dart enforces a strict single-version rule for dependencies: a project and all its transitive dependencies must resolve to a single, shared version of any given package. This prevents runtime type mismatches but in...
Frequently asked questions
Should I delete my pubspec.lock file to fix conflicts?
No. The skill explicitly advises against deleting the entire lockfile, as this causes uncontrolled upgrades across the dependency graph.
How do I update dependencies without changing pubspec.yaml?
Run the dart pub upgrade command to update packages to the latest version allowed by existing constraints.
What is the purpose of the --tighten flag?
The --tighten flag automatically updates the lower bounds in pubspec.yaml to match the newly resolved versions.
Related skills
flutter-fix-layout-issues
21.1KFlutter developers encountering layout exceptions during UI development
This skill provides a diagnostic and resolution workflow for common Flutter layout errors, including RenderFlex overflows and unbounded constraint violations.
flutter-add-widget-test
21.1KFlutter developers writing component-level tests to validate UI behavior and state changes
This skill provides a structured workflow and code patterns for implementing Flutter widget tests using the WidgetTester API to verify UI rendering and user interactions.
flutter-animations
14.4KFlutter developers who need to implement or troubleshoot motion effects within their applications
The flutter-animations skill provides guidance and code patterns for implementing, debugging, and refactoring Flutter animations. It assists with implicit animations, explicit controllers, Hero transitions, staggered sequences, and physics-based motion while enforcing accessibility and performance standards.
flutter-expert
12.3KMobile engineers building high-performance cross-platform applications with Flutter
The flutter-expert skill provides guidance for building cross-platform applications using Flutter 3 and Dart. It assists with widget development, state management via Riverpod or Bloc, GoRouter navigation, and performance optimization.