Bun Bun Patch
Persistently patch node_modules packages in a git-friendly way
Install
npx skills add jarle/bun-skills --skill Bun bun patchgit clone --depth 1 https://github.com/jarle/bun-skills.git /tmp/bun-skills
mkdir -p ~/.claude/skills
cp -r /tmp/bun-skills/skills/bun-pm-cli-patch ~/.claude/skills/Bun-bun-patchPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# bun patch
> Persistently patch node_modules packages in a git-friendly way
`bun patch` lets you persistently patch node\_modules in a maintainable, git-friendly way.
Sometimes, you need to make a small change to a package in `node_modules/` to fix a bug or add a feature. `bun patch` makes it easy to do this without vendoring the entire package and reuse the patch across multiple installs, multiple projects, and multiple machines.
Features:
* Generates `.patch` files applied to dependencies in `node_modules` on install
* `.patch` files can be committed to your repository, reused across multiple installs, projects, and machines
* `"patchedDependencies"` in `package.json` keeps track of patched packages
* `bun patch` lets you patch packages in `node_modules/` while preserving the integrity of Bun's [Global Cache](/pm/global-cache)
* Test your changes locally before committing them with `bun patch --commit <pkg>`
* To preserve disk space and keep `bun install` fast, patched packages are committed to the Global Cache and shared across projects where possible
#### Step 1. Prepare the package for patching
To get started, use `bun patch <pkg>` to prepare the package for patching:
```bash terminal icon="terminal" theme={"theme":{"light":"github-light","dark":"dracula"}}
# you can supply the package name
bun patch react
# ...and a precise version in case multiple versions are installed
bun patch react@17.0.2
# or the path to the package
bun patch node_modules/react
```Details
- Skill name
Bun bun patch- Repository
- jarle/bun-skills
- Path
skills/bun-pm-cli-patch/SKILL.md- License
- MIT
- Repo updated
- 24 February 2026
FAQ
What does the Bun Bun Patch skill do?
Persistently patch node_modules packages in a git-friendly way
How do I install the Bun Bun Patch skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jarle/bun-skills --skill Bun bun patch. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Bun Bun Patch popular?
It lives in jarle/bun-skills, which has 9 GitHub stars and 1 forks.
Related skills
Bun Archive
9jarle/bun-skills
Create and extract tar archives with Bun's fast native implementation
Bun Auto Install
9jarle/bun-skills
Bun's automatic package installation feature for standalone script execution
Bun Bun Add
9jarle/bun-skills
Add packages to your project with Bun's fast package manager
Bun Bun Publish
9jarle/bun-skills
Use `bun publish` to publish a package to the npm registry
Bun Bun Audit
9jarle/bun-skills
Check your installed packages for known security vulnerabilities
Bun Bun Runtime
9jarle/bun-skills
Execute JavaScript/TypeScript files, package.json scripts, and executable packages with Bun's fast runtime.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.