bun-cli

bun-cli is a skill for Claude Code, Codex from dmythro/agent-skills. It costs 204 tokens per session (12,297 once invoked), scanned A, original, MIT.

A reference for Bun, a JavaScript and TypeScript runtime that also manages packages, runs tests, bundles code, and compiles programs.

In plain words
What is it for?
It is for installing or updating packages, running scripts and tests, building or compiling projects, inspecting dependencies, and working with Bun workspaces and lockfiles.
Why use it?
It helps an agent use Bun's commands and project files correctly instead of applying instructions meant for other JavaScript tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions OpenCode.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bun build ./src/index.ts --outdir ./dist # Bundle to directory.

Good fit It is for installing or updating packages, running scripts and tests, building or compiling projects, inspecting dependencies, and working with Bun workspaces and lockfiles.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dmythro/agent-skills
agentmods
npx agentmods add skills/dmythro/agent-skills/bun-cli

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dmythro/agent-skills/bun-cli"><img src="https://agentmods.dev/badge/skills/dmythro/agent-skills/bun-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 204 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 12,297 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 12 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 330
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 331
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 332
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 622
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 623
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 331
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 623
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium MCP Rug Pull · line 77
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 79
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 119
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 342
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium Rogue Agent · line 501
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00204 $0.12297
Opus 5.5 $0.00082 $0.04919
Sonnet 5.5 $0.00041 $0.02459
Haiku 4.5 $0.00020 $0.01230

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

Security

Grade A, and why

bun-cli 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 9d 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`, `fs`, `net`, or `vm` -- then the diff, with minified files expanded and
skills/bun-cli/SKILL.md · 828 lines

How it starts

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

Bun CLI

Bun is an all-in-one JavaScript/TypeScript runtime, package manager, bundler, test runner, and (v1.4.3+) type checker. Bun runs TypeScript natively — bun file.ts directly, no compile step, no tsc, no ts-node — and bun check replaces tsc --noEmit. Always use bun instead of node, npm, npx, yarn, or pnpm in Bun projects.

Verified against Bun v1.4.3 (2026-10-10). Features are tagged with the version that introduced them (v1.4+, v1.4.1+, v1.4.2+, v1.4.3+). Where a release changed existing behavior, both behaviors are stated so this skill stays correct on older projects -- run bun --version before relying on a version-tagged item.

Check the Version, Then Check Bun's Docs

bun <command> --help is authoritative for flags and always matches the installed binary -- prefer it over any table here when the two disagree.

For everything beyond flags, Bun ships its full docs inside bun-types, version-matched to the runtime, in any project that has bun-types or @types/bun installed:

node_modules/bun-types/docs/pm/**/*.mdx        # install, lockfile, workspaces, catalogs, linkers
node_modules/bun-types/docs/test/**/*.mdx      # test runner
node_modules/bun-types/docs/bundler/**/*.mdx   # bun build, executables, loaders, plugins
node_modules/bun-types/docs/runtime/bunfig.mdx
node_modules/bun-types/CLAUDE.md             # Bun's own agent rules
  1. Depend on bun-types, not @types/bun. bun-types ships with every Bun release and carries both the docs and the types. @types/bun lags every release, often by a day or more, yet bun init adds it as latest -- so bun check rejects the newest APIs (TS2339, TS2353). Adding bun-types beside @types/bun fixes only the docs path: type checking keeps @types/bun's nested, pinned copy. Switch both:

    bun remove @types/bun
    bun add -d bun-types@$(bun --version)   # then "types": ["bun-types"] in tsconfig.json
    

    Compare bun --version with node_modules/bun-types/package.json before trusting either.

  2. Open by explicit path. With the global virtual store enabled, node_modules/bun-types is a symlink, so find node_modules -name '*.mdx' and rg <pattern> node_modules return nothing. find node_modules/bun-types/docs -name '*.mdx' works.

  3. Never edit under node_modules/. Under the global store every project on the machine shares the same inode. Use bun patch.

  4. Not installed? The same path works online: docs/pm/lockfile.mdx is https://bun.com/docs/pm/lockfile.

Read the full file on GitHub · 828 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. 9d ago Changed · +104 lines · +25 tokens per session 42cc5e84693d
  2. 1mo ago Changed · +1 lines 1ce45b7ade9a
  3. 1mo ago Changed · +44 lines · +20 tokens per session ff56d637b37d
  4. 1mo ago First seen · 679 lines · 159 tokens per session scan A fc4aa6021292

Subscribe to this mod's changes

bun-cli is a skill published in the GitHub repository dmythro/agent-skills (7 stars, last pushed 10d ago), licensed MIT. It adds 204 tokens to every session and 12,297 once invoked, about $0.0008 per session on Opus 5.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-31.