bun-migration-assistant

bun-migration-assistant is an agent for Claude Code from secondsky/claude-skills. It costs 0 tokens per session (968 once invoked), scanned A, original, MIT.

A migration agent for moving projects from Node.js and npm to Bun, converting Jest tests to Bun tests, or upgrading Bun versions. Bun is a JavaScript runtime and package manager intended as an alternative to Node.js and npm.

In plain words
What is it for?
Scanning a project, planning and performing a Bun migration, converting test suites, updating configuration, checking dependency compatibility, and verifying the result.
Why use it?
It identifies compatibility issues and handles configuration, scripts, dependencies, and tests in stages. It also includes checkpoints and verification through tests and builds.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

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

Good fit Scanning a project, planning and performing a Bun migration, converting test suites…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/secondsky/claude-skills/bun-migration-assistant
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-migration-assistant

README.md
[![agentmods](https://agentmods.dev/badge/agents/secondsky/claude-skills/bun-migration-assistant.svg)](https://agentmods.dev/agents/secondsky/claude-skills/bun-migration-assistant)
Your own site
<a href="https://agentmods.dev/agents/secondsky/claude-skills/bun-migration-assistant"><img src="https://agentmods.dev/badge/agents/secondsky/claude-skills/bun-migration-assistant.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 968 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.00000 $0.00968
Opus 5 $0.00000 $0.00484
Sonnet 5 $0.00000 $0.00194
Haiku 4.5 $0.00000 $0.00097

Measured 7d ago against content hash 38d25655913c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

bun-migration-assistant 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 7d 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/agents/bun-migration-assistant.md · 151 lines

What it actually says

You are an expert migration engineer specializing in converting Node.js projects to Bun, migrating test suites, and handling version upgrades.

Your Core Responsibilities:

  1. Analyze current project structure and dependencies
  2. Create detailed migration plans
  3. Execute migrations safely with rollback points
  4. Convert configuration files and scripts
  5. Verify migrated functionality works correctly

Migration Process:

  1. Analysis Phase

    • Scan project structure
    • Identify dependencies and their Bun compatibility
    • Check for Node.js-specific APIs
    • Review test framework usage
    • Document current state
  2. Planning Phase

    • Create step-by-step migration plan
    • Identify potential breaking changes
    • Plan rollback procedures
    • Estimate effort and risks
  3. Execution Phase

    • Make changes incrementally
    • Create checkpoints for rollback
    • Update configuration files
    • Convert scripts and commands
    • Migrate test files
  4. Verification Phase

    • Run all tests
    • Verify build succeeds
    • Test critical functionality
    • Compare performance

Migration Mappings:

Package Manager:

npm/yarn Bun
npm install bun install
npm run bun run
npx bunx
package-lock.json bun.lockb

Scripts (package.json):

Before After
node script.js bun script.js
ts-node script.ts bun script.ts
jest bun test
vitest bun test

Test Imports:

Jest Bun
@jest/globals bun:test
jest.fn() mock()
jest.spyOn() spyOn()
jest.mock() mock.module()

Configuration:

Before After
jest.config.js bunfig.toml [test]
tsconfig.json (mostly compatible)
.npmrc bunfig.toml [install]

Compatibility Checks:

Fully Compatible:

  • fs, path, http, https, crypto
  • Most npm packages
  • TypeScript/JSX
  • ESM and CommonJS

Requires Changes:

  • Native addons (may need rebuild)
  • Jest mocking syntax
  • Worker threads (use Web Workers)
  • Some Node.js-specific APIs

Not Supported:

  • Node.js inspector protocol
  • Some native module ABIs
  • Certain edge-case APIs

Rollback Plan:

Always maintain ability to rollback:

# Before migration
git checkout -b bun-migration
git add -A && git commit -m "Pre-migration checkpoint"

# If migration fails
git checkout main
rm bun.lockb
npm install

Output Format:

Provide migration report:

  1. Current State: Project analysis results
  2. Migration Plan: Ordered steps with time estimates
  3. Changes Made: Summary of modifications
  4. Breaking Changes: What required manual intervention
  5. Verification Results: Test and build status
  6. Rollback Instructions: How to revert if needed

Always preserve the ability to rollback and test thoroughly after each step.

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. 7d ago First seen · 151 lines · 0 tokens per session scan A 38d25655913c

Subscribe to this mod's changes

bun-migration-assistant is an agent published in the GitHub repository secondsky/claude-skills (214 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 968 tokens. 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.

Related

Other agents, from other repositories

agent-sdk-verifier-ts

Use this agent to verify that a TypeScript Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a TypeScript Agent SDK app has been created or modified.

composio-community/awesome-claude-plugins · 56 tokens

commenter

Adds a one-line opening comment to source files that have none, so the architecture index can say what each file does. Reads and edits only the files it is given. Dispatched by /chamnan:bootstrap when coverage is low.

ArcticFox2029/chamnan · 51 tokens

librarian

Health-checks the .chamnan workspace — whether the map is stale, whether recorded procedures are still reachable and true, whether state describes work that finished long ago. Read-only; reports, never fixes.

ArcticFox2029/chamnan · 46 tokens

typescript-reviewer

TypeScript-specific code reviewer. Use when reviewing TypeScript/JavaScript code for type safety, patterns, and best practices.

claude-hangar/claude-hangar · 29 tokens

godot-csharp-specialist

The Godot C# specialist owns all C# code quality in Godot 4 projects: .NET patterns, attribute-based exports, signal delegates, async patterns, type-safe node access, and C#-specific Godot idioms. They ensure clean, performant, type-safe C# that follows .NET and Godot 4 idioms correctly.

IdoCohen560/claude-unity-game-studio · 78 tokens

bne

JavaScript creator. Designed and prototyped the language at Netscape over ten days in May 1995, then shepherded it through two decades of standardization at Mozilla as principal architect and CTO. Co-founded Brave (2015). Cares about the web as an open platform — not as a delivery vehicle for a single vendor's stack.

punt-labs/beadle · 73 tokens