bun

bun is a skill for Claude Code, Codex from neverinfamous/memory-journal-mcp. It costs 92 tokens per session (1,225 once invoked), scanned A, original, MIT.

Development guidance for Bun, a JavaScript and TypeScript toolkit that includes a runtime, package manager, test runner, and bundler.

In plain words
What is it for?
Use it to install packages, run scripts, execute TypeScript or JavaScript, run tests, and bundle applications with Bun.
Why use it?
It keeps projects using Bun's tools consistently, including choosing Bun commands when the project contains a Bun lockfile.

Skill for Claude CodeCodex

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/neverinfamous/memory-journal-mcp/bun
Any agent
npx skills add neverinfamous/memory-journal-mcp --skill bun
Clone the repo
git clone --depth 1 https://github.com/neverinfamous/memory-journal-mcp

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/neverinfamous/memory-journal-mcp/bun.svg)](https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/bun)
Your own site
<a href="https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/bun"><img src="https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/bun.svg" alt="Measured on agentmods" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,225 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. 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.00092 $0.01225
Opus 5 $0.00046 $0.00613
Sonnet 5 $0.00018 $0.00245
Haiku 4.5 $0.00009 $0.00122

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

Security

Grade A, and why

bun scanned grade A with 2 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 5d 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.

Makes network callslowCapability

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

fetch(req) {

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

Replace `child_process` and `zx` with the native Bun shell (`$`).
skills/bun/SKILL.md · 163 lines

How it starts

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

Bun is a fast, all-in-one JavaScript runtime, bundler, test runner, and package manager designed as a drop-in replacement for Node.js. When working on projects that use Bun, AI agents should leverage its integrated tooling and native APIs to maximize performance and simplify development.

This skill synthesizes the best practices for Bun development, giving you the context needed to effectively write, test, and build applications.


🚀 1. Package Management (bun install)

Bun features a deeply optimized package manager. Always use bun commands instead of npm, yarn, or pnpm if a project has bun.lockb or bun.lock.

  • Install all dependencies: bun install
  • Add a package: bun add <package> (Use -d or --dev for devDependencies)
  • Remove a package: bun remove <package>
  • Run binaries: bunx <command> (The blazing fast equivalent of npx)

Agent Directive: Never run npm install gracefully if bun.lockb is present. Always opt for bun add.


⚡ 2. Script Execution (bun run)

Run scripts from package.json lightning fast:

bun run dev
bun run build

Run TypeScript and JavaScript files natively—no ts-node, tsc, or build step required:

bun run scripts/setup.ts
bun index.tsx

🌐 3. Core Runtime APIs

Bun provides deeply optimized, native APIs under the Bun global and bun:* modules.

HTTP Server (Bun.serve)

Use Bun.serve() as the default over Node's http or express for simple tasks.

const server = Bun.serve({
  port: 3000,
  fetch(req) {
    const url = new URL(req.url)
    if (url.pathname === '/') return new Response('Hello World!')
    if (url.pathname === '/json') return Response.json({ success: true })
    return new Response('Not Found', { status: 404 })
  },
})
console.log(`Listening on localhost:${server.port}`)

File I/O (Bun.file(), Bun.write())

Skip fs module when possible. Use Bun's native lazy-loaded File I/O.

const file = Bun.file('package.json')
const text = await file.text()
const json = await file.json()

// Writing
await Bun.write('output.txt', 'Hello world!')
await Bun.write('data.json', JSON.stringify({ a: 1 }))

Read the full file on GitHub · 163 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. 5d ago First seen · 163 lines · 92 tokens per session scan A 0d782cfbe61e

Subscribe to this mod's changes

bun is a skill published in the GitHub repository neverinfamous/memory-journal-mcp (20 stars, last pushed 1mo ago), licensed MIT. It adds 92 tokens to every session and 1,225 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

create-gsd-extension

Create, debug, and iterate on GSD extensions (TypeScript modules adding tools, commands, event hooks, custom UI, and providers). Use when asked to build an extension, add a tool the LLM can call, register a slash command, hook into GSD events, create custom TUI components, or modify GSD behavior. Triggers on…

open-gsd/gsd-pi · 101 tokens

capability

Creates or modifies a capability class in domain/capabilities/ and its corresponding Has interface in domain/tools/contracts.ts. Use when adding a new tool runtime behavior (agents, skills, commands, rules, mcp, hooks, settings, plugins), changing the constructor params of an existing capability class, or wiring a new…

ai-driven-dev/framework · 122 tokens

faf-expert

Expert in the .faf format (Persistent Project Context for AI) and the faf-cli toolkit. Use when working with .faf files, scoring AI-readiness, syncing project context to CLAUDE.md, or discussing the Foundational Context Layer (FCL) doctrine. IANA-registered (application/vnd.faf+yaml). Anthropic-listed as "Persistent…

Wolfe-Jam/faf-cli · 82 tokens

javascript-typescript

JavaScript and TypeScript development with ES6+, Node.js, React, and modern web frameworks. Use for frontend, backend, or full-stack JavaScript/TypeScript projects.

myths-labs/muse · 40 tokens

build-error-resolver

Build and TypeScript error resolution specialist. Use PROACTIVELY when build fails or type errors occur.

myths-labs/muse · 26 tokens

react-best-practices

React development guidelines with hooks, component patterns, state management, and performance optimization.

myths-labs/muse · 22 tokens