bun-cli

bun-cli is a skill for Claude Code, Codex from dmythro/agent-skills. It costs 235 tokens per session (16,679 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 235 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 16,679 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.00235 $0.16679
Opus 5.5 $0.00094 $0.06672
Sonnet 5.5 $0.00047 $0.03336
Haiku 4.5 $0.00023 $0.01668

Measured 1mo ago against content hash 83ccbbc80b1f, 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 1mo 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 · 1,008 lines

How it starts

The opening of the file, as written. The whole thing — 1,008 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, type checker (v1.4.3+), and formatter (v1.4.4+). Bun runs TypeScript natively — bun file.ts directly, no compile step, no tsc, no ts-node — bun check replaces tsc --noEmit, and bun fmt replaces prettier --write. Always use bun instead of node, npm, npx, yarn, or pnpm in Bun projects.

Verified against Bun v1.4.4 (2026-10-22). Features are tagged with the version that introduced them (v1.4+, v1.4.1+, v1.4.2+, v1.4.3+, v1.4.4+). 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.

Version Guide: What Each 1.4.x Release Changes

Release Adds Changes under existing projects Upgrade to it when
1.4.0 (2026-08-20) bun audit fix, bun dedupe, bun prune, bun why, bun pm licenses / diff, --filter on add / remove / update, --catalog, bun test --timings, --react-compiler, --asset bun.lock v2 / v3 (Bun 1.3 cannot read v3), strict-TOML bunfig.toml, bun update moves transitive dependencies, resetAllMocks() drops implementations You want the 1.4 tooling -- check every CI Bun pin and bunfig.toml first
1.4.1 (2026-09-04) --offline / --prefer-offline, self-contained workspaces, --min-chunk-size, --bytecode-depth, --env-file from pipes, --no-ffi-cc Fewer, smaller split chunks plus modulepreload links (build snapshots change) Never as a target: its bundler can rename a nested var onto a let, so Elysia bundles fail to load -- go to 1.4.2 or later
1.4.2 (2026-09-05) Nothing (bugfix release) -- You are on 1.4.1, or bun install panics with range end index out of range
1.4.3 (2026-10-10) bun check / --check, --bytecode-order, --compile-jit-policy, [hash9]-[hash13] Installs cache only what they place (an --offline cache needs a full warm-up install), --disallow-code-generation-from-strings enforced, Bun.build({ tsconfig }) honored, --coverage-reporter implies --coverage You want type checking without tsc, or large --splitting builds fail with Multiple files share the same output path
1.4.4 (2026-10-22) bun fmt, bun pm fetch, bun pm cache pack / unpack / prune, bun publish --recursive, packageExtensions, link:./path, --libc, bun check --no-script, Yarn Berry lockfile migration Unknown package-manager flags exit 1 and npm/Yarn/pnpm flags are translated, pnpm-style peer resolution, stricter coverage counts, the hoisted linker removes dependencies dropped from package.json You want a built-in formatter, a Berry migration, bun install retries that survive registry blips, or the fixes for 133 closed bun install issues -- run CI once to catch flag errors and coverageThreshold drops

Read the full file on GitHub · 1,008 lines

Files

What ships with it

9 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. 1mo ago Changed · +180 lines · +31 tokens per session 83ccbbc80b1f
  2. 1mo ago Changed · +104 lines · +25 tokens per session 42cc5e84693d
  3. 2mo ago Changed · +1 lines 1ce45b7ade9a
  4. 3mo ago Changed · +44 lines · +20 tokens per session ff56d637b37d
  5. 3mo 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 22d ago), licensed MIT. It adds 235 tokens to every session and 16,679 once invoked, about $0.0009 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.

Related

bun-cli compared with skills from other repositories

bun-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bun-clidmythro/agent-skillsSkill722d agoMITA235Claude Code, Codex
typescript-guardiancodebygarv/Ai-skillsSkill283mo agoMITA41Claude Code, Codex
coding-standardshashgraph-online/awesome-codex-pluginsSkill1.6kyesterdayApache-2.0A28Claude Code, Codex
claude-apihashgraph-online/awesome-codex-pluginsSkill1.6kyesterdayApache-2.0A53Claude Code, Codex
prisma-ormericrisco/rsc-harnessSkill7072d agoMITA101Claude Code, Codex
drizzle-ormericrisco/rsc-harnessSkill7072d agoMITA96Claude Code, Codex
nestjsericrisco/rsc-harnessSkill7072d agoMITA81Claude Code, Codex