bun-toolkit
JS/TS/JSX toolkit with Bun awareness. Use when using Bun as a runtime, test runner, or package manager in JavaScript and TypeScript projects.
- License 许可
- Unlicense
- 所属仓库
- saski/arnesto
- 最近更新
- 2026-11-12
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- bun-toolkit
- description
- JS/TS/JSX toolkit with Bun awareness. Use when using Bun as a runtime, test runner, or package manager in JavaScript and TypeScript projects.
03 SKILL.md 正文
Bun Toolkit
Bun is a fast, all-in-one JavaScript runtime and toolkit.
Core Features
- Runtime: Fast JS/TS runtime, drop-in replacement for Node.js.
- Package Manager:
bun installis significantly faster thannpmoryarn. - Test Runner:
bun testprovides a fast, Jest-compatible testing environment. - Bundler:
bun buildfor bundling JS/TS for the web or other runtimes.
Common Commands
bun init # Start a new project
bun install # Install dependencies
bun add <package> # Add a package
bun run <script> # Run a package.json script
bun <file.ts> # Run a TS/JS file directly
bun test # Run tests
bun build ./index.ts --outdir ./build # Build for production
Awareness & Best Practices
- TypeScript Support: Bun supports
.tsand.tsxfiles out of the box. No separate compilation step needed. - Environment Variables: Automatically loads
.envfiles. Access viaprocess.envorBun.env. - Fast I/O: Use
Bun.file(path)andBun.write(path, content)for high-performance file operations. - HTTP Server: Use
Bun.serve({ fetch(req) { ... } })for an extremely fast built-in web server. - SQLite: Built-in high-performance SQLite driver via
import { Database } from "bun:sqlite".
When to use Bun Toolkit
- When the project has a
bun.lockbfile. - When the user mentions "Bun".
- When performance is a priority for JS/TS tasks (installing, testing, running).
- For quick JS/TS scripts that need high performance.
04 同仓库更多 Skills
visualize
Use /visualize for creating compact charts, diagrams, or other visuals inline as part of the conversation itself. It chooses among Markdown tables, Mermaid, inline HTML, and other supported in-transcript forms. Use Canvas for durable artifacts outside the transcript that users may revisit, refine, or share.
update-cursor-settings
Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.
update-cli-config
View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.
statusline
Configure a custom status line in the CLI. Use when the user mentions status line, statusline, statusLine, CLI status bar, prompt footer customization, or wants to add session context above the prompt.
split-to-prs
Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.
shell
Runs the rest of a /shell request as a literal shell command. Use only when the user explicitly invokes /shell and wants the following text executed directly in the terminal.