From superfast
Executes scripts, tests, and builds codebases using the Bun JavaScript runtime, swapping npm/node commands for bun equivalents.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superfast:bun-executionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Bun is a high-performance JavaScript runtime, bundler, and test runner. When operating in a high-value enterprise codebase that has chosen Bun over Node.js, standard Node execution commands (`npm run`, `npx`, `node`) will often fail or discard the performance benefits of the Bun engine. This skill defines the deterministic execution patterns required to interact natively with Bun environments.
Bun is a high-performance JavaScript runtime, bundler, and test runner. When operating in a high-value enterprise codebase that has chosen Bun over Node.js, standard Node execution commands (npm run, npx, node) will often fail or discard the performance benefits of the Bun engine. This skill defines the deterministic execution patterns required to interact natively with Bun environments.
bun.lockb or bunfig.toml in the repositorypackage.json scripts are explicitly prefixed with bunnpm install or npm run dev fails due to module resolution or package manager conflicts.ts / .tsx) files directly without a standard TSC compilation stepWhen interacting with a Bun repository, the standard Node vocabulary must be aggressively swapped:
| Standard Node.js | Bun Execution |
|---|---|
npm install | bun install |
npm run test | bun test |
npx tsc | bunx tsc |
node script.js | bun run script.js or bun script.ts |
npm install <pkg> | bun add <pkg> |
Direct TypeScript Execution
Bun natively executes .ts and .tsx files. You do not need to invoke tsc or ts-node to run a script. This massively accelerates the Subagent-Driven Development loop.
bun run src/index.ts
Ultra-Fast Testing Bun includes a native test runner heavily compatible with Jest expect patterns. When running Test-Driven Development cycles, always use the Bun test runner instead of booting a Jest process:
bun test
# Run a specific file
bun test src/utils.test.ts
Package Management
Bun's package manager is vastly faster than npm/yarn. Never use npm install inside a Bun repository, as it breaks the resolution lockfile.
bun add lodash
bun add -d typescript @types/node
npm install blindly: This generates a rogue package-lock.json and pollutes the dependency tree, destroying the native bun.lockb resolution hierarchy. Fix: Delete the package-lock.json immediately and run bun install.ts-node: Executing npx ts-node script.ts inside a Bun repository is a critical anti-pattern. Use bun run script.ts.fs, path) have highly optimized Bun counterparts (Bun.file(), Bun.write()). Only refactor to Bun.* APIs if specifically tasked to optimize; otherwise, standard Node modules will usually work.If you catch yourself doing any of the following in a Bun repository, stop and immediately pivot to the Bun equivalent:
npm install or yarn installts-node or ts-jest compilation loopspackage-lock.json file inside a directory containing bun.lockbViolating the letter of these rules is violating the spirit of high-performance environment execution.
npx claudepluginhub fastbuilderai/superfastCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.