bunsh

Execute TypeScript/JavaScript tasks in Bash using Bun here-strings.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/raystyle/skills --skill bunsh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bunsh
Source: https://github.com/raystyle/skills/tree/main/skills/bunsh
Command: npx skills add https://github.com/raystyle/skills --skill bunsh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill standardizes and streamlines the execution of small TypeScript/JavaScript tasks in Bash by using Bun's built-in here-string mechanism, reducing boilerplate and errors.

Core Features & Use Cases

  • Deterministic here-string task execution with explicit task/step annotations.
  • Built-in Bun API usage guidance (fetch, Bun.file, bun:sqlite, zod, cheerio) and safe I/O patterns.
  • Use cases include quick scripting, small automation, data transformation, and ETL-like workflows in Bash environments.

Quick Start

Run a TS/JS snippet using Bun's here-string workflow.

Frequently Asked Questions about bunsh

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I execute TypeScript inside a Bash script?

You can execute TypeScript inside a Bash script by using Bun's here-string mechanism with the `bun run` command, which allows quick scripting and small automation tasks without creating separate files.

What is the best way to run quick ETL-like operations with Bun in Bash?

Running ETL-like operations with Bun in Bash is best handled by passing deterministic TypeScript tasks through here-strings, leveraging built-in Bun APIs like `Bun.file` and `bun:sqlite` for data transformation.

Can I use Bun built-in APIs like fetch and zod inside Bash here-strings?

Yes, you can use Bun built-in APIs like `fetch`, `Bun.file`, `bun:sqlite`, `zod`, and `cheerio` directly inside Bash here-strings to handle safe I/O and data parsing within your automation workflows.

Does Bun here-string execution require external dependencies for Bash automation?

Bun here-string execution forbids unsafe hacks and external dependencies outside the documented workflow, preferring built-in APIs to ensure deterministic TypeScript task execution and reduce boilerplate errors.

When should I not use Bun here-strings for TypeScript scripting?

You should not use Bun here-strings for TypeScript scripting if your task requires external dependencies outside the documented workflow or unsafe hacks, as the mechanism enforces deterministic execution using only built-in APIs.