/pb:adopt-apis [libraries, packages or paths]from pb
Sweep code for local logic, abstractions, types and workarounds that its installed library versions now provide, and for newer APIs that are cleaner or faster. Adopt them however large the refactor, and prove the behavior unchanged. Use after a dependency bump, or when asked whether code follows the newest APIs, types or conventions of its libraries.
Ships in pb. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Make the code use what its installed libraries offer. The installed version is the truth, never the version the code was written for and never memory. Read the installed source for every claim about a library, and cite the node_modules file and line it came from. A finding, a replacement or an API signature without that citation is a guess: read the source before using it. $ARGUMENTS names the scope. Without it, take every library the code in the working directory imports.
Keep a ledger in the session scratchpad, adopt-apis.md, one entry per library, and update it as each step finishes.
For each library in scope, resolve the version the code loads by following the importing package's resolution into node_modules, never the range in package.json. Note every library installed in two versions, because each version is its own API.
Done when every library in scope has its resolved version and path in the ledger.
For each library, read in this order:
skills/, docs/, README)..d.ts) for every export, option, type helper and deprecation..js, .mjs) for the behavior the types hide.Fetch the official docs for the installed major version when the package ships none.
Done when each library's entry lists what a call site in scope could use, each item with the file and line or the URL it came from.
Check every import and every call site of each library in scope, never a sample, because one candidate usually has siblings. A candidate is code the library already does, or does better:
as any, as unknown as, a non-null !), or a hand-written type or union, that a library type or type helper derives.Verify each candidate's premise in the installed source before listing it. A finding from an earlier audit, a comment or a memory is a claim to check, not a fact.
Done when every import in scope has been checked, and each candidate has its file:line, its replacement and the evidence for it in the ledger.
Apply every candidate however large the refactor. Before writing each replacement, open the installed source of the API it calls and check its signature, options and defaults there. Change every call site, delete the replaced code, and update the docs, rules and comments that describe it.
Prove each one with the strongest check that fits:
| Change | Proof |
|---|---|
| Generated output: SQL, schema, bundle, snapshot | Generate before and after, and compare byte for byte |
| Runtime behavior | A test that runs the real code path |
| Performance | Measure before and after with the same harness, and keep both numbers in the ledger |
| UI or dev server behavior | Run it in the browser or the server and observe it |
| Types only | The type check |
When adopting fixes a bug the old code had, record the behavior change and its proof in the ledger. Skip a candidate only for a reason a reader can check: the replacement changes behavior, the installed version lacks it, or the measurement shows no gain for a performance candidate. Never skip one for its size.
Done when every candidate is adopted with its proof or skipped with its reason, and the formatter, linter, type check and every test pass.
Reply with one table: library, version, adopted, skipped with reason. Under it, list each behavior change, and each step the user must take, such as a migration or a deploy setting.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
33 skills in this plugin
/animateBuild an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations./animation-performanceKeep web animations inside the frame budget — animate composite-only properties, keep motion off the main thread when the page is busy, and find the cause when an animation drops frames. Covers the layout/paint/composite pipeline, cheaper property swaps, CSS vs WAAPI vs requestAnimationFrame, Motion's hardware-accelerated path, React re-rendering per frame, inherited CSS variable recalculation, blur cost, and when `will-change` actually helps. Use when an animation is janky, choppy, stutters, or drops frames; when choosing which property to animate; when deciding between CSS and JS animation on performance grounds; or when reaching for `will-change` or GPU layers. For choosing easing, duration, or whether to animate at all use animate; for reviewing motion as a whole use review-animations.npx claudepluginhub philipbruer/skills --plugin pb