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.
npx agentmods add commands/secondsky/claude-skills/bun-migrategit clone --depth 1 https://github.com/secondsky/claude-skillsWrote 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.
[](https://agentmods.dev/commands/secondsky/claude-skills/bun-migrate)<a href="https://agentmods.dev/commands/secondsky/claude-skills/bun-migrate"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/bun-migrate.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00013 | $0.00660 |
| Opus 5 | $0.00006 | $0.00330 |
| Sonnet 5 | $0.00003 | $0.00132 |
| Haiku 4.5 | $0.00001 | $0.00066 |
Grade A, and why
bun:migrate scanned grade A with 1 finding 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 6d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
| child_process | ✅ Full | How it starts
The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Migrate to Bun
Migrate an existing Node.js project to use Bun as runtime and package manager.
Migration Steps
1. Analyze Current Project
Check for:
- Current package manager (package-lock.json, yarn.lock, pnpm-lock.yaml)
- Node.js version requirements
- Native dependencies
- Scripts that use Node-specific features
- Test framework (Jest, Mocha, Vitest)
2. Package Manager Migration
# Remove old lockfiles
rm -f package-lock.json yarn.lock pnpm-lock.yaml
# Install with Bun
bun install
3. Update Scripts
Replace in package.json:
| Before | After |
|---|---|
node script.js |
bun script.js |
ts-node script.ts |
bun script.ts |
npx command |
bunx command |
npm run |
bun run |
jest |
bun test |
vitest |
bun test |
4. Configuration Files
Create or update:
bunfig.toml
[install]
auto-install = true
[run]
bun = true
5. Test Migration
For Jest projects:
# Update imports
# Before: import { describe, it } from '@jest/globals'
# After: import { describe, test } from 'bun:test'
# Run tests
bun test
6. TypeScript Configuration
Update tsconfig.json:
{
"compilerOptions": {
"types": ["bun-types"]
}
}
Install types:
bun add -D bun-types
Compatibility Checks
Node.js APIs
| API | Bun Support |
|---|---|
| fs | ✅ Full |
| path | ✅ Full |
| http/https | ✅ Full |
| crypto | ✅ Full |
| child_process | ✅ Full |
| worker_threads | ✅ Full |
| stream | ✅ Full |
Potential Issues
- Native addons - May need recompilation
- Node.js-specific env vars - Check for NODE_* variables
- Babel/webpack configs - Usually not needed with Bun
- Jest configs - Convert to bunfig.toml
Rollback Plan
If migration fails:
# Restore old lockfile
git checkout package-lock.json
# Remove Bun lockfile
rm bun.lockb
# Reinstall with npm
npm install
Questions to Ask
- "Do you have any native Node.js addons?"
- "Are you using Jest for testing?"
- "Do you need to maintain Node.js compatibility?"
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.
- 6d ago First seen · 137 lines · 13 tokens per session scan A 46f29676d47b
bun:migrate is a command published in the GitHub repository secondsky/claude-skills (214 stars, last pushed 3d ago), licensed MIT. It adds 13 tokens to every session and 660 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
correlate
Find related failures through pattern matching.
diff
Compare two command outputs with intelligent diff.
open
Open/retrieve an offloaded output by ID or shortcut.
search
Search through offloaded outputs with hard caps.
stats
Show FewWord session statistics with rich output and token savings.
timeline
Visual timeline of command outputs in current session.