mcpField
B
bun-add

bun-add

github.com/laurigatesDevelopment5955 installsUpdated 1d ago
Repository

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

  1. 01Add runtime dependencies
  2. 02Add development dependencies
  3. 03Pin exact package versions

Use cases

  1. 01Add a package to a project
  2. 02Add a development-only package
  3. 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-add

After 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

ScenarioUse this skillAlternative
Quickly adding a single packageYesN/A
Adding a dev dependencyYesN/A
Pinning an exact package versionYesN/A
Installing all project dependenciesNo - use bun-package-managerbun install
Removing or updating packagesNo - use bun-package-managerN/A
Managing workspace dependenciesNo - use bun-package-managerN/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

  1. Report package version added
  2. Show dependency tree impact with bun why <package>
  3. Suggest running tests to verify compatibility

Comments

Markdown supported