dependency-review
Skill13 starsChanged 4 months agoMITView on GitHub
Evaluate whether to add a new runtime or development dependency to a public open-source project before adding it. Use whenever a new package is proposed. Weighs standard-library alternatives, cost, transitive impact, maintenance, license, supply-chain risk, and low-resource effect, then decides add, do not add, or defer. Does not install anything.
In this repository7 other files it gives its agents.
- implementation-integritySkill
- implement-minimalSkill
- oss-bootstrapSkill
- oss-planSkill
- public-code-reviewSkill
- release-deploySkill
- test-and-debugSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 11 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
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 32
Read the first of these that exists, then follow it:
- Distinctive: line 37
If neither exists, apply this fallback: run one expensive command at a time, prefer the narrowest validation, disable watch mode, reuse …
- Distinctive: line 49
If neither exists, apply this fallback: select files before reading.
- Distinctive: line 65
Read the existing manifest to see current dependencies and conventions
- Distinctive: line 71
Check whether the standard library or platform API is sufficient
- Distinctive: line 72
Check whether an existing project dependency already solves it
- Very specific: line 83
Stop; installation happens later under implement-minimal if approved
- Distinctive: line 104
Prefer platform APIs, existing dependencies, and small local functions
- Distinctive: line 105
Do not reimplement cryptography, wallet security, authentication protocols, or mature parsers merely to avoid a dependency
- Distinctive: line 107
Do not install the dependency as part of this review
- Distinctive: line 108
Do not modify project files as part of this review
- Distinctive: line 109
Do not run a command that downloads the package to inspect it
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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-review
Decide whether to add a proposed dependency before it is added. Do not install anything or modify project files while using this skill.
Activate when
- A new runtime or development dependency is proposed
- An existing dependency upgrade would pull new transitive packages
- A failing build suggests adding a package to resolve it
Do not activate when
- The package is already a project dependency and no version changes
- The task is a code change with no new dependency -> use
implement-minimal - The task is a failing test unrelated to dependencies -> use
test-and-debug
Required inputs
- The exact package name and, if known, the version or range
- The problem the dependency is meant to solve
- Whether it is a runtime or development dependency
Low-resource policy
Read the first of these that exists, then follow it:
${CLAUDE_PROJECT_DIR}/.claude/shared/LOW_RESOURCE.md$HOME/.claude/shared/LOW_RESOURCE.md
If neither exists, apply this fallback: run one expensive command at a time, prefer the narrowest validation, disable watch mode, reuse existing environments, and run full validation only at a milestone boundary. Do not scan the whole filesystem to locate the policy.
Context-efficiency policy
Read the first of these that exists, then follow it:
${CLAUDE_PROJECT_DIR}/.claude/shared/CONTEXT_EFFICIENCY.md$HOME/.claude/shared/CONTEXT_EFFICIENCY.md
If neither exists, apply this fallback: select files before reading; use targeted searches and bounded ranges; do not preload references; do not reread unchanged files; finish one atomic increment and stop; create a compact handoff before context is exhausted.
Facts that must not be assumed
- The package manager and lockfile in use
- That the package is actively maintained
- That the license is compatible with public release
- The size of the transitive dependency tree
Preflight
- Identify the ecosystem and manifest -> references/ecosystem-review.md
- Read the existing manifest to see current dependencies and conventions
- Determine whether a current dependency or platform API already solves it
Workflow
- State the exact problem the dependency would solve
- Check whether the standard library or platform API is sufficient
- Check whether an existing project dependency already solves it
- Estimate the local code avoided versus the code introduced
- Assess the package per ecosystem signals -> references/ecosystem-review.md
- Assess the low-resource impact -> references/low-resource-impact.md
- Confirm license compatibility for public release
- Weigh maintenance activity and supply-chain exposure
- Reach exactly one decision
- Produce the record using templates/dependency-decision.md
- Stop; installation happens later under
implement-minimalif approved
Evaluation criteria
- The exact problem being solved
- Whether the standard library or platform API is sufficient
- Whether an existing project dependency already solves it
- Approximate amount of local code avoided
- Runtime cost
- Installation and build cost
- Transitive dependency impact -> references/ecosystem-review.md
- Maintenance activity and release recency
- License compatibility for public release
- Security and supply-chain exposure
- Effect on low-resource development -> references/low-resource-impact.md
- Effect on bundle or container size
Rules
- Prefer platform APIs, existing dependencies, and small local functions
- Do not reimplement cryptography, wallet security, authentication protocols, or mature parsers merely to avoid a dependency
- Do not install the dependency as part of this review
- Do not modify project files as part of this review
- Do not run a command that downloads the package to inspect it
Decision branches
- Standard library or an existing dependency suffices -> do not add
- The package is sound, licensed, and maintained, and it avoids substantial correct-by-construction code -> add
- Maintenance, license, or transitive impact is unclear -> defer pending evidence and name the evidence needed
Stop conditions
- License compatibility cannot be confirmed
- The package or its transitive tree cannot be inspected without installing
- The decision requires human review (see below)
Human review boundaries
- Any dependency touching cryptography, wallets, authentication, or key storage
- A copyleft or unclear license on a package intended for public release
- A package with an unknown or unverifiable maintainer or provenance
Final report
Produce the record in the exact section order of templates/dependency-decision.md, ending with exactly one decision: add, do not add, or defer pending evidence. Then stop.
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.

