dependency-management
Skill439 starsChanged 8 months agoMITView on GitHub
Use when adding new dependencies, deciding whether to update packages, running security audits on dependencies, evaluating library alternatives, or encountering outdated or vulnerable packages
We split this skill into the rules it gives an agent
18 rules. 0 are common, 17 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
17
Distinctive
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
- could be automatic: a setting could enforce it
- Distinctive: line 10
Every dependency is a commitment -- to its maintenance, security surface, and upgrade path.
- Distinctive: line 12
Core principle: Every dependency decision should be justified.
- Distinctive: line 65
Before adding any dependency, evaluate against all seven criteria:
- Distinctive: line 77
Rule of thumb: If a package fails two or more criteria, find an alternative or write it yourself.
- Distinctive: line 88
Update patch versions first, run tests, commit
- Distinctive: line 89
Update minor versions one by one, run tests after each
- Distinctive: line 91
Never batch major updates together -- isolate each one
- Distinctive: line 103
Run the audit tool for your ecosystem (npm audit, pip-audit, cargo audit, bundler-audit)
- Distinctive: line 106
Document accepted risks for findings you cannot immediately resolve
- Very specific: line 110
Always commit lockfiles (package-lock.json, yarn.lock, poetry.lock, Cargo.lock, etc.)
- Distinctive: line 112
Use ranges only for libraries (not applications)
- Distinctive: line 113
Never manually edit lockfiles -- use package manager commands
- Distinctive: line 114
After resolving lockfile merge conflicts, always run install to regenerate
- Distinctive: line 129
Before removing a package:
- Distinctive: line 130
Search the codebase for all imports and usages
- Distinctive: line 131
Check if other dependencies rely on it transitively
- Distinctive: line 132
Remove the import statements and package reference, then run the full test suite
- Distinctive: line 133
Verify the lockfile is cleanly regenerated after removal
“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dependency Management
Overview
Every dependency is a commitment -- to its maintenance, security surface, and upgrade path. Add deliberately, update strategically, audit regularly.
Core principle: Every dependency decision should be justified. Don't add what you can write. Don't ignore what you can update. Don't skip what you can audit.
When to Use
- Adding a new package or library to a project
- Security audit warnings (npm audit, pip-audit, cargo audit, etc.)
- Batch dependency update time
- Major version upgrade decisions
- Choosing between alternative libraries
- Lockfile merge conflicts
- Questioning if a package is still maintained
Don't use when:
- Internal module/code organization (that's refactoring)
- Learning a single package's API (that's research)
Decision Tree
digraph dependency_decision {
"What dependency decision?" [shape=diamond];
"Add new package" [shape=box];
"Update existing" [shape=box];
"Security alert" [shape=box];
"Remove package" [shape=box];
"Evaluation Criteria" [shape=box, style=filled, fillcolor=lightyellow];
"Update Type?" [shape=diamond];
"Urgency Matrix" [shape=box, style=filled, fillcolor=lightyellow];
"Usage check, remove" [shape=box];
"Patch" [shape=box];
"Minor" [shape=box];
"Major" [shape=box];
"What dependency decision?" -> "Add new package";
"What dependency decision?" -> "Update existing";
"What dependency decision?" -> "Security alert";
"What dependency decision?" -> "Remove package";
"Add new package" -> "Evaluation Criteria";
"Update existing" -> "Update Type?";
"Security alert" -> "Urgency Matrix";
"Remove package" -> "Usage check, remove";
"Update Type?" -> "Patch" [label="x.x.Z"];
"Update Type?" -> "Minor" [label="x.Y.0"];
"Update Type?" -> "Major" [label="X.0.0"];
}New Package Evaluation
Before adding any dependency, evaluate against all seven criteria:
| Criterion | Question | Red Flag |
| Necessity | Can stdlib or existing deps do this? | Adding a package for 10 lines of code |
| Maintenance | Last commit? Issue/PR response time? | 12+ months inactive, unanswered issues |
| Community | Weekly downloads, stars, forks? | Very low usage, single maintainer |
| License | Compatible with project license? | GPL in commercial project (license contamination) |
| Size | Bundle size? Transitive dependency count? | Massive dep tree for a small task |
| Security | Known CVEs? Clean audit? | Active security vulnerabilities |
| Alternatives | Better/lighter alternative available? | Picking the first result without evaluating |
Rule of thumb: If a package fails two or more criteria, find an alternative or write it yourself.
Update Strategy
| Update Type | Strategy | Risk |
| Patch (x.x.Z) | Update immediately, run test suite | Low |
| Minor (x.Y.0) | Read changelog, update, test | Medium |
| Major (X.0.0) | Breaking change analysis, migration plan, test on separate branch | High |
Workflow for batch updates:
- Update patch versions first, run tests, commit
- Update minor versions one by one, run tests after each
- Tackle major versions individually on feature branches
- Never batch major updates together -- isolate each one
Security Urgency Matrix
| Severity | Exploit exists? | Action | Timeframe |
| Critical | Yes | Update immediately or apply workaround | Hours |
| Critical | No | Priority update | 1-2 days |
| High | -- | Update within sprint | 1 week |
| Medium/Low | -- | Add to next update cycle | Planned |
When a security audit reports vulnerabilities:
- Run the audit tool for your ecosystem (npm audit, pip-audit, cargo audit, bundler-audit)
- Classify each finding using the matrix above
- Address critical/exploitable issues before any other work
- Document accepted risks for findings you cannot immediately resolve
Lockfile & Pinning Rules
- Always commit lockfiles (package-lock.json, yarn.lock, poetry.lock, Cargo.lock, etc.)
- Pin exact versions for production dependencies where possible
- Use ranges only for libraries (not applications)
- Never manually edit lockfiles -- use package manager commands
- After resolving lockfile merge conflicts, always run install to regenerate
Common Mistakes
| Mistake | Reality |
| "Popular package is safe" | Popularity does not equal security. event-stream was hacked at 2M weekly downloads |
| "Lockfile commit is unnecessary" | Without lockfile, builds are not reproducible |
| "Update everything at once" | Batch updates make it impossible to isolate the source of issues |
| "Major update is just a version number" | Breaking change = potential refactoring |
| "Dev dependency security doesn't matter" | Supply chain attacks target build processes |
| "Add a package instead of writing 10 lines" | Every package adds attack surface and maintenance burden |
Removing a Dependency
Before removing a package:
- Search the codebase for all imports and usages
- Check if other dependencies rely on it transitively
- Remove the import statements and package reference, then run the full test suite
- Verify the lockfile is cleanly regenerated after removal
Related Skills
- security-review -- For auditing vulnerable and outdated components (OWASP A06)
- systematic-debugging -- For diagnosing issues introduced by dependency updates
- verification-before-completion -- For confirming dependency changes do not break the build
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- robisson/build-like-amazon-agent-skills★ 16same name
- dprakash2101/dotnet-production-agent-skills★ 4same name
- saitarrun/Devforge-ai★ 4same name
- bchox/agent-practices★ 2same name
- JhonatanMota/claude-skills★ 1same name
- KMaruthi2002/universal-llm-skills★ 1same name
- michaelsvanbeek/personal-agent-skills★ 1same name
- SwastikPandey1024/agentic-engineering-os★ 1same name
- SWEStash/swe-workflow-skills★ 1same name
- agent-packs/registry★ 0same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use infrastructure-as-code, release-management and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
mmondoraSkillinfrastructure-as-code
Infrastructure as Code with Terraform and Pulumi. State management, modularity, drift detection, secrets handling. Use when provisioning cloud resources, writing Terraform/Pulumi modules, or managing infrastructure configuration.
Also in 4 projects that use this
Microsoft AzureSkillrelease-management
Prepares and validates AI Landing Zone semantic releases. Use for changelog entries, manifest versions, release branches, tags, GitHub Releases, and post-release branch reconciliation.
Also in 4 projects that use this
MicrosoftSkilldeployment
Also in 3 projects that use this
OpenAISkillobservability
Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.
Also in 4 projects that use this
wrsmith108Skilldocker
Container-based development for isolated, reproducible environments. Use when running npm commands, installing packages, executing code, or managing project dependencies. Trigger phrases include "npm install", "run the build", "start the server", "install package", or any code execution request.
Also in 3 projects that use this
AnthropicSkilldocumentation
Write and maintain technical documentation. Trigger with "write docs for", "document this", "create a README", "write a runbook", "onboarding guide", or when the user needs help with any form of technical writing — API docs, architecture docs, or operational runbooks.
Also in 4 projects that use this
In this repository19 other files it gives its agents.
- architecture-designSkill
- brainstormingSkill
- browser-agentSkill
- confidence-checkSkill
- deep-researchSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- performance-optimizationSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- security-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-superantigravitySkill
- verification-before-completionSkill
- writing-plansSkill
- writing-skillsSkill
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.

