agentleFS
DobroslavRadosavljevicDobroslavRadosavljevic/cabrakan/.agents/skills/bun/SKILL.md

bun

Skill1 starsChanged 3 months agoMITView on GitHub

Build, review, debug, configure, migrate, teach, or plan Bun JavaScript/TypeScript work with current docs and a full usage guide. Use for bun runtime, bun install/add/remove/update/ci, bun.lock, workspaces catalogs overrides, trustedDependencies, bunx, Bun.serve, bun:sqlite, Bun.redis, Bun.SQL, Bun.file, Bun.$, bun test, bun build --compile, bunfig.toml, Node.js compatibility, --hot/--watch, and npm/pnpm/yarn migration to Bun.

  • Reads credentials

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use analytics-metrics, aws-account-management and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • hoodiniSkill

    analytics-metrics

    Build data visualization and analytics dashboards. Use when creating charts, KPI displays, metrics dashboards, or data visualization components. Triggers on analytics, dashboard, charts, metrics, KPI, data visualization, Recharts.

    Also in 3 projects that use this

  • hoodiniSkill

    aws-account-management

    Manage AWS accounts, organizations, IAM, and billing. Use when setting up AWS Organizations, managing IAM policies, controlling costs, or implementing multi-account strategies. Triggers on AWS Organizations, AWS IAM, AWS billing, Cost Explorer, SCPs, multi-account, AWS SSO, Identity Center.

    Also in 3 projects that use this

  • kelvincushmanSkill

    gh-commit

    Create well-formatted commits with conventional commit format.

    Also in 3 projects that use this

  • LangChainSkill

    langchain

    Build agents with a prebuilt architecture and integrations for any model or tool. Use when creating tool-calling agents, switching model providers, or adding structured output.

    Also in 5 projects that use this

  • kelvincushmanSkill

    prek

    Use when setting up or running hooks with prek in any repository. prek is a Rust drop-in alternative to pre-commit for running Git hooks that check, format, lint, and validate code and repository files. Prefer it when speed, workspace mode, built-in hooks, shared toolchains, or native TOML configuration matter.

    Also in 3 projects that use this

  • ant-designSkill

    gh-create-pr

    使用 GitHub CLI (gh) 推送当前分支并创建或更新 PR。在用户说「提 PR」「新建 PR」「用 gh 建 PR」「submit PR」「create pull request」时使用。

    Also in 3 projects that use this

  • +6 more from hoodini

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 1 is distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when work touches the Bun runtime, package manager, test runner, bundler, bunfig.toml, Node compatibility, or migrating …

    line 8
  2. Very specific:

    Prefer Bun-native APIs and bun / bunx commands for greenfield Bun projects.

    line 25
  3. Very specific:

    Verify with the narrowest useful bun command (bun test, bun run, bun ci, or a focused Bun.serve smoke).

    line 26
  4. Very specific:

    Prefer bun / bunx over npm / npx / yarn / pnpm in commands for Bun projects.

    line 31
  5. Very specific:

    Commit bun.lock. CI install: bun ci (frozen lockfile).

    line 32
  6. Very specific:

    Prefer Bun.serve for new HTTP services.

    line 35
  7. Very specific:

    Prefer bun:sqlite / Bun.SQL / Bun.redis over heavier Node clients when writing Bun-first code.

    line 36
  8. Distinctive:

    Prefer repository-owned commands.

    line 45
  9. Very specific:

    After native deps: bun pm untrusted / trust as needed.

    line 51
  10. Very specific:

    After bun build / --compile: run the output on the target platform.

    line 52

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Bun

Use this skill when work touches the Bun runtime, package manager, test runner, bundler, bunfig.toml, Node compatibility, or migrating installs/scripts to Bun.

Workflow

  1. Inspect the local Bun surface:
    • bun --version / bun --revision (stable line is 1.3.x; prefer upgrading toward current stable when APIs matter).
    • Lockfile: bun.lock (text, default since 1.2) vs legacy bun.lockb.
    • package.json scripts, workspaces, catalogs, overrides, trustedDependencies.
    • bunfig.toml (project + optional global), .npmrc, @types/bun / tsconfig "types": ["bun"].
    • Whether code uses Bun-native APIs (Bun.serve, bun:sqlite, …) or Node APIs (node:*).
  2. For day-to-day how-to, progressive adoption, and troubleshooting, follow usage-guide.md first.
  3. Refresh docs when versions drift or the task touches Redis/SQL/HTTP3/FFI or lockfile/linker defaults. Start from source-map.md.
  4. Route deeper detail:
    • Runtime APIs, HTTP, files, shell, SQLite/Redis/S3/SQL: runtime-apis.md.
    • Install, lockfile, workspaces, trust, bunx, CI: package-manager.md.
    • bun test, bun build, --compile, init/create: test-bundler-build.md.
    • Node compat, globals, watch/hot, bunfig overview: node-compat-config.md.
  5. Prefer Bun-native APIs and bun / bunx commands for greenfield Bun projects. Keep Node APIs when the codebase is already Node-shaped and works.
  6. Verify with the narrowest useful bun command (bun test, bun run, bun ci, or a focused Bun.serve smoke).

Core Judgment

  • Bun is runtime + package manager + test runner + bundler in one binary — not “just a faster Node”.
  • Prefer bun / bunx over npm / npx / yarn / pnpm in commands for Bun projects.
  • Commit bun.lock. CI install: bun ci (frozen lockfile).
  • Dependency lifecycle scripts are blocked by default unless trusted — check bun pm untrusted after adding native packages (sharp, etc.).
  • New workspace lockfiles often default to isolated linker; legacy migrations may stay hoisted via configVersion.
  • Prefer Bun.serve for new HTTP services; know the default 10s idle timeout (SSE needs server.timeout(req, 0)).
  • Prefer bun:sqlite / Bun.SQL / Bun.redis over heavier Node clients when writing Bun-first code.
  • bun --watch hard-restarts; bun --hot soft-reloads (globalThis persists) — good for servers.
  • Bun flags go before run: bun --watch run dev, not bun run dev --watch.
  • Bun.env is a launch snapshot; prefer process.env when values change at runtime.
  • bun build does not typecheck or emit .d.ts — run tsc when types matter.
  • bun:ffi and several features (HTTP/3, Redis pub/sub, Workers terminate) are experimental — prefer Node-API natives for production FFI.

Verification

Prefer repository-owned commands. For meaningful Bun work, cover the relevant subset:

  • bun --version and confirm lockfile / linker expectations.
  • Focused bun test (path or -t pattern); coverage / junit when CI cares.
  • bun ci or bun install --frozen-lockfile after lockfile edits.
  • Smoke bun run <entry> or Bun.serve with port: 0 + fetch.
  • After native deps: bun pm untrusted / trust as needed.
  • After bun build / --compile: run the output on the target platform.
  • Node-compat migrations: run the same suite under Bun and note partial modules.

Report which checks ran, which did not, and any Bun version assumptions that remain.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.