dependency-safety
Skill1 starsChanged 23 days agoMITView on GitHub
Guardrails for changing dependencies. Use this WHENEVER a change touches pyproject.toml, lock files, adds/upgrades/pins a package, or edits a Dockerfile or its base image: only touch a dependency when genuinely necessary, make the smallest reviewable change, and never bump versions or regenerate a lockfile casually.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- jonmagic/skillstheir own version, first seen Nov 8, 2026
- doorkeeper-gem/doorkeepertheir own version, first seen Oct 9, 2026
- soukupl/claudeSkillsLibrarytheir own version, first seen Sep 17, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- doorkeeper-gem/doorkeeper★ 5.5ksame name
- jonmagic/skills★ 6same name
- soukupl/claudeSkillsLibrary★ 1same name
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.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- clarify-firstSkill
- coding-standardsSkill
- docs-maintenanceSkill
- lean-contextSkill
- security-advisoriesSkill
- spec-writingSkill
- writing-claude-mdSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Before touching a dependency, ask: is this necessary?
- Distinctive: line 34
After any dependency change, read the lock diff and confirm only what you intended moved:
- Distinctive: line 37
If a package you didn't touch changed version, stop and find out why — an accidental transitive bump is the most common silent regression.
- Very specific: line 42
If a stray command rewrote the lock, restore it (git checkout <ref> -- <lock>) rather than committing an unintended re-resolve.
- Distinctive: line 47
Prefer an explicit, minimal version constraint over "latest." Know what a change to a bound actually allows before you widen or bump it.
- Very specific: line 49
If a resolver setting controls reproducibility (e.g.
- Distinctive: line 55
If a dependency/runtime issue is already burning, resist shotgun fixes (bump the package *and* swap the base *and* re-lock at once).
“Common” is measured: kept by at least 6 in 10 of the 3 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 safety
Changes are minimal — only what is necessary.
Default to no change
Before touching a dependency, ask: is this necessary? Only add, upgrade, or pin one for a concrete reason — a bug you need fixed, a security advisory, a feature the task actually requires. If the task works with what's already there, change nothing.
For a security advisory, follow security-advisories: it confirms the advisory
applies and picks the lowest version that fixes it.
- Don't add a package for something small — prefer the standard library or an existing dependency over a new package for a few lines of functionality.
- Don't upgrade unrelated packages — a bump that isn't part of the task is scope creep and a review burden. Leave it out.
- Don't regenerate the lockfile casually —
uv lock/uv sync(ornpm install,poetry update,cargo update) can silently re-resolve dozens of transitive deps. Regenerate only when you mean to, then review the diff.
Review the lockfile diff
After any dependency change, read the lock diff and confirm only what you intended moved:
- If a package you didn't touch changed version, stop and find out why — an accidental transitive bump is the most common silent regression.
- Scrutinize compiled / C-extension packages (numpy, pandas, pyarrow, cryptography, grpcio, pillow, …). They carry native ABI constraints and are the most likely to break a runtime that looked fine at build time.
- If a stray command rewrote the lock, restore it (
git checkout <ref> -- <lock>) rather than committing an unintended re-resolve.
Pin with intent
- Prefer an explicit, minimal version constraint over "latest." Know what a change to a bound actually allows before you widen or bump it.
- If a resolver setting controls reproducibility (e.g. uv's
exclude-newer), keep it valid for the tool version in use — a value an older tool can't parse may be silently ignored, letting the resolver pull the newest of everything.
When debugging, change one thing at a time
If a dependency/runtime issue is already burning, resist shotgun fixes (bump the package and swap the base and re-lock at once). Change one variable, verify, then the next — otherwise you won't know what actually fixed it, and you risk trading one silent drift for another.
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.

