bun

bun is a skill for Claude Code, Codex from code-yeongyu/senpi. It costs 237 tokens per session (2,758 once invoked), scanned A, original, MIT.

A set of instructions for using Bun, a JavaScript and TypeScript runtime and toolset, for running code, tests, checks, formatting, builds, and package tasks.

In plain words
What is it for?
Use it before JavaScript evaluation, process or server launches, dependency installation, tests, type checks, formatting, bundling, and other Bun commands.
Why use it?
It helps avoid adding packages or using separate tools when Bun already provides a suitable built-in or command. It also gives rules for safely starting processes and long-running work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before JavaScript evaluation, process or server launches, dependency installation, tests, type checks, formatting, bundling, and other Bun commands.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/code-yeongyu/senpi/bun
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.

Any agent
npx skills add code-yeongyu/senpi --skill bun
Clone the repo
git clone --depth 1 https://github.com/code-yeongyu/senpi

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/code-yeongyu/senpi/bun/github.svg)](https://agentmods.dev/skills/code-yeongyu/senpi/bun)
Your own site
<a href="https://agentmods.dev/skills/code-yeongyu/senpi/bun"><img src="https://agentmods.dev/badge/skills/code-yeongyu/senpi/bun/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bun

Your own site · 80×15
<a href="https://agentmods.dev/skills/code-yeongyu/senpi/bun"><img src="https://agentmods.dev/badge/skills/code-yeongyu/senpi/bun.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 237 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,758 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00237 $0.02758
Opus 5.5 $0.00095 $0.01103
Sonnet 5.5 $0.00047 $0.00552
Haiku 4.5 $0.00024 $0.00276

Measured yesterday against content hash 5504854ef8a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bun 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 yesterday.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| HTTP/2 + HTTP/3 server; fetch protocol/compress/proxy; per-client pools | `http2: true`, `http3: true`, `fetch(url, { protocol, compress, proxy })`, `new Bun.FetchSession()` | undici Agent | http-networking |
packages/senpi-codemode/src/skill/bun/SKILL.md · 54 lines

How it starts

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

Bun 1.4.x — Use the Builtins First

Bun 1.4.0 (Aug 2026) through 1.4.4 (Oct 2026) ships builtins and CLIs that replace most utility npm packages and several dev tools. Before adding a dependency, spawning a tool, or writing a workaround, check the map below — if Bun ships it, use the builtin. Version tags ([v1.4.3]) in the references give exact minimums; dated notes (2026-10-25) mark facts measured in our own sessions. Release posts: https://bun.com/blog/bun-v1.4 … https://bun.com/blog/bun-v1.4.4.

Capability map — what you can do now

You want to... Use Replaces Ref = references/<name>.md
Type-check a TS project: tsc-identical errors, 3-6x faster, no typescript install bun check --no-script, bun run/test/build --check tsc, tsgo dev-tooling
Format with your Prettier/oxfmt config bun fmt --no-script (--check, --changed, --staged) prettier, oxfmt, lint-staged dev-tooling
Run shell commands from JS, no /bin/sh Bun.$`...` → .nothrow().quiet().text()/.json()/.lines() execa, zx, shelljs session-recipes
Spawn with timeout / PTY / IPC; measure a child Bun.spawn({ env: process.env, timeout, killSignal, terminal, ipc }), proc.resourceUsage() node-pty, tree-kill, pidusage session-recipes
Keep tokens out of files, argv and env dumps Bun.secrets.get/set (OS keychain), --env-file=/dev/stdin keytar, dotenv session-recipes
Resize/convert/rotate images Bun.file(p).image().resize().webp().write() sharp runtime-apis
Headless browser: navigate, click, screenshot, evaluate, CDP new Bun.WebView() puppeteer, playwright (scraping) runtime-apis
Scrape or rewrite HTML by CSS selector, streaming new HTMLRewriter().on("a[href]", { element }) cheerio, jsdom (scraping) runtime-apis
Markdown → HTML / React / ANSI Bun.markdown.html() / .react() / .ansi() marked, react-markdown, glow runtime-apis
Schedule cron jobs Bun.cron() node-cron runtime-apis
Run package scripts concurrently, glob-matched bun run --parallel "build:*" concurrently, npm-run-all runtime-apis
Parse JSON5 / JSONL / JSONC / XML / TOML / YAML; tarballs; globs Bun.JSON5/.JSONL/.JSONC/.XML/.TOML/.YAML, Bun.Archive, Bun.Glob json5, ndjson, jsonc-parser, fast-xml-parser, @iarna/toml, js-yaml, tar, fast-glob runtime-apis
ANSI-aware terminal text; table rendering Bun.stringWidth/sliceAnsi/wrapAnsi/stripANSI(), Bun.inspect.table() string-width, slice-ansi, wrap-ansi, strip-ansi, cli-table runtime-apis
Hash, UUID v7, semver, deep-equal, gzip/zstd, which Bun.hash/CryptoHasher/password, randomUUIDv7, Bun.semver, deepEquals, gzipSync/zstdCompressSync, Bun.which uuid, semver, lodash.isequal, pako, which runtime-apis
Postgres / MySQL / SQLite, Redis, S3-compatible (R2) clients Bun.SQL, bun:sqlite, Bun.RedisClient, Bun.S3Client / s3:// pg, mysql2, better-sqlite3, ioredis, aws-sdk runtime-apis
Serve a static dir (ETag/Range/304 handled) Bun.serve({ routes: { "/x/*": { dir } } }) express.static, serve-static, sirv http-networking
HTTP/2 + HTTP/3 server; fetch protocol/compress/proxy; per-client pools http2: true, http3: true, fetch(url, { protocol, compress, proxy }), new Bun.FetchSession() undici Agent http-networking
Stream a download to disk; replay a request as curl Bun.write(path, await fetch(url)), BUN_CONFIG_VERBOSE_FETCH=curl pipeline + createWriteStream http-networking
Tests across CPU workers / CI shards / changed files / flaky retry bun test --parallel --shard=1/3 --changed=main --retry jest/vitest infra test
Kill "passes alone, fails in suite" bugs; hunt flakes bun test --isolate, --rerun-each N, --only-failures vitest default behavior test
Single-file executables with embedded assets and profile-guided startup; feature flags; in-memory bundling; metafile; React Compiler bun build --compile --asset ./public --bytecode-order, bun:bundle feature(), files:{}, metafile: true, --react-compiler pkg hacks, esbuild define/plugins, babel-plugin-react-compiler build
Diff package versions, fix vulns, dedupe/prune, licenses, explain a dep bun pm diff, bun audit fix, bun dedupe, bun prune, bun pm licenses, bun why npm-diff, npm audit fix, npm ls install
Offline / cached installs; Docker layers; CI cache; 7x faster CI bun install --offline|--prefer-offline, bun pm fetch, bun pm cache pack|unpack, linker = "isolated" pnpm store install
Profile CPU/heap/bundle as grep-able Markdown bun --cpu-prof-md, --heap-prof-md, bun build --metafile-md Chrome DevTools round-trip dev-tooling
Run untrusted JS without eval / new Function / FFI --disallow-code-generation-from-strings=strict, --no-ffi-cc vm2 security
Run Playwright, vitest, Next.js 16, OpenTelemetry, dd-trace; undici, node-fetch, ws they now just work (the last three load Bun's builtin even when installed) Node.js node-compat-platforms

Read the full file on GitHub · 54 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. yesterday First seen · 54 lines · 237 tokens per session scan A 5504854ef8a6

Subscribe to this mod's changes

bun is a skill published in the GitHub repository code-yeongyu/senpi (505 stars, last pushed today), licensed MIT. It adds 237 tokens to every session and 2,758 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.

Related

Other skills, from other repositories