No slash command · from typescript-plugin
Manages JavaScript dependencies with Bun — install, add, remove, update, and inspect packages. Handles workspaces, CI frozen-lockfile installs, and lockfile conflict debugging.
Ships in typescript-plugin. 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.
| Scenario | Use this skill | Alternative |
|---|---|---|
| Installing all project dependencies | Yes | N/A |
| Adding or removing packages | Yes | bun-add for quick single-package additions |
| Updating packages or checking outdated | Yes | N/A |
| Managing workspace dependencies | Yes | N/A |
CI reproducible installs (--frozen-lockfile) | Yes | N/A |
| Running scripts or tests | No - use bun-development | bun-test for quick test runs |
| Publishing packages to npm | No - use bun-publishing | N/A |
| Debugging lockfile conflicts | Yes | bun-lockfile-update for targeted lockfile operations |
Bun's package manager is significantly faster than npm/yarn/pnpm:
# Standard install
bun install
# CI/reproducible (frozen lockfile)
bun install --frozen-lockfile
# Production only (no devDependencies)
bun install --production
# Force reinstall
bun install --force
# Dry run (preview)
bun install --dry-run
# Add dependency
bun add <package>
# Add dev dependency
bun add --dev <package>
bun add -d <package>
# Pin exact version (no ^)
bun add --exact <package>
bun add -E <package>
# Global install
bun add --global <package>
bun add -g <package>
# Add to specific workspace
bun add <package> --cwd packages/mylib
# Remove dependency
bun remove <package>
# Remove from devDependencies
bun remove --dev <package>
# Dry run
bun remove --dry-run <package>
# Update within semver ranges
bun update
# Update to latest (ignore ranges)
bun update --latest
# Interactive selection
bun update --interactive
# Update across workspaces
bun update --recursive
# Check outdated packages
bun outdated
# Why is package installed?
bun why <package>
# List installed packages
bun pm ls
# View package cache
bun pm cache
{
"name": "monorepo",
"private": true,
"workspaces": ["packages/*", "apps/*"]
}
# Install all workspace deps
bun install
# Add to specific workspace
bun add express --cwd apps/api
# Run in matching workspaces
bun run --filter 'package-*' build
# Run in all workspaces
bun run --workspaces test
{
"dependencies": {
"shared-utils": "workspace:*"
}
}
| Context | Command |
|---|---|
| CI install | bun install --frozen-lockfile |
| Prod deploy | bun install --production |
| Preview changes | bun add --dry-run <pkg> |
| Exact versions | bun add --exact <pkg> |
| Workspace target | bun add <pkg> --cwd <path> |
| Force refresh | bun install --force |
| Flag | Short | Description |
|---|---|---|
--frozen-lockfile | Fail if lockfile changes | |
--production | -p | Skip devDependencies |
--dev | -d | Add to devDependencies |
--exact | -E | Pin exact version |
--global | -g | Global install |
--dry-run | Preview without executing | |
--force | -f | Force reinstall all |
--cwd <path> | Target directory | |
--latest | Update to latest version | |
--recursive | Apply across workspaces |
Lockfile mismatch in CI:
# Use frozen lockfile
bun install --frozen-lockfile
Peer dependency conflicts:
# Force install anyway
bun install --force
Package not found:
# Check if package exists
bun why <package>
| Variable | Description |
|---|---|
BUN_OPTIONS | Global CLI flags |
BUN_INSTALL | Bun installation directory |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub laurigates/claude-plugins --plugin typescript-plugin18 skills in this plugin
/biome-toolingBiome all-in-one JS/TS formatter and linter, 15-20x faster than ESLint/Prettier. Use when setting up formatting/linting or migrating from ESLint+Prettier./bun-addBun add: install a package, add dev dependency, pin exact version, or target a workspace. Use when the user wants to add/install a specific package with bun./bun-buildBun build: bundle or compile JS/TS to production bundle or standalone binary. Use when the user wants to bundle, compile, or build for browser/bun/node target.Other plugins' skills for the same job