agentleFS
moah0911moah0911/aftermath/skills/dependency-failure/SKILL.md

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

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
  1. Distinctive:

    Stop. Do not delete the lockfile or run a broad upgrade.

    line 17
  2. Very specific:

    use the existing lockfile (npm ci, pnpm install --frozen-lockfile, yarn install --immutable, poetry install, cargo fetch)

    line 22
  3. Distinctive:

    add the missing peer dependency explicitly

    line 23
  4. Distinctive:

    If the install failure is environmental (registry down, auth, network), say so and stop.

    line 25
  5. Distinctive:

    Never delete the lockfile as a first move.

    line 40
  6. Distinctive:

    Never loosen a version range without stating why.

    line 41
  7. Distinctive:

    Never mix a dependency fix with feature changes.

    line 42
  8. Distinctive:

    Never label a registry outage as a code bug.

    line 43

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Dependency Failure

A resolver failure is a fact about the dependency graph, not an invitation to upgrade everything.

Steps

  1. Stop. Do not delete the lockfile or run a broad upgrade.
  2. Paste the exact resolver error verbatim. Name the packages and version ranges it mentions.
  3. Identify which change introduced the conflict: a new dependency, a bumped range, a Node/Python/Rust version, or a stale lockfile.
  4. 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
  5. Re-run the install command. Then run the build, then the tests.
  6. If the install failure is environmental (registry down, auth, network), say so and stop; do not edit manifests to route around it.

Common signatures

EcosystemSignature
npmERESOLVE, npm ERR!, ETIMEDOUT, ENOTFOUND
PythonNo matching distribution, failed to select a version
Rustfailed to select a version for the requirement
Gocannot find module, missing go.sum entry
RubyBundler could not find compatible versions
Lockfileslock 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.