Token导航 LogoToken导航

Agent Skill · 研究检索

bun(Bun 运行时)

bun 用于查找、检索和筛选相关信息,适合在 Local Agent 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

bun 是研究检索类 Agent Skill,可用宿主为 Local Agent,通过unknown获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 3,171。

总安装 47,520周安装 1,955下载 16,640核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bun(Bun 运行时)
来源仓库:https://bun.sh
仓库路径:bun
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选 Bun 运行时相关信息。bun 属于研究检索类 Skill,可作为该场景下的辅助能力补充。适合在 Local Agent 中根据关键词或任务场景快速定位候选结果。支持直接运行脚本、安装依赖、构建和测试等一体化工具链。相比 Node.js 启动速度快 4 倍,npm 安装快 25 倍。

安装前建议确认权限范围和维护状态,避免触发联网或文件读写。

来源仓库内路径:bun

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Local Agent;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    没有现成安装命令,按unknown的说明从来源页面获取,仓库路径是 bun。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

bun 怎么安装?

公开资料没有给出可以直接复制的命令,需要按来源页面说明手动安装,仓库内路径为 bun。

bun 支持哪些 AI 工具?

公开资料标注支持 Local Agent。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

bun 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

bun 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

bun 用的人多吗?

公开数据是累计安装 47,520 次,近一周安装 1,955 次,下载 16,640 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

bun 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 Local Agent 一种宿主,触发方式和使用习惯不用来回切换。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Local Agent,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
bun

Bun 运行时 · 本页

47,520—操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Bun Skill Reference

Product Summary

Bun is a unified JavaScript runtime, package manager, bundler, and test runner written in Zig. It replaces Node.js, npm, esbuild, and Jest with a single fast binary. Key files: bunfig.toml (configuration), bun.lock (lockfile), package.json (project metadata). Primary commands: bun run, bun install, bun build, bun test. Bun is 4x faster than Node.js on startup and 25x faster than npm for installations. Visit https://bun.com/docs for comprehensive documentation.

When to Use

Use Bun when:

  • Running scripts: Execute TypeScript/JavaScript files directly without compilation steps (bun run file.ts)
  • Managing dependencies: Install, add, remove, or update packages faster than npm/yarn/pnpm (bun install, bun add)
  • Bundling code: Build JavaScript/TypeScript for browser or server targets with bun build
  • Testing: Run Jest-compatible tests with built-in test runner (bun test)
  • Building full-stack apps: Bundle server and client code together into single executables
  • Monorepo workflows: Use workspaces and filtering to manage multiple packages
  • Replacing Node.js: Run any Node.js-compatible code with better performance

Do not use Bun for: type checking (use tsc separately), generating type declarations, or projects requiring exact Node.js compatibility for native modules.

Quick Reference

Essential Commands

TaskCommandNotes
Run TypeScript filebun run file.tsTranspiles on-the-fly; omit run for short form
Run package scriptbun run devExecutes script from package.json
Install dependenciesbun installCreates bun.lock lockfile
Add packagebun add reactAdds to dependencies; use -d for dev
Remove packagebun remove reactRemoves from package.json and node_modules
Run testsbun testFinds *.test.ts, *.spec.ts files automatically
Build bundlebun build./src/index.ts --outdir./distBundles with tree-shaking, minification optional
Watch modebun --watch run file.tsRe-runs on file changes
Create projectbun initScaffolds new project with templates

Configuration File: bunfig.toml

Located at project root or ~/.bunfig.toml (global). Optional but useful for customization.

[install]
dev = true                    # Install devDependencies
optional = true               # Install optionalDependencies
peer = true                   # Install peerDependencies
linker = "hoisted"           # "hoisted" or "isolated" (pnpm-style)
saveTextLockfile = true      # Use text bun.lock instead of binary

[serve]
port = 3000                  # Default port for Bun.serve()

[test]
root = "."                   # Test root directory
coverage = false             # Enable coverage reporting
timeout = 5000               # Per-test timeout in ms
preload = ["./setup.ts"]     # Scripts to run before tests

[run]
shell = "system"             # "system" or "bun" (Windows defaults to "bun")
bun = true                   # Auto-alias node to bun in scripts

File Types Supported

Bun natively handles: .js, .jsx, .ts, .tsx, .json, .jsonc, .toml, .yaml, .html, .css, .wasm, .node. No configuration needed—just import and use.

Key Bun APIs

APIPurposeExample
Bun.serve()Start HTTP serverBun.serve({port: 3000, fetch: handler})
Bun.file()Read/write filesawait Bun.file("path.txt").text()
Bun.write()Write to diskawait Bun.write("out.txt", data)
Bun.build()Bundle codeawait Bun.build({entrypoints, outdir})
Bun.TranspilerTranspile codenew Bun.Transpiler({loader: "tsx"})
Bun.spawn()Run child processBun.spawn(["ls", "-la"])

Decision Guidance

When to Use Hoisted vs Isolated Linker

ScenarioUseReason
New monorepo/workspacesisolatedPrevents phantom dependencies, stricter isolation
New single-package projecthoistedTraditional npm behavior, simpler
Existing project (pre-v1.3.2)hoistedBackward compatibility
Migrating from pnpmisolatedMatches pnpm's approach

Set in bunfig.toml: linker = "isolated" or via CLI: bun install --linker isolated

When to Use bun build vs bun run

Use CaseToolWhy
Execute TypeScript directlybun runFast transpilation, no output files
Prepare for productionbun buildMinification, tree-shaking, bundling
Ship single executablebun build --compileCreates standalone binary
Development serverbun run + Bun.serve()Hot reload, fast iteration

When to Use --concurrent in Tests

ScenarioUse --concurrentReason
Independent async testsYesParallel execution speeds up suite
Tests with shared stateNoUse test.serial() for order-dependent tests
Database/API testsMaybeOnly if tests don't interfere
Unit testsYesUsually safe and faster

Workflow

1. Initialize a Project

bun init my-app
cd my-app

Choose template: Blank, React, or Library. Creates package.json, tsconfig.json, .gitignore.

2. Install Dependencies

bun install

Reads package.json, downloads packages, creates bun.lock. Much faster than npm.

3. Add Packages

bun add react
bun add -d @types/react typescript

Updates package.json and bun.lock automatically.

4. Write and Run Code

# Create index.ts
echo "console.log('Hello Bun!')" > index.ts

# Run it
bun run index.ts

Bun transpiles TypeScript on-the-fly; no build step needed.

5. Create HTTP Server

// server.ts
const server = Bun.serve({
  port: 3000,
  fetch(req) {
    return new Response("Hello!");
  },
});
console.log(`Listening on ${server.url}`);
bun run server.ts

6. Write Tests

// math.test.ts
import { test, expect } from "bun:test";

test("2 + 2 = 4", () => {
  expect(2 + 2).toBe(4);
});
bun test

Finds and runs all *.test.ts files automatically.

7. Bundle for Production

bun build ./src/index.ts --outdir ./dist --minify

Outputs optimized bundle to dist/. Use --target browser|node|bun to control output format.

8. Create Standalone Executable

bun build ./cli.ts --outfile mycli --compile
./mycli

Bundles code + Bun runtime into single executable; no dependencies needed.

Common Gotchas

  • Lifecycle scripts disabled by default: Bun doesn't run postinstall scripts for security. Add trusted packages to trustedDependencies in package.json to allow them.
  • bun run vs bun <script>: If a built-in Bun command exists with the same name, use bun run <script> explicitly to run package.json scripts.
  • Watch mode flag placement: Use bun --watch run file.ts, not bun run file.ts --watch. Flags after the filename are passed to the script itself.
  • TypeScript errors on Bun global: Install @types/bun and add "lib": ["ESNext"] to tsconfig.json compilerOptions.
  • Lockfile format: Bun v1.2+ uses text bun.lock by default (not binary bun.lockb). Commit to version control.
  • Auto-install disabled in CI: Set install.auto = "disable" in bunfig.toml for production to prevent unexpected package downloads.
  • Node.js compatibility: Bun implements most Node.js APIs but not all. Check docs for node: module support before relying on Node-specific code.
  • Bundler always bundles: Unlike esbuild, bun build always bundles by default. Use Bun.Transpiler to transpile individual files without bundling.
  • No type checking in bundler: bun build does not type-check. Run tsc --noEmit separately for type validation.
  • Peer dependencies installed by default: Unlike npm, Bun installs peer dependencies automatically. Set peer = false in bunfig.toml to disable.

Verification Checklist

Before submitting work with Bun:

  • Run bun install to verify dependencies resolve without errors
  • Run bun run <script> to test main entry point
  • Run bun test and verify all tests pass
  • Run bun build and check output files exist in outdir
  • Verify bun.lock is committed to version control (not .gitignored)
  • Check bunfig.toml for any environment-specific settings that should be removed
  • Confirm no node_modules folder is committed (should be in .gitignore)
  • Test with --production flag if building for deployment: bun install --production
  • Verify TypeScript files have no type errors: bun run tsc --noEmit (if tsc installed)
  • Check that package.json "type": "module" is set for ESM projects

Resources

Comprehensive navigation: https://bun.com/docs/llms.txt — Page-by-page listing of all Bun documentation.

Critical pages:

  1. Bun Runtime — Execute files, scripts, and manage the runtime
  2. Package Manager — Install, add, remove packages and manage dependencies
  3. Bundler — Bundle JavaScript/TypeScript for production
  4. Test Runner — Write and run Jest-compatible tests
  5. bunfig.toml — Configure Bun's behavior

For additional documentation and navigation, see: https://bun.com/docs/llms.txt

平台分布

Local Agent

93.2%
按下载量换算15,508

安全审计

Socket

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills