addiplus/claude-skill-pack/bun-shell
Claude Code and agent skill by addiplus/claude-skill-pack
- community
Checking that the SKILL.md file is still in the repository.
Cross-platform shell scripting with Bun's $ template literal. Use for build scripts, file manipulation, git automation, deployment tasks, and any shell commands. Keywords: bun shell, cross-platform, scripting, automation, $ template, build, deploy, git, file operations.
Install
npx vskill@latest install addiplus/claude-skill-pack/bun-shellSKILL.md
The same SKILL.md was published earlier as addiplus/claude-skill-pack/bun-shell.
Bun Shell Scripting
Cross-platform bash-like shell scripting in JavaScript/TypeScript using Bun's $ template literal API.
Documentation: bun.sh/docs/runtime/shell
Quick Start
Core Syntax
Template Literal Execution
Output Methods
| Method | Returns | Auto-Quiet | |
|---|---|---|---|
.text() | Promise<string> | Yes | |
.json() | Promise<T> | Yes | |
.lines() | AsyncIterable<string> | Yes | |
.blob() | Promise<Blob> | Yes | |
.bytes() | Promise<Uint8Array> | Yes | |
.arrayBuffer() | Promise<ArrayBuffer> | Yes |
Configuration Methods
Error Handling
Built-in Commands (Cross-Platform)
These work on Windows, macOS, and Linux without system dependencies:
| Command | Description | |
|---|---|---|
cd | Change directory | |
ls | List files | |
rm | Remove files/dirs | |
cat | Display file contents | |
echo | Print text | |
pwd | Print working directory | |
mkdir | Create directory | |
mv | Move/rename (partial) | |
touch | Create empty file | |
which | Locate command | |
exit | Exit with code | |
true / false | Return 0/1 | |
basename / dirname | Path manipulation | |
seq | Generate sequences | |
yes | Repeat string |
Environment Variables
Glob Patterns
Raw Strings (Disable Escaping)
Redirection
Global Configuration
Comparison with Alternatives
| Feature | Bun Shell | zx | execa | |
|---|---|---|---|---|
| Runtime | Bun only | Node.js, Deno | Node.js | |
| Approach | New shell impl | Wrapper around system shell | Pure JS, no shell | |
| Performance | 20x faster than zx | Baseline | Similar to zx | |
| Cross-platform | Yes (built-ins) | Requires extra packages | Yes | |
| Dependencies | 0 (built-in) | Several | 12+ | |
| Security | Auto-escapes | Auto-escapes | Manual escaping | |
| Streaming | Limited | Full | Full |
Limitations
- No real-time streaming:
.lines()waits for command completion - Context isolation: Each
await $runs in fresh context (cd doesn't persist) - mv partial: Missing cross-device support
- Windows: 98% test parity (edge cases may differ)
Best Practices
- Always await:
$returns a promise, not immediate execution - Use .nothrow() for optional commands: Prevents script crashes
- Prefer built-ins:
rm,ls, etc. are faster than PATH commands - Use .cwd() instead of cd: Maintains context for the command
- Escape is default: Trust the auto-escaping, use raw only when needed
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bun-shell/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/addiplus/claude-skill-pack/bun-shell)