/dependencies:adopt-small-dependenciesfrom dependencies
Copies a small, stable dependency's source code directly into the repo and removes the package dependency. Helps reduce dependency count for minimal, permissive-licensed libraries.
Ships in dependencies. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Adopting copies only the code the repo uses into the repo, where the repo owns it from then on. It differs from a vendored package: the rest of the package stays out, and nobody syncs the copy with upstream.
Take the scope from the user: the packages they named, or else every direct runtime dependency in every manifest. Leave out dev tooling - linters, formatters, type checkers, test runners - which the product code never calls.
For each package, search the source for its imports - every form the language allows, including re-exports and imports by string name - and list the names used and where.
Check for indirect use too: a framework or config file that loads the package by name. Note any other dependency that requires the package, since the package then stays in the tree whatever you do.
Done when every package in scope has a row naming the functions, classes, or modules the repo uses and the files that use them.
Mark each row adopt or keep, with a one-line reason.
Adopt when the used piece is small, stable, and easy to read and test, and the copy can keep its interface. Keep when any of these holds:
Read the licence before an adopt verdict. Permissive licences (MIT, ISC, BSD, Apache-2.0) allow the copy as long as their notice is kept, and Apache-2.0 also asks you to say the code was changed. A copyleft licence (GPL, LGPL, MPL) binds the copied file or the whole project, so it means keep unless the user decides otherwise. No licence means no permission to copy.
Show the table to the user:
| Package | What the repo uses | Verdict | Why |
|---|---|---|---|
<pkg-a> | One maths function, in two files | adopt | About 20 stable lines; MIT |
<pkg-b> | Formatting helpers | keep | Pulls in much of the library |
<pkg-c> | Sanitises HTML | keep | Security-sensitive |
Pick the one package this run adopts: the one the user named, or else the adopt row with the smallest copy and the most transitive packages it removes.
Done when every row has a verdict and a reason, the picked package has a licence that permits the copy, and the user has seen the table and the pick before step 3 changes code.
Make the change as one commit:
The header says what the code is for, then where it came from, then the notice the licence requires:
<What this code is for, in one line.>
Adopted from <package> <version>, <licence>:
<link to each source file, pinned to the tag or commit for <version>>
<copyright line from the package's licence file>
<the full licence notice, verbatim>
Copy the copyright line and licence
text from the package's own LICENSE at that version.
Done when git grep finds the package name only in the header of its adopted
file, the diff at each call site touches only imports, the lock file no longer
lists the package, and tests and lint pass.
The remove command may rewrite project metadata in the lock file, such as a name taken from the current folder when run in a worktree. Read the lock file diff and restore anything beyond the removal.
Done when the lock file diff holds only the removed package and the transitive packages that left with it.
Report the table from step 2, the commit, the transitive packages that left the lock file, and the adopt rows left for later runs.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dependency-reduction, vendoring, code-adoption, license-check
Other plugins' skills for the same job
npx claudepluginhub staticaland/skills --plugin dependencies5 skills in this plugin
/dependency-cooldownSet up dependency cooldowns - a minimum release age that holds back freshly published package versions - across a project's package managers and update bots. Use when the user wants protection from compromised releases, or mentions cooldown, minimum release age, or exclude-newer./frozen-installReplace resolving install commands with frozen ones, such as `npm ci` and `uv sync` in locked mode, at every site meant to reproduce a lockfile, from CI workflows and image builds to task runners, deploy scripts, and docs. Use when the user wants reproducible installs, or mentions `npm install` in CI, `npm ci`, clean-install, a frozen lockfile, or lockfile drift. Covers `npm` and `uv`./install-scriptsStop dependency install scripts from executing, with a committed `ignore-scripts` for `npm` and the no-build flag for `uv`, then allowlist by name the few packages whose install scripts build something they need. Use when the user wants to block `postinstall` scripts or harden a project against a compromised release, or mentions `ignore-scripts`, lifecycle scripts, or `npm rebuild`. Covers `npm` and `uv`./renovate-setupAdd or extend Renovate with a seven-day minimum release age and immutable updates: lock files kept with their integrity hashes, and GitHub Actions and container images pinned to commit SHAs and digests. Use when the user adopts Renovate, fresh or in place of another update bot, or wants it to cover manifests, tools, images, actions, or custom files it misses.