bun-knowledge-patch

A reference guide for developing with Bun, a JavaScript runtime and toolkit that can run servers, tests, builds, and packages. It also covers Bun's compatibility with Node.js, the JavaScript runtime many projects already use.

In plain words
What is it for?
Use it when working on Bun applications, packages, builds, tests, servers, databases, networking, workspaces, runtime APIs, or Node.js compatibility.
Why use it?
Bun's behavior and compatibility can differ from older documentation or from Node.js. The guide helps check current details before relying on outdated advice or changing Node-oriented code.

Skill for Claude CodeCodex

Part of the knowledge-patch plugin — 57 skills, 1 hook shipped together

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.

agentmods
npx agentmods add skills/nevaberry/nevaberry-plugins/bun-knowledge-patch
Any agent
npx skills add Nevaberry/nevaberry-plugins --skill bun-knowledge-patch
Clone the repo
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins

Made for: Claude Code, Codex.

Or install knowledge-patch, the plugin that ships this one along with the rest of its 57 skills, 1 hook.

Per session 8 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,224 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00008 $0.02224
Opus 5 $0.00004 $0.01112
Sonnet 5 $0.00002 $0.00445
Haiku 4.5 $0.00001 $0.00222

Measured 3d ago against content hash 76dd205c0f3d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bun-knowledge-patch 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 3d 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.spawn()` streams always emit `Buffer`s regardless of
plugins/knowledge-patch/patches-claude/bun-knowledge-patch/SKILL.md · 199 lines

How it starts

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

Bun Knowledge Patch

Use this skill when working on Bun applications, packages, builds, tests, servers, or Node.js compatibility. Check the relevant reference before relying on older Bun behavior or translating Node-oriented code.

Reference index

Reference Topics
Builds and frontend Bundling, compiled executables, HTML/CSS, loaders, plugins, decorators, HMR, React, metafiles
Databases and storage Bun.SQL, Postgres/MySQL/SQLite, bun:sqlite, S3, Redis, secrets, archives, images
HTTP and networking Bun.serve, Fetch, WebSocket, TLS, HTTP/2/3, QUIC, UDP, Unix sockets, proxies
Node.js compatibility Implemented and missing Node APIs, module hooks, workers, child processes, streams, crypto
Packages and workspaces Installs, lockfiles, linkers, catalogs, scripts, audit, publish, workspace commands
Runtime and platform Runtime APIs, files, subprocesses, formats, terminal text, profiling, cron, platform behavior
Testing bun:test, node:test, concurrency, sharding, timers, mocks, coverage, reporters

Upgrade hazards to check first

Installation layout is lockfile-driven

New workspace projects can use isolated installs, but existing projects do not change linker merely because Bun is upgraded. bun.lock/bun.lockb configVersion decides defaults: version 1 plus workspaces is isolated; version 0 is hoisted. Set [install] linker = "isolated" or bun install --linker=isolated when an existing monorepo needs isolation. See packages and workspaces.

TLS verification is stricter

Connections that formerly tolerated hostname or client-certificate problems may now fail. tls.connect() derives SNI and identity from host when servername is absent; Bun socket TLS APIs default to rejectUnauthorized: true; Redis TLS checks the URL host; and only literal rejectUnauthorized: false disables verification. Review each TLS caller, including redirects and per-host Bun.serve configurations. See HTTP and networking.

Read the full file on GitHub · 199 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 199 lines · 8 tokens per session scan A 76dd205c0f3d

Subscribe to this mod's changes

bun-knowledge-patch is a skill published in the GitHub repository Nevaberry/nevaberry-plugins (24 stars, last pushed 6d ago), licensed MIT. It adds 8 tokens to every session and 2,224 once invoked, about $0.0000 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.