bun-add

SKILL.md

/bun:add

Add a package to dependencies using Bun.

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 react@18.2.0

# Add to specific workspace
bun add lodash --cwd packages/utils

Post-add

  1. Report package version added
  2. Show dependency tree impact with bun why <package>
  3. Suggest running tests to verify compatibility
Weekly Installs
47
GitHub Stars
13
First Seen
Feb 9, 2026
Installed on
opencode47
gemini-cli47
github-copilot47
codex47
amp47
cline47