Token导航 LogoToken导航

Agent Skill · 研究检索

bun(Bun 运行时)

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

bun 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 71,089。

总安装 196周安装 8GitHub Stars 1下载 63核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/miketromba/skills --skill bun

这个 Skill 是做什么的

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

bun 用于查找、检索和筛选相关信息。适合根据关键词、任务场景或来源线索快速定位候选结果。通过 npx skills add 命令从指定仓库安装并使用该技能。安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。bun 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/bun

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/miketromba/skills --skill bun;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

bun 怎么安装?

在终端执行 npx skills add https://github.com/miketromba/skills --skill bun。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

bun 支持哪些 AI 工具?

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

bun 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

bun 是免费的吗?

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

bun 用的人多吗?

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

bun 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 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 运行时 · 本页

1961接触敏感数据未明确有提醒

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

SKILL.md 原文

Bun

Bun is an all-in-one toolkit for developing, bundling, testing, and running JavaScript and TypeScript applications. It includes a fast runtime, native bundler, package manager, and test runner.

Research Process

To answer questions about Bun, spawn a sub-agent to conduct thorough documentation research.

Launch a Research Sub-Agent

Use the Task tool to spawn a sub-agent dedicated to Bun documentation research. Do NOT specify a model (use the default model for comprehensive research quality).

Critical: Provide the sub-agent with a highly detailed prompt that includes:

  1. Goal - What you are ultimately trying to accomplish
  2. Context - Why you need this information and how it fits into the larger task
  3. Specific Questions - Exactly what information you need answered
  4. Output Requirements - The format and level of detail needed in the response

Task Tool Configuration

Task tool parameters:
- description: "Research Bun docs"
- subagent_type: "generalPurpose"
- model: (DO NOT SPECIFY - use default for thorough research)
- readonly: true
- prompt: (see template below)

Prompt Template for Sub-Agent

Structure your prompt to the research sub-agent as follows:

You are researching Bun documentation to help with a specific task.

## Your Research Goal
[Describe exactly what you need to accomplish with this information]

## Context
[Explain why you need this information and how it will be used]

## Specific Questions to Answer
[List the specific questions that need to be answered]

## Research Process

1. First, fetch the documentation index to see all available resources:
   URL: https://bun.com/docs/llms.txt

   This file lists all documentation pages organized by category.

2. Based on the questions above, identify and fetch the most relevant documentation. The docs are organized by topic:

   **Getting Started:**
   - /docs/index.md - Welcome and overview
   - /docs/installation.md - Installation methods (npm, Homebrew, Docker, script)
   - /docs/quickstart.md - Build your first app
   - /docs/typescript.md - TypeScript configuration

   **Runtime:**
   - /docs/runtime/index.md - Runtime overview and execution
   - /docs/runtime/bun-apis.md - Bun global object and built-in modules
   - /docs/runtime/bunfig.md - bunfig.toml configuration
   - /docs/runtime/environment-variables.md - Environment variables and .env support
   - /docs/runtime/module-resolution.md - Module resolution and imports
   - /docs/runtime/nodejs-compat.md - Node.js compatibility status
   - /docs/runtime/watch-mode.md - --watch and --hot modes
   - /docs/runtime/debugger.md - Debugging with WebKit Inspector
   - /docs/runtime/plugins.md - Runtime plugins
   - /docs/runtime/globals.md - Global objects
   - /docs/runtime/web-apis.md - Web-standard APIs

   **HTTP Server & Networking:**
   - /docs/runtime/http/server.md - Bun.serve HTTP server
   - /docs/runtime/http/routing.md - Route definitions and parameters
   - /docs/runtime/http/websockets.md - Server-side WebSockets
   - /docs/runtime/http/tls.md - TLS/HTTPS configuration
   - /docs/runtime/http/cookies.md - Cookie handling
   - /docs/runtime/http/error-handling.md - Error handling
   - /docs/runtime/networking/fetch.md - Fetch API
   - /docs/runtime/networking/tcp.md - TCP connections
   - /docs/runtime/networking/udp.md - UDP connections
   - /docs/runtime/networking/dns.md - DNS resolution

   **File System & I/O:**
   - /docs/runtime/file-io.md - File I/O APIs
   - /docs/runtime/streams.md - Streams API
   - /docs/runtime/binary-data.md - Binary data handling
   - /docs/runtime/glob.md - File globbing
   - /docs/runtime/archive.md - Tar archives

   **Child Processes & Shell:**
   - /docs/runtime/child-process.md - Bun.spawn and Bun.spawnSync
   - /docs/runtime/shell.md - Bun shell scripting API

   **Database & Storage:**
   - /docs/runtime/sqlite.md - Native SQLite driver
   - /docs/runtime/sql.md - SQL database support (Postgres, MySQL, SQLite)
   - /docs/runtime/redis.md - Native Redis client
   - /docs/runtime/s3.md - S3-compatible object storage

   **Utilities:**
   - /docs/runtime/hashing.md - Password hashing
   - /docs/runtime/semver.md - Semantic versioning API
   - /docs/runtime/color.md - Color formatting
   - /docs/runtime/utils.md - Utility functions
   - /docs/runtime/transpiler.md - JavaScript/TypeScript transpiler
   - /docs/runtime/html-rewriter.md - HTMLRewriter for HTML transformation
   - /docs/runtime/cookies.md - Cookie parsing
   - /docs/runtime/secrets.md - Secrets management

   **Advanced Runtime:**
   - /docs/runtime/ffi.md - Foreign Function Interface
   - /docs/runtime/node-api.md - Node-API native add-ons
   - /docs/runtime/workers.md - Web Workers
   - /docs/runtime/jsx.md - JSX/TSX support
   - /docs/runtime/json5.md - JSON5 support
   - /docs/runtime/yaml.md - YAML support
   - /docs/runtime/jsonl.md - JSONL streaming parser

   **Bundler:**
   - /docs/bundler/index.md - Bundler overview
   - /docs/bundler/fullstack.md - Fullstack dev server
   - /docs/bundler/hot-reloading.md - Hot Module Replacement (HMR)
   - /docs/bundler/html-static.md - HTML & static sites
   - /docs/bundler/css.md - CSS bundling
   - /docs/bundler/loaders.md - Built-in loaders
   - /docs/bundler/plugins.md - Bundler plugins
   - /docs/bundler/macros.md - Bundle-time macros
   - /docs/bundler/minifier.md - Minification
   - /docs/bundler/executables.md - Single-file executables
   - /docs/bundler/bytecode.md - Bytecode caching
   - /docs/bundler/esbuild.md - esbuild migration guide

   **Package Manager:**
   - /docs/pm/bunx.md - bunx (run packages from npm)
   - /docs/pm/workspaces.md - Monorepo workspaces
   - /docs/pm/catalogs.md - Shared dependency versions
   - /docs/pm/lockfile.md - Lockfile format
   - /docs/pm/global-cache.md - Global package cache
   - /docs/pm/isolated-installs.md - Isolated installs (pnpm-style)
   - /docs/pm/lifecycle.md - Lifecycle scripts
   - /docs/pm/scopes-registries.md - Scoped packages and registries
   - /docs/pm/overrides.md - Dependency overrides
   - /docs/pm/npmrc.md - .npmrc support

   **Package Manager CLI:**
   - /docs/pm/cli/install.md - bun install
   - /docs/pm/cli/add.md - bun add
   - /docs/pm/cli/remove.md - bun remove
   - /docs/pm/cli/update.md - bun update
   - /docs/pm/cli/link.md - bun link
   - /docs/pm/cli/publish.md - bun publish
   - /docs/pm/cli/audit.md - bun audit
   - /docs/pm/cli/outdated.md - bun outdated
   - /docs/pm/cli/patch.md - bun patch
   - /docs/pm/cli/why.md - bun why
   - /docs/pm/cli/info.md - bun info
   - /docs/pm/cli/pm.md - bun pm utilities
   - /docs/pm/filter.md - --filter flag for monorepos

   **Test Runner:**
   - /docs/test/index.md - Test runner overview
   - /docs/test/writing-tests.md - Writing tests (describe, it, expect)
   - /docs/test/discovery.md - Test file discovery
   - /docs/test/lifecycle.md - beforeAll, beforeEach, afterEach, afterAll
   - /docs/test/mocks.md - Mock functions and module mocks
   - /docs/test/snapshots.md - Snapshot testing
   - /docs/test/dom.md - DOM testing with happy-dom
   - /docs/test/code-coverage.md - Code coverage
   - /docs/test/configuration.md - Test configuration
   - /docs/test/dates-times.md - Mocking time and dates
   - /docs/test/reporters.md - Test reporters
   - /docs/test/runtime-behavior.md - Test runtime behavior

   **Templating:**
   - /docs/runtime/templating/init.md - bun init
   - /docs/runtime/templating/create.md - bun create

   **Guides - Ecosystem Integrations:**
   - /docs/guides/ecosystem/nextjs.md - Next.js
   - /docs/guides/ecosystem/react.md - React
   - /docs/guides/ecosystem/vite.md - Vite
   - /docs/guides/ecosystem/astro.md - Astro
   - /docs/guides/ecosystem/remix.md - Remix
   - /docs/guides/ecosystem/nuxt.md - Nuxt
   - /docs/guides/ecosystem/sveltekit.md - SvelteKit
   - /docs/guides/ecosystem/qwik.md - Qwik
   - /docs/guides/ecosystem/solidstart.md - SolidStart
   - /docs/guides/ecosystem/hono.md - Hono
   - /docs/guides/ecosystem/elysia.md - Elysia
   - /docs/guides/ecosystem/express.md - Express
   - /docs/guides/ecosystem/docker.md - Docker
   - /docs/guides/ecosystem/drizzle.md - Drizzle ORM
   - /docs/guides/ecosystem/prisma.md - Prisma
   - /docs/guides/ecosystem/mongoose.md - Mongoose
   - /docs/guides/ecosystem/discordjs.md - Discord bot
   - /docs/guides/ecosystem/sentry.md - Sentry
   - /docs/guides/ecosystem/pm2.md - PM2 daemon
   - /docs/guides/ecosystem/systemd.md - systemd daemon
   - /docs/guides/ecosystem/tanstack-start.md - TanStack Start
   - /docs/guides/ecosystem/neon-drizzle.md - Neon Postgres
   - /docs/guides/ecosystem/upstash.md - Upstash Redis

   **Guides - Deployment:**
   - /docs/guides/deployment/vercel.md - Vercel
   - /docs/guides/deployment/railway.md - Railway
   - /docs/guides/deployment/render.md - Render
   - /docs/guides/deployment/digital-ocean.md - DigitalOcean
   - /docs/guides/deployment/aws-lambda.md - AWS Lambda
   - /docs/guides/deployment/google-cloud-run.md - Google Cloud Run

   **Guides - HTTP:**
   - /docs/guides/http/simple.md - Simple HTTP server
   - /docs/guides/http/server.md - Common HTTP server usage
   - /docs/guides/http/fetch.md - Send HTTP requests
   - /docs/guides/http/tls.md - Configure TLS
   - /docs/guides/http/hot.md - Hot reload HTTP server
   - /docs/guides/http/cluster.md - HTTP server cluster
   - /docs/guides/http/file-uploads.md - File uploads with FormData
   - /docs/guides/http/stream-file.md - Stream file as response
   - /docs/guides/http/proxy.md - Proxy HTTP requests

   **Guides - WebSockets:**
   - /docs/guides/websocket/simple.md - Simple WebSocket server
   - /docs/guides/websocket/pubsub.md - Pub/sub WebSocket server
   - /docs/guides/websocket/context.md - Per-socket context data
   - /docs/guides/websocket/compression.md - WebSocket compression

   **Guides - Testing:**
   - /docs/guides/test/run-tests.md - Run tests
   - /docs/guides/test/watch-mode.md - Watch mode
   - /docs/guides/test/coverage.md - Code coverage
   - /docs/guides/test/mock-functions.md - Mock functions
   - /docs/guides/test/snapshot.md - Snapshot testing
   - /docs/guides/test/happy-dom.md - DOM testing
   - /docs/guides/test/testing-library.md - Testing Library
   - /docs/guides/test/migrate-from-jest.md - Migrate from Jest

3. For framework-specific questions, fetch the relevant ecosystem guide.

4. Fetch multiple relevant pages in parallel using WebFetch.

## Required Output
[Specify exactly what format and content you need returned]

Provide a comprehensive response with all findings, including relevant code examples, configuration snippets, and step-by-step instructions where applicable.

Example Usage

If you need to help a user set up an HTTP server:

Task tool prompt:

You are researching Bun documentation to help with a specific task.

## Your Research Goal
Find complete instructions for creating a high-performance HTTP server with Bun.serve, including routing, WebSocket support, and TLS configuration.

## Context
A user wants to build a REST API with WebSocket support using Bun's native HTTP server. They need end-to-end setup instructions.

## Specific Questions to Answer
1. How do you create a basic HTTP server with Bun.serve?
2. How do you define routes with path parameters and wildcards?
3. How do you handle WebSocket connections?
4. How do you configure TLS/HTTPS?
5. How do you handle static files and streaming responses?

## Research Process
1. First fetch https://bun.com/docs/llms.txt for the documentation index
2. Then fetch the HTTP server docs: /docs/runtime/http/server.md, /docs/runtime/http/routing.md, /docs/runtime/http/websockets.md, /docs/runtime/http/tls.md
3. Also fetch /docs/guides/http/simple.md and /docs/guides/websocket/simple.md

## Required Output
Provide step-by-step server setup instructions with all code examples. Include WebSocket integration and TLS configuration.

Example: SQLite Database Integration

Task tool prompt:

You are researching Bun documentation to help with a specific task.

## Your Research Goal
Understand how to use Bun's native SQLite driver for database operations, including queries, transactions, and migrations.

## Context
A user wants to use SQLite as their database with Bun. They need to understand the API and best practices.

## Specific Questions to Answer
1. How do you open a database connection?
2. How do you execute queries with prepared statements?
3. How do you handle transactions?
4. What are the performance characteristics?
5. How do you handle migrations?

## Research Process
1. Fetch https://bun.com/docs/llms.txt for the index
2. Fetch /docs/runtime/sqlite.md for the SQLite driver documentation
3. Fetch /docs/runtime/sql.md for general SQL database support

## Required Output
Provide a comprehensive guide to SQLite usage with code examples for common operations.

Example: Bundler Configuration

Task tool prompt:

You are researching Bun documentation to help with a specific task.

## Your Research Goal
Learn how to configure Bun's bundler for a production build, including code splitting, minification, and plugin development.

## Context
A user wants to bundle their TypeScript application for production with optimal settings.

## Specific Questions to Answer
1. How do you configure the bundler with Bun.build?
2. What loader options are available?
3. How do you create custom plugins?
4. How do you enable code splitting and tree shaking?
5. How do you configure minification?

## Research Process
1. Fetch https://bun.com/docs/llms.txt for the index
2. Fetch bundler docs: /docs/bundler/index.md, /docs/bundler/plugins.md, /docs/bundler/loaders.md, /docs/bundler/minifier.md

## Required Output
Provide bundler configuration guide with examples for common build scenarios.

Example: Test Runner Setup

Task tool prompt:

You are researching Bun documentation to help with a specific task.

## Your Research Goal
Set up Bun's test runner with mocking, snapshots, and code coverage for a TypeScript project.

## Context
A user wants to migrate from Jest to Bun's native test runner while maintaining similar testing patterns.

## Specific Questions to Answer
1. How do you write tests with describe, it, and expect?
2. How do you mock functions and modules?
3. How do you use snapshot testing?
4. How do you configure code coverage?
5. What Jest compatibility features are available?

## Research Process
1. Fetch https://bun.com/docs/llms.txt for the index
2. Fetch test runner docs: /docs/test/index.md, /docs/test/writing-tests.md, /docs/test/mocks.md, /docs/test/snapshots.md, /docs/test/code-coverage.md
3. Fetch /docs/guides/test/migrate-from-jest.md for migration guidance

## Required Output
Provide test runner setup guide with examples for mocking, snapshots, and coverage configuration.

After Receiving Sub-Agent Results

The sub-agent will return comprehensive documentation findings. Use this information to:

  • Answer the user's question accurately
  • Implement the required functionality
  • Provide code examples and configuration directly from official docs

Quick Reference: Common Topics

TopicKey Docs
Getting Started/docs/index.md, /docs/installation.md, /docs/quickstart.md
Runtime Config/docs/runtime/bunfig.md, /docs/runtime/environment-variables.md
HTTP Server/docs/runtime/http/server.md, /docs/runtime/http/routing.md
WebSockets/docs/runtime/http/websockets.md, /docs/guides/websocket/simple.md
File I/O/docs/runtime/file-io.md, /docs/runtime/streams.md
SQLite/docs/runtime/sqlite.md
SQL (Postgres/MySQL)/docs/runtime/sql.md
Redis/docs/runtime/redis.md
S3 Storage/docs/runtime/s3.md
Child Processes/docs/runtime/child-process.md, /docs/runtime/shell.md
Bundler/docs/bundler/index.md, /docs/bundler/plugins.md
Test Runner/docs/test/index.md, /docs/test/writing-tests.md
Package Manager/docs/pm/cli/install.md, /docs/pm/workspaces.md
Node.js Compat/docs/runtime/nodejs-compat.md
Ecosystem/docs/guides/ecosystem/ (Next.js, React, Hono, etc.)
Deployment/docs/guides/deployment/ (Vercel, Railway, etc.)

Bun APIs Quick Reference

APIDescription
Bun.serve()HTTP/WebSocket server
Bun.file()File reference (lazy read)
Bun.write()Write to file
Bun.spawn()Spawn child process
Bun.spawnSync()Synchronous child process
Bun.$Shell scripting API
Bun.build()JavaScript/TypeScript bundler
Bun.TranspilerCode transpiler
Bun.passwordPassword hashing
Bun.envEnvironment variables
Bun.versionBun version string
Bun.sleep()Async sleep
Bun.sleepSync()Sync sleep
Bun.which()Find executable path
Bun.peek()Inspect promise state
Bun.deepEquals()Deep equality check
Bun.escapeHTML()HTML string escaping
Bun.hash()Fast hashing
Bun.gzipSync()gzip compression
Bun.deflateSync()DEFLATE compression
Bun.RedisRedis client
Bun.SQLSQL database client
Bun.S3S3-compatible storage
new Database()SQLite database (bun:sqlite)

Documentation URL

Main documentation index: https://bun.com/docs/llms.txt

平台分布

Codex

33.14%
按下载量换算21

Claude

30.63%
按下载量换算19

Cursor

18.2%
按下载量换算11

Gemini CLI

9.21%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

继续浏览同类 Skills