/typescript-plugin:bun-add package-name [--dev] [--exact]from typescript-plugin
Installs a package with Bun, supporting dev dependencies, exact version pinning, and workspace targets. Use when adding a specific package via bun add.
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.
Add a package to dependencies using Bun.
| 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 |
Parse $ARGUMENTS. These are supplied by the caller; nothing substitutes
them for you.
Token in $ARGUMENTS | Binds | Default when absent |
|---|---|---|
| First non-flag token (required) | PACKAGE — name, optionally with a version (lodash, react@18) | none — ask for it rather than guessing |
--dev | add to devDependencies | added to dependencies |
--exact | pin the exact version (no ^ range) | caret range |
Pick the row matching the flags the caller passed, substitute PACKAGE, and run it:
Flags in $ARGUMENTS | Command |
|---|---|
| (none) | bun add PACKAGE |
--dev | bun add --dev PACKAGE |
--exact | bun add --exact PACKAGE |
--dev --exact | bun add --dev --exact PACKAGE |
# 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
bun add bypasses the lockfilebun install --frozen-lockfile governs only what that install resolves. A
later bun add <pkg> with no version resolves the registry's latest
dist-tag at run time, and the lockfile does not apply to it. The usual place
this happens is a Dockerfile that installs with --production (to skip dev
packages) and then re-adds one CLI from devDependencies.
latest is a registry convention, not a stability guarantee. Publishers can
tag a prerelease as latest.
Observed 2026-08:
bun add --dev prismain a--productionDocker stage pulled8.0.0-rc.12, because npm'slatestforprismawas a release candidate. Its CLI had nogeneratecommand, so the image build failed at a commit that touched neither Prisma nor the Dockerfile. Another image built from a plain--frozen-lockfileinstall kept working, which is the sign that a version was being resolved rather than locked. Unit-test CI stayed green because it never built the image.
When an install line has to name a package that the primary install skipped,
read the version from package.json instead of hardcoding a second copy. That
keeps one source of truth, and Renovate keeps bumping it:
RUN bun add --dev "prisma@$(bun -e 'console.log(JSON.parse(await Bun.file("package.json").text()).devDependencies.prisma)')"
If package.json holds a range (^7.9.1), this resolves the highest version
inside that range, which may differ from the locked one. Pin exact versions in
package.json when that difference matters.
bun why <package>What SKILL.md sets; muted values are Claude Code's defaults
18 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-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./bun-debugBun debugger via --inspect. Use when the user wants to debug a TS/JS file interactively, break at first line, wait for attach, or debug tests with --inspect-brk./bun-developmentBun runtime workflows for running scripts, testing, building, and initializing projects with agent-optimized flags. Use when running a TS file, watch/hot reload, configuring `bun test`, bundling/compiling, or scaffolding a Bun project./bun-installBun install: install all deps from package.json. Use when bootstrapping a checkout, running a reproducible CI install (--frozen-lockfile), or deploying (--production)./bun-lockfile-updateBun lockfile update (bun.lock): bun update, regeneration, security audits. Use when updating dependencies, resolving lockfile conflicts, or regenerating bun.lock.npx claudepluginhub laurigates/claude-plugins --plugin typescript-pluginOther plugins' skills for the same job