dependency-failure
Skill14 starsChanged 6 days agoMITView on GitHub
Use when an install, lockfile, resolver, or package-manager step fails: ERESOLVE, version conflicts, missing distributions, registry or network errors. Paste the exact resolver error, respect the lockfile, and change one thing at a time.
- Installs packages
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- aftermathSkill
- aftermathSkill
- build-failureSkill
- destructive-actionSkill
- flaky-testSkill
- merge-conflictSkill
- retry-loopSkill
- test-regressionSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Stop. Do not delete the lockfile or run a broad upgrade.
- Very specific: line 22
use the existing lockfile (npm ci, pnpm install --frozen-lockfile, yarn install --immutable, poetry install, cargo fetch)
- Distinctive: line 23
add the missing peer dependency explicitly
- Distinctive: line 25
If the install failure is environmental (registry down, auth, network), say so and stop.
- Distinctive: line 40
Never delete the lockfile as a first move.
- Distinctive: line 41
Never loosen a version range without stating why.
- Distinctive: line 42
Never mix a dependency fix with feature changes.
- Distinctive: line 43
Never label a registry outage as a code bug.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dependency Failure
A resolver failure is a fact about the dependency graph, not an invitation to upgrade everything.
Steps
- Stop. Do not delete the lockfile or run a broad upgrade.
- Paste the exact resolver error verbatim. Name the packages and version ranges it mentions.
- Identify which change introduced the conflict: a new dependency, a bumped range, a Node/Python/Rust version, or a stale lockfile.
- Choose one deliberate fix:
- restore the previous version range
- use the existing lockfile (
npm ci,pnpm install --frozen-lockfile,yarn install --immutable,poetry install,cargo fetch) - add the missing peer dependency explicitly
- Re-run the install command. Then run the build, then the tests.
- If the install failure is environmental (registry down, auth, network), say so and stop; do not edit manifests to route around it.
Common signatures
| Ecosystem | Signature |
| npm | ERESOLVE, npm ERR!, ETIMEDOUT, ENOTFOUND |
| Python | No matching distribution, failed to select a version |
| Rust | failed to select a version for the requirement |
| Go | cannot find module, missing go.sum entry |
| Ruby | Bundler could not find compatible versions |
| Lockfiles | lock file needs to be updated |
Never
- Never delete the lockfile as a first move.
- Never loosen a version range without stating why.
- Never mix a dependency fix with feature changes.
- Never label a registry outage as a code bug.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

