Agent skill · Audited from source
dart-resolve-package-conflicts
skill · dart-lang/skillsBSD-3-Clause licenceAudited 26 Oct 2026 · source db37821a6b02
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit db37821a6b02 and found no filesystem, network or shell access and no hard-coded secrets. What it does: Workflow for fixing package version conflicts. Use this when `pub get` fails due to incompatible package versions.
Cite
Cite this page
ModelsAtlas. “dart-resolve-package-conflicts (dart-lang/skills)”. Retrieved 26 Oct 2026. https://modelsatlas.com/skills/dart-lang/dart-resolve-package-conflicts
2 skills are called “dart-resolve-package-conflicts”. You are viewing dart-lang/skills.
- dart-lang/skills★ 530✓SAFE
- flutter/agent-plugins★ 3.1k✓SAFE
Trust audit
Audit 0.4.1 · source read 26 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 16,667 of 17,602 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha db37821a6b02 · 26 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherdart-lang GitHub organizationOwner of the repository this skill is read from
- Source folderdart-lang/skills/skills/dart-resolve-package-conflictsThe exact folder we audited
- LicenceBSD-3-ClauseAs the repository states it
- Commit pinned for this verdictdb37821a6b02A new audit runs when the source changes
- Repository statusNot archivedLast push 10 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Workflow for fixing package version conflicts. Use this when `pub get` fails due to incompatible package versions.
---
name: dart-resolve-package-conflicts
description: Workflow for fixing package version conflicts. Use this when `pub get` fails due to incompatible package versions.
metadata:
model: models/gemini-3.1-pro-preview
last_modified: Fri, 24 Apr 2026 15:11:14 GMT
---
# 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 introduces the risk of "version lock."
To mitigate version lock, Dart relies on version constraints rather than pinned versions in the `pubspec.yaml`. The `pubspec.lock` file maintains the exact resolved versions for reproducible builds.
Understand the output columns of `dart pub outdated`:
* **Current:** The version currently recorded in `pubspec.lock`.
* **Upgradable:** The latest version allowed by the constraints in `pubspec.yaml`. `dart pub upgrade` resolves to this.
* **Resolvable:** The absolute latest version that can be resolved when factoring in all other dependencies in the project.
* **Latest:** The latest published version of the package (excluding prereleases).
## Version Constraints
* **Use Caret Syntax:** Always use caret syntax (e.g., `^1.2.3`) for dependencies in `pubspec.yaml`. This allows `pub` to select newer, non-breaking versions (up to, but not including, the next major version) during resolution.
* **Tighten Dev Dependencies:** Set the lower bound of `dev_dependencies` to the exact version currently used. This reduces resolution complexity and prevents older, incompatible dev tools from being selected.
* **Enforce Lockfiles in CI:** Use `dart pub get --enforce-lockfile` in CI/CD pipelines to ensure the exact versions tested locally are used in production.
## Workflow: Auditing Dependencies
Run this workflow periodically to identify stale packages that may impact stability or performance.
**Task Progress:**
- [ ] Run `dart pub outdated`.
- [ ] Review the **Upgradable** column to identify packages that can be updated without modifying `pubspec.yaml`.
- [ ] Review the **Resolvable** column to identify packages that require constraint modifications in `pubspec.yaml` to update.
- [ ] Identify any packages marked as retracted or discontinued.
## Workflow: Upgrading Dependencies
Use conditional logic based on the audit results to upgrade dependencies.
**Task Progress:**
- [ ] **If updating to "Upgradable" versions:**
- [ ] Run `dart pub upgrade`.
- [ ] Run `dart pub upgrade --tighten` to automatically update the lower bounds in `pubspec.yaml` to match the newly resolved versions.
- [ ] **If updating to "Resolvable" versions (Major updates):**
- [ ] Manually edit `pubspec.yaml` to bump the version constraint to match the "Resolvable" column (e.g., change `^0.11.0` to `^0.12.1`).
- [ ] Run `dart pub upgrade` to resolve the new constraints and update `pubspec.lock`.
- [ ] **Feedback Loop:**
- [ ] Run `dart analyze` -> review errors -> fix breaking API changes.
- [ ] Run `dart test` -> review failures -> fix regressions.
## Workflow: Resolving Version Conflicts
When `pub` cannot find a set of concrete versions that satisfy all constraints, or when dealing with a retracted package version, manipulate the lockfile surgically.
**NEVER** delete the entire `pubspec.lock` file and run `dart pub get`. This causes uncontrolled upgrades across the entire dependency graph.
**Task Progress:**
- [ ] Open `pubspec.lock`.
- [ ] Locate the specific YAML block for the conflicting or retracted package.
- [ ] Delete ONLY that package's entry from the lockfile.
- [ ] Run `dart pub get` to fetch the newest compatible, non-retracted version for that specific package.
- [ ] **Feedback Loop:**
- [ ] Run `dart pub deps` -> verify the dependency graph resolves correctly.
- [ ] If resolution fails, identify the transitive dependency causing the lock, update its constraint in `pubspec.yaml`, and retry.
## Examples
### Tightening Constraints
When `dart pub outdated` shows a package is resolvable to a higher minor/patch version, use the `--tighten` flag to update the `pubspec.yaml` automatically.
**Input (`pubspec.yaml`):**
```yaml
dependencies:
http: ^0.13.0
```
**Command:**
```bash
dart pub upgrade --tighten http
```
**Output (`pubspec.yaml`):**
```yaml
dependencies:
http: ^0.13.5
```
### Surgical Lockfile Removal
If `package_a` is retracted or locked in a conflict, remove only its block from `pubspec.lock`.
**Before (`pubspec.lock`):**
```yaml
packages:
package_a:
dependency: "direct main"
description:
name: package_a
url: "https://pub.dev"
source: hosted
version: "1.0.0" # Retracted version
package_b:
dependency: "direct main"
# ...
```
**Action:** Delete the `package_a` block entirely. Leave `package_b` untouched. Run `dart pub get`.Excerpt, first 5,266 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit db37821
git clone https://github.com/dart-lang/skills git -C skills checkout db37821a6b02
The author documents no install command, so this uses the repository directly. Our verdict covers commit db37821a6b02 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
db37821a6b02
Similar skills
obra/superpowers
Use when creating new skills, editing existing skills, or verifying skills work before deployment
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
mattpocock/skills
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
Questions about dart-resolve-package-conflicts
Is dart-resolve-package-conflicts safe to install?
What can dart-resolve-package-conflicts access on my machine?
How current is this page?
Sources
- github.com/dart-lang/skills/tree/main/skills/dart-resolve-packag — the audited source at commit db37821a6b02 and every finding aboveObserved · 26 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- Is dart-resolve-package-conflicts safe to install?
- What can dart-resolve-package-conflicts access on my machine?
- How current is this page?