Choosing tools and dependencies
Who this is for
Section titled “Who this is for”Engineers and tech leads.
When to use it
Section titled “When to use it”When you add, upgrade, or replace a dependency.
- Must: New production dependencies are a decision, not a silent install. Name why this library, not another, on the PR or a decision record.
- Must: Prefer maintained libraries. Do not add something unmaintained without a written exception.
- Must: Do not commit lockfile churn unrelated to your change.
- Should: Prefer the language’s standard library or what the repo already uses.
- Should: Pin versions the way the repo already pins (lockfile).
- Team decides: Allow-lists and upgrade cadence. Supply-chain scanning is Dependencies and supply chain.
What good looks like
Section titled “What good looks like”The PR that adds a library explains the job it does and the cost of owning it.
What to do
Section titled “What to do”- Check whether the repo already solves this.
- If you add something, say why on the PR.
- Run tests and lint.
- If the library will be hard to remove, write a short decision record.