agentleFS
tejastn10tejastn10/workbench/skills/planning/evaluate-dependency/SKILL.md

evaluate-dependency

Skill1 starsChanged 2 months agoMITView on GitHub

Decide whether to add a library before adding it — API surface via Context7, architecture via DeepWiki, maintenance and CVE check, transitive cost, alternatives. Output a recommendation, and an ADR if it's load-bearing. Use when asked "should we use X", "what's the best library for Y", "is X maintained", or before a PR that adds a dependency.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    If yes, stop here.

    line 15
  2. Very specific:

    If the choice is load-bearing (a framework, a datastore client, an auth lib): write an ADR (planning/write-adr).

    line 38

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

Evaluate a dependency

The pr-review bias is toward fewer abstractions and fewer dependencies. This is the gate before one gets added.

Checks

  1. Does something already cover it? An existing dependency, a stdlib function (Intl vs a date lib, crypto vs a hashing lib), a helper already in the repo. If yes, stop here.
  2. API surface — pull the docs via Context7 (resolve-library-id → get-library-docs, version-pinned). Is the API small and stable, or sprawling? Will you use 5% of it?
  3. Architecture — for anything non-trivial, read the DeepWiki structure. How is it built, what does it pull in, does it fit your runtime (edge / Node / Go version)?
  4. Maintenance — last release date, release cadence, open-issue and open-CVE count, single-maintainer risk, funding. npm view <pkg> time, go list -m -u, the repo's pulse.
  5. Transitive cost — npm ls <pkg> / go mod graph after a trial install. How many packages, how much install weight, any duplicate-of-what-you-have.
  6. Bundle cost (frontend) — does it tree-shake, what's the min+gzip, is it behind next/dynamic if it's heavy and client-only.
  7. Licence — compatible with MIT.
  8. Exit cost — if it's wrong in a year, how hard to remove? A thin wrapper at the boundary keeps that cheap.

Output

  • Recommendation — adopt / adopt-with-wrapper / build-it / do-nothing, one line of why.
  • Alternatives considered — the 1–2 others, why they lost.
  • If the choice is load-bearing (a framework, a datastore client, an auth lib): write an ADR (planning/write-adr).

Anti-patterns

  • ❌ Adopting because it has the most GitHub stars.
  • ❌ Pulling a whole library for one function.
  • ❌ Skipping the "does something already cover it" check.
  • ❌ No wrapper at the boundary for a dependency you're not sure about.

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.