Agent skill

Bun Runtime and Toolkit

by mweinbach in mweinbach/agent-coworker

Quick reference for using Bun to run TypeScript and JavaScript, install packages, bundle code, run tests and serve HTTP, with the key files and commands.

Custom licenceAuto-check: notesDevelopment

Install Bun Runtime and Toolkit

skills CLI
$ npx skills add mweinbach/agent-coworker --skill bun -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mweinbach/agent-coworker bun --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mweinbach/agent-coworker.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/bun .claude/skills/bun && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
bun
GitHub stars
156
Token cost
~2.2k tokens
SKILL.md length
960 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
Custom licence

At a glance

Quick reference for using Bun to run TypeScript and JavaScript, install packages, bundle code, run tests and serve HTTP, with the key files and commands.

  • Works in 7 steps: Set up a new project → Install dependencies → Write and run code → …
  • Running a TypeScript or JSX file directly without a build step
  • SKILL.md covers Product summary, When to use, Quick reference and Decision guidance, plus 4 more sections
  • Calls bun

What it does

Bun is a single `bun` executable that acts as runtime, package manager, bundler and test runner, and it runs TypeScript and JSX directly without configuration. The skill lists the commands that cover most tasks: `bun run` for files and package scripts, `bun install`, `bun add` and `bun remove` for dependencies, `bun build` with an output folder for bundles, `bun test`, and `--watch` for reruns.

It also covers file conventions: optional `bunfig.toml` for configuration, `package.json`, the `bun.lock` lockfile, test files named `*.test.ts` or `*.spec.ts` that are found automatically, and `.env` files that load on their own. A bunfig example shows install settings such as hoisted or isolated linking. A table of common APIs begins with `Bun.serve()` for HTTP servers, and the use cases include file operations, monorepo workspaces and preparing production builds.

When your agent uses it

  • Running a TypeScript or JSX file directly without a build step
  • Adding, removing or updating npm packages with Bun
  • Bundling an app for the browser or a server
  • Writing and running Jest-style tests
  • Setting up a workspace with several packages

Example prompts

  • “Run index.ts with Bun and set up a dev script in package.json.”
  • “Add lodash and the Node types as a dev dependency using bun.”
  • “Bundle src/main.ts into ./dist with bun build.”
  • “Start a small HTTP server using Bun.serve and write a test for its route.”

Requirements

  • Bun installed on your machine

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Set up a new project
  2. Install dependencies
  3. Write and run code
  4. Add packages
  5. Build for production
  6. Run tests
  7. Configure (optional)

What it can do on your machine

Read from SKILL.md and the folder at commit aab9dc6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bun

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • bun.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bun Runtime and Toolkit loads about 2.2k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 960 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:51
    - `.env`, `.env.local`, `.env.production` — Environment variables (auto-loaded)
  • NoteMentions a .env fileSKILL.md:136
    ges, creates `bun.lock`. Bun auto-loads `.env` files.
  • NoteMentions a .env fileSKILL.md:177
    Environment variables**: Bun auto-loads `.env`, `.env.local`, `.env.production`, `.env.development`. Disable with `env =
  • NoteMentions a .env fileSKILL.md:194
    guration is available; do not create an `.env` file unless the task requires one

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 960 words (~2,220 tokens).

“Bun is an all-in-one JavaScript/TypeScript runtime and toolkit. It ships as a single executable (bun) and includes a fast runtime (4x faster startup than Node.js), package manager (30x faster installs), bundler, and test runner. Agents use Bun to execute TypeScript/JSX…”

— opening of SKILL.md by mweinbach, Custom licence
name
bun
metadata.mintlify-proj
bun
metadata.version
1.0

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/bun of mweinbach/agent-coworker.

Open the folder on GitHubat commit aab9dc6

Compare with similar skills

Bun Runtime and Toolkit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Bun Runtime and Toolkit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bun Runtime and Toolkit this skillmweinbach/agent-coworker156—~2.2kAutomated safety check: NotesCustom licence
Bungalfrevn/apollo237—~2kAutomated safety check: NotesMIT
Bunbastani-inc/atomic855—~2.8kAutomated safety check: PassCustom licence
Linea Dependency MaintenanceConsensys-Incorporated/linea-attestation-registry1771 repos~3.7kAutomated safety check: WarnMIT
Monorepo Tooling and Dependenciespierrecomputer/pierre6.3k—~1.1kAutomated safety check: PassApache-2.0
Migrate to Denodenoland/skills100—~2.2kAutomated safety check: WarnMIT

Similar skills

  • Bun

    galfrevn/apollo

    A skill your agent uses when building, running, testing, or bundling JavaScript/TypeScript applications.

    237 GitHub stars~2k tokensUpdated 1 mo ago
    Testing & QAAuto-check: notes
  • Bun

    bastani-inc/atomic

    A skill your agent uses when building, testing, and deploying JavaScript/TypeScript applications.

    855 GitHub stars~2.8k tokensUpdated today
    Testing & QAAuto-check passed
  • Linea Dependency Maintenance

    Consensys-Incorporated/linea-attestation-registry

    Safely plan and execute dependency maintenance for JavaScript/TypeScript (npm, pnpm) and GitHub Actions, including npm lockfiles, pnpm workspaces, catalogs, overrides, SHA-pinned action versions…

    177 GitHub starsUsed in 1 repo~3.7k tokens
    DevelopmentAuto-check: warnings
  • Sets one monorepo's rules for toolchain pins, pnpm package operations, the shared dependency catalog and moon tasks, so the agent adds versions and scripts the right way.

    6.3k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Migrate to Deno

    denoland/skills

    Official

    Moves a Node.js, npm, Yarn, pnpm or Bun project to Deno in reversible steps, starting with Deno as the package manager and changing no code unless needed.

    100 GitHub stars~2.2k tokensUpdated 2 mo ago
    DevelopmentAuto-check: warnings
  • npm Supply Chain Security

    bodadotsh/npm-security-best-practices

    Applies safer package manager defaults and dependency vetting to JavaScript and TypeScript projects to reduce supply-chain attack risk.

    858 GitHub stars~1k tokensUpdated 9 days ago
    SecurityAuto-check: warnings

More from mweinbach/agent-coworker

All 8 skills in this repo
  • AI Elements Chat Components

    mweinbach/agent-coworker

    Adds AI Elements components such as conversations, messages, tool displays and prompt inputs to a Next.js project that uses shadcn/ui.

    156 GitHub starsUsed in 5 repos~1.8k tokens
    Auto-check passed
  • Expo Brownfield Integration

    mweinbach/agent-coworker

    Helps add Expo and React Native to an existing native iOS or Android app, and choose between a prebuilt AAR or XCFramework and a fully integrated build.

    156 GitHub starsUsed in 2 repos~900 tokens
    Auto-check: notes
  • Use Dom

    mweinbach/agent-coworker

    Use Expo DOM components to run web code in a webview on native and as-is on web.

    156 GitHub starsUsed in 5 repos~2.4k tokens
    Auto-check passed
  • Workflow

    mweinbach/agent-coworker

    Author and run a deterministic multi-agent workflow — a JavaScript script that fans out, pipelines, loops, and judges across many child agents.

    156 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check passed
  • Improve Animations

    mweinbach/agent-coworker

    Audit a codebase's animation and motion, produce prioritized improvement plans, and execute selected plans when requested.

    156 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Memories

    mweinbach/agent-coworker

    A skill your agent uses when the user asks to view, list, inspect, add, create, edit, correct, update, or manage long-term memories for the current chat or workspace.

    156 GitHub stars~547 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Bun Runtime and Toolkit

What does Bun Runtime and Toolkit do?

Quick reference for using Bun to run TypeScript and JavaScript, install packages, bundle code, run tests and serve HTTP, with the key files and commands. Bun is a single `bun` executable that acts as runtime, package manager, bundler and test runner, and it runs TypeScript and JSX directly without configuration. The skill lists the commands that cover most tasks: `bun run` for files and package scripts, `bun install`, `bun add` and `bun remove` for dependencies, `bun build` with an output folder for bundles, `bun test`, and `--watch` for reruns.

When should I use Bun Runtime and Toolkit?

Bun Runtime and Toolkit fits situations like: running a TypeScript or JSX file directly without a build step; adding, removing or updating npm packages with Bun; bundling an app for the browser or a server; writing and running Jest-style tests.

How do I install Bun Runtime and Toolkit in Claude Code?

Run `npx skills add mweinbach/agent-coworker --skill bun -a claude-code`. Or copy the skill folder (.agents/skills/bun in mweinbach/agent-coworker) into .claude/skills/bun in your project. Claude Code loads it when a task matches its description.

How do I install Bun Runtime and Toolkit in Codex?

Run `npx skills add mweinbach/agent-coworker --skill bun -a codex`. Or copy the skill folder (.agents/skills/bun in mweinbach/agent-coworker) into .agents/skills/bun in your project. Codex loads it when a task matches its description.

Can I use Bun Runtime and Toolkit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mweinbach/agent-coworker --skill bun -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bun, .gemini/skills/bun, .github/skills/bun and .opencode/skills/bun in your project.

What does Bun Runtime and Toolkit need to run?

Going by SKILL.md and its folder, Bun Runtime and Toolkit needs the command-line tools its instructions call (bun). Our summary lists: Bun installed on your machine.

Does Bun Runtime and Toolkit access the network?

SKILL.md names 1 domain. As links in the text: bun.com. This is read from the text; nothing was executed.

Is Bun Runtime and Toolkit safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Bun Runtime and Toolkit use?

Bun Runtime and Toolkit has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Bun Runtime and Toolkit use?

About 2.2k tokens (SKILL.md is roughly 8.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Bun Runtime and Toolkit?

Skills that share tags, products or a category with Bun Runtime and Toolkit: Bun (galfrevn/apollo, 237 stars), Bun (bastani-inc/atomic, 855 stars), Linea Dependency Maintenance (Consensys-Incorporated/linea-attestation-registry, 177 stars) and Monorepo Tooling and Dependencies (pierrecomputer/pierre, 6.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bun Runtime and Toolkit?

mweinbach (a GitHub user) maintains it in mweinbach/agent-coworker, which has 156 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 9, 2026.

Source: mweinbach/agent-coworker on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.