About bun-add
bun-add is a skill for adding packages to project dependencies with Bun, for developers who need to add runtime or development packages and optionally pin versions.
Key features
- 01Add runtime dependencies
- 02Add development dependencies
- 03Pin exact package versions
Use cases
- 01Add a package to a project
- 02Add a development-only package
- 03Install a specific package version
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ laurigates/ claude-plugins --skill bun-addAfter installing, type/bun-addin Claude Code to confirm it loaded.
Details
From the project README/bun:add
Add a package to dependencies using Bun.
When to Use This Skill
| Scenario | Use this skill | Alternative |
|---|---|---|
| Quickly adding a single package | Yes | N/A |
| Adding a dev dependency | Yes | N/A |
| Pinning an exact package version | Yes | N/A |
| Installing all project dependencies | No - use bun-package-manager | bun install |
| Removing or updating packages | No - use bun-package-manager | N/A |
| Managing workspace dependencies | No - use bun-package-manager | N/A |
Parameters
package(required): Package name, optionally with version (e.g.,lodash,react@18)--dev: Add to devDependencies--exact: Pin exact version (no ^ range)
Execution
bun add {{ if DEV }}--dev {{ endif }}{{ if EXACT }}--exact {{ endif }}$PACKAGE
Examples
# Add runtime dependency
bun add express
# Add dev dependency
bun add --dev typescript vitest
# Pin exact version
bun add --exact [email protected]
# Add to specific workspace
bun add lodash --cwd packages/utils
# Preview without writing package.json
bun add --dry-run zod
Post-add
- Report package version added
- Show dependency tree impact with
bun why <package> - Suggest running tests to verify compatibility
Comments
Markdown supported