AGENT SKILL

bun-runtime

Evaluate, run, or migrate Bun projects with explicit runtime, dependency, and deployment compatibility checks.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 1
Forks
0

01 前言 Front Matter

name
bun-runtime
description
Evaluate, run, or migrate Bun projects with explicit runtime, dependency, and deployment compatibility checks.

02 资源文件 3

03 SKILL.md 正文

Bun runtime and package manager

Before repository work, read and apply Mandatory agent tools in the repository root at docs/agent-tools.md: Caveman for every task, CocoIndex Code before broad code navigation, and Crawl4AI for web-page research. Retain actual execution evidence.

Inspect the project's existing runtime requirements, package manager, lockfile, scripts, deployment target, and tests before choosing Bun or changing a Node project. Keep the current toolchain unless the requested change justifies migration. Check compatibility for the actual dependencies and APIs and run the project's relevant tests under the intended runtime. Bun implements many Node APIs but is not behaviorally identical; do not infer compatibility or speed for a particular application without measurement.

Use the project's documented, supported Bun version and package scripts. Run a focused check first, then the relevant build, tests, integration checks, and deployment qualification. Measure performance with representative workloads and controlled conditions when performance is the reason for a change. Report versions, commands, results, and limitations.

When showing environment-variable commands, use syntax for the user's actual shell. An inline assignment such as FOO=bar bun run script.ts works in a POSIX shell but fails in PowerShell; use PowerShell's $env:FOO = 'bar'; bun run script.ts there. Scope the variable appropriately for the user's session.

For a locked install, first verify that the intended project lockfile exists, is the one the deployment consumes, and corresponds to the manifest and workspace. Then use the project's documented frozen-install command, such as bun install --frozen-lockfile. Bun 1.4.4 can succeed without creating a lockfile when none exists, so the flag alone is not evidence of a locked install. Bun can also migrate supported non-Bun lockfiles in memory; check the current documentation and preserve existing project files during any migration. Do not generate or replace a lockfile without the requested scope and verification.

Vercel's Bun runtime is documented as beta. When targeting it, check the current Vercel documentation, supported framework, runtime constraints, and accepted bunVersion values in vercel.json; qualify the exact application before deployment. Do not assume that selecting a package manager also selects the function runtime, or that a local run proves deployment compatibility.

The original upstream skill is preserved at provenance/original.SKILL.md. This maintained overlay corrects selected compatibility, lockfile, and deployment guidance. Component controls do not measure agent effectiveness.

04 同仓库更多 Skills

strmt7
strmt7/ai_skills_collection_benchmarked

makefile-generator-project-wrappers

Repair Python, Java and generic GNU Make wrappers that report false success, miss changed inputs or clean dependency environments. Preserve the actual project build system and test runner; use when adapting the collection's original Makefile generator.

★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

makefile-generator-go

Author or repair GNU Make wrappers for Go modules, retaining Go's dependency discovery and build cache. Use when wrapper timestamps hide embedded-resource changes or build failures; preserve the project's existing build system and real test commands.

★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

strategic-compact-resume

Checkpoint and resume long agent work when context pressure or a handoff could lose constraints, verified progress, or ownership of active jobs.

★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

makefile-generator-cpp

Author or repair GNU Make builds for C++ executables, preserving compiler/linker flags, header dependencies and real project test contracts. Use the optional scaffold for a flat src directory; retain an existing build system unless the task requires changing it.

★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

eval-harness-integrity

Design and verify matched coding-agent evaluations when comparing skills, prompts, models, or harnesses using executable acceptance checks and native result evidence.

★ 1
strmt7
strmt7/ai_skills_collection_benchmarked

eval-harness-evidence

Design and verify matched coding-agent evaluations when comparing skills, prompts, models, or harnesses using executable acceptance checks and native result evidence.

★ 1