Bun Spawn
Spawn child processes with `Bun.spawn` or `Bun.spawnSync`
Install
npx skills add jarle/bun-skills --skill Bun Spawngit clone --depth 1 https://github.com/jarle/bun-skills.git /tmp/bun-skills
mkdir -p ~/.claude/skills
cp -r /tmp/bun-skills/skills/bun-runtime-child-process ~/.claude/skills/Bun-SpawnPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Spawn
> Spawn child processes with `Bun.spawn` or `Bun.spawnSync`
## Spawn a process (`Bun.spawn()`)
Provide a command as an array of strings. The result of `Bun.spawn()` is a `Bun.Subprocess` object.
```ts theme={"theme":{"light":"github-light","dark":"dracula"}}
const proc = Bun.spawn(["bun", "--version"]);
console.log(await proc.exited); // 0
```
The second argument to `Bun.spawn` is a parameters object that can be used to configure the subprocess.
```ts theme={"theme":{"light":"github-light","dark":"dracula"}}
const proc = Bun.spawn(["bun", "--version"], {
cwd: "./path/to/subdir", // specify a working directory
env: { ...process.env, FOO: "bar" }, // specify environment variables
onExit(proc, exitCode, signalCode, error) {
// exit handler
},
});
proc.pid; // process ID of subprocess
```
## Input stream
By default, the input stream of the subprocess is undefined; it can be configured with the `stdin` parameter.
```ts theme={"theme":{"light":"github-light","dark":"dracula"}}
const proc = Bun.spawn(["cat"], {
stdin: await fetch("https://raw.githubusercontent.com/oven-sh/bun/main/examples/hashing.js"),
});
const text = await proc.stdout.text();
console.log(text); // "const input = "hello world".repeat(400); ..."
```
| Value | Description |
| ------------------------ | ------------------------------------------------ |Details
- Skill name
Bun Spawn- Repository
- jarle/bun-skills
- Path
skills/bun-runtime-child-process/SKILL.md- License
- MIT
- Repo updated
- 24 February 2026
FAQ
What does the Bun Spawn skill do?
Spawn child processes with `Bun.spawn` or `Bun.spawnSync`
How do I install the Bun Spawn skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jarle/bun-skills --skill Bun Spawn. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Bun Spawn popular?
It lives in jarle/bun-skills, which has 9 GitHub stars and 1 forks.
Related skills
Bun Archive
9jarle/bun-skills
Create and extract tar archives with Bun's fast native implementation
Bun Auto Install
9jarle/bun-skills
Bun's automatic package installation feature for standalone script execution
Bun Bun Add
9jarle/bun-skills
Add packages to your project with Bun's fast package manager
Bun Standalone HTML
9jarle/bun-skills
Bundle a single-page app into a single self-contained .html file with no external dependencies
Bun Server
9jarle/bun-skills
Use `Bun.serve` to start a high-performance HTTP server in Bun
Bun Start a Cluster of HTTP Servers
9jarle/bun-skills
Run multiple HTTP servers concurrently via the "reusePort" option to share the same port across multiple processes
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.