bun-docs

bun-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 36 tokens per session (1,128 once invoked), scanned A, original, MIT.

A reference guide to Bun 1.2, a JavaScript and TypeScript tool that can run code, install packages, serve websites, access SQLite databases, and build projects.

In plain words
What is it for?
Use it when writing or debugging Bun programs, setting up packages, creating HTTP servers, working with files or SQLite, running tests, building code, or calling native libraries.
Why use it?
It keeps information about Bun's runtime and built-in tools in one place, so you do not have to search separate documentation pages.

Skill for Claude CodeCodex

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

Good fit Use it when writing or debugging Bun programs, setting up packages, creating HTTP servers, working with files or SQLite, running tests, building code, or calling native libraries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/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 pledgeandgrow/pledge-skills --skill bun
Clone the repo
git clone --depth 1 https://github.com/pledgeandgrow/pledge-skills

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-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/bun/github.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/bun)
Your own site
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/bun"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/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-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/bun"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/bun.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,128 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.00036 $0.01128
Opus 5 $0.00018 $0.00564
Sonnet 5 $0.00007 $0.00226
Haiku 4.5 $0.00004 $0.00113

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

Security

Grade A, and why

bun-docs 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 10d 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.

skills/bun/SKILL.md · 133 lines

How it starts

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

Bun — Skill Documentation

Metadata

  • Target Version: Bun 1.2.x
  • Source: bun.sh/docs
  • Files: 9
  • Lines: ~4,350

Quick Reference

Topic File Description
Getting Started (installation, quickstart, TypeScript, bun init) getting-started.md Install Bun, create projects, run TS/JSX
Runtime (execution, watch mode, REPL, bunfig, modules, plugins) runtime.md bun run, file types, module resolution, auto-install
Package Manager (bun install, add, remove, update, publish, outdated, why, audit, info, link, patch, workspaces, catalogs, filter, scopes, npmrc, security scanner, global cache, isolated installs) package-manager.md Full PM: install, update, publish, audit, patch, catalogs, isolated installs
HTTP Server (Bun.serve, routing, HTML imports, WebSockets, TLS) http-server.md Built-in HTTP server, file-system routing, hot reload
APIs (File I/O, SQLite, Streams, Fetch, Workers, Shell, Utils, Globals, Web APIs, Bun APIs reference) apis.md Bun.file, Bun.write, bun:sqlite, Bun.spawn, Workers, utils, compression, globals
Advanced APIs (SQL, S3, Redis, TCP/UDP, Cron, FFI, Image, Archive, WebView, Cookies, CSRF, JSON5, Transpiler, Node.js compat) advanced-apis.md PostgreSQL/MySQL, S3 storage, Redis, TCP/UDP sockets, cron jobs, FFI, image processing, tar archives
Testing (bun test, assertions, mocks, snapshots, watch mode) testing.md Jest-compatible test runner, TypeScript-first
Bundler (bun build, targets, plugins, executables, HTML imports) bundler.md Native bundler for browser/bun/node, single-file executables

What is Bun?

Bun is an all-in-one toolkit for developing modern JavaScript/TypeScript applications:

  • Runtime: Execute JS/TS files with near-zero overhead (JavaScriptCore engine)
  • Package Manager: Fast installs with bun install — replacement for npm/yarn/pnpm
  • Test Runner: Jest-compatible, TypeScript-first tests with bun test
  • Bundler: Native bundling for JS/TS/JSX with bun build

Read the full file on GitHub · 133 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. 10d ago First seen · 133 lines · 36 tokens per session scan A be05de6c3f75

Subscribe to this mod's changes

bun-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 1,128 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

bun

Bun all-in-one JavaScript runtime and toolkit reference. Covers runtime APIs (file I/O, HTTP server, SQLite, shell), ultra-fast package manager, built-in bundler with plugins, test runner with mocking, TypeScript support, and Node.js compatibility.

bytesagain/ai-skills · 55 tokens

Bun Test Runner

Fast test execution with Bun's built-in test runner including snapshot testing, mocking, code coverage, lifecycle hooks, DOM testing with happy-dom, and migration from Jest and Vitest to Bun test.

PramodDutta/qaskills · 44 tokens

bunjs

Use when building Bun.js/Hono applications, implementing HTTP endpoints, setting up Prisma/SQLite, writing Zod validation, or using Bun's test runner. See bunjs-architecture for layered patterns, bunjs-production for deployment.

MadAppGang/claude-code · 49 tokens

prisma-8

Comprehensive guide for building with Prisma 8 (Prisma Next), the contract-first data layer. Use whenever working on Prisma code in a project that uses it — authoring or editing the data contract (contract.prisma, PSL, TypeScript builders), migrations, queries (db.orm / db.sql), runtime wiring (db.ts, middleware…

prisma/orm · 220 tokens

output-dev-credentials

Store and reference encrypted secrets in Output SDK workflows using @outputai/credentials. Use when integrating API keys, database passwords, or third-party tokens.

growthxai/output · 35 tokens

capture-api-response-test-fixture

For provider response parsing tests, we aim at storing test fixtures with the true responses from the providers (unless they are too large in which case some cutting that does not change semantics is advised).

vercel/ai · 13 tokens