bun:upgrade

bun:upgrade is a command for Claude Code from secondsky/claude-skills. It costs 10 tokens per session (922 once invoked), scanned A, original, MIT.

A helper for upgrading the Bun runtime and the packages used by a Bun project. Packages are reusable code libraries installed by the project.

In plain words
What is it for?
Use it to check versions, update Bun or selected/all dependencies, preview dependency changes, and review Bun version changes such as the lockfile format.
Why use it?
It helps review outdated dependencies and potential breaking changes before applying upgrades.

Command for Claude Code

Written for Claude Code: arguments in frontmatter.

Part of the bun plugin — 27 skills, 6 commands, 3 agents, 2 hooks shipped together

Good fit Use it to check versions, update Bun or selected/all dependencies, preview dependency changes, and review Bun version changes such as the lockfile format.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/secondsky/claude-skills/bun-upgrade
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Made for: Claude Code.

Or install bun, the plugin that ships this one along with the rest of its 27 skills, 6 commands, 3 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bun:upgrade

README.md
[![agentmods](https://agentmods.dev/badge/commands/secondsky/claude-skills/bun-upgrade.svg)](https://agentmods.dev/commands/secondsky/claude-skills/bun-upgrade)
Your own site
<a href="https://agentmods.dev/commands/secondsky/claude-skills/bun-upgrade"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/bun-upgrade.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 922 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.00922
Opus 5 $0.00005 $0.00461
Sonnet 5 $0.00002 $0.00184
Haiku 4.5 $0.00001 $0.00092

Measured 8d ago against content hash 806e93b849e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

bun:upgrade scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/bun/commands/bun-upgrade.md · 211 lines

How it starts

The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bun Upgrade Helper

Upgrade Bun runtime and project dependencies safely.

Upgrade Options

Upgrade Bun Runtime

# Upgrade to latest stable
bun upgrade

# Upgrade to specific version
bun upgrade --version 1.0.0

# Upgrade to canary
bun upgrade --canary

Check current version:

bun --version

Upgrade Dependencies

# Check for outdated
bun outdated

# Update all dependencies
bun update

# Update specific package
bun update react

# Update to latest (ignore semver)
bun update --latest

Interactive Upgrade

Check what will change:

# See what would update
bun outdated

# Review changes before applying
bun update --dry-run

Breaking Changes Check

Before upgrading, check for breaking changes:

Bun Changelog

Major breaking changes by version:

  • 1.0 - Stable API, may break pre-1.0 code
  • 1.1 - Windows support added, cross-platform Bun Shell, WebSocket client stabilized
  • 1.2 - NEW: Text-based lockfile format (bun.lock), built-in S3/Postgres APIs, Node.js 90% compatibility

⚠️ v1.2 Lockfile Change: Binary bun.lockb → Text bun.lock (JSONC format)

  • Easier to read, review PRs, and resolve merge conflicts
  • Cached installs 30% faster than v1.1
  • Migration happens automatically on first bun install with v1.2

Dependency Breaking Changes

Check changelogs for major version bumps:

# See current vs latest
bun outdated

# For each major bump, review:
# - GitHub releases
# - CHANGELOG.md
# - Migration guides

Safe Upgrade Process

  1. Backup current state

    git add -A && git commit -m "Pre-upgrade checkpoint"
    
  2. Check what's outdated

    bun outdated
    
  3. Upgrade Bun first

    bun upgrade
    
  4. Test with current deps

    bun test
    
  5. Upgrade dependencies

    bun update
    
  6. Run tests again

    bun test
    
  7. Verify build

    bun run build
    

Read the full file on GitHub · 211 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 211 lines · 10 tokens per session scan A 806e93b849e5

Subscribe to this mod's changes

bun:upgrade is a command published in the GitHub repository secondsky/claude-skills (215 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 922 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.