bun-cc

Scaffold TypeScript CLI scripts and Bun runtime applications with Bun APIs.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/bengous/agents-skills --skill bun-cc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-cc
Source: https://github.com/bengous/agents-skills/tree/main/bun-cc
Command: npx skills add https://github.com/bengous/agents-skills --skill bun-cc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, git, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Provide practical patterns, examples, and operational guidance for building TypeScript command-line tools and small server utilities that run on the Bun runtime, reducing guesswork and integration errors when adopting Bun for CLI apps.

Core Features & Use Cases

  • Guidance for project structure (Bash wrapper + TypeScript implementation), testing with bun:test, and strict TypeScript configuration for reproducible CLI tooling.
  • API and pattern references for Bun Shell ($), Bun.spawn / spawnSync, Bun.file file I/O, Bun.Archive, bun:sqlite, Bun.serve HTTP servers and WebSockets, Bun.build bundling and compiling to executables, and Bun.crypto utilities.
  • Examples ranging from simple file-processing scripts to complex multi-command tools with integration tests, packaging guidance, and cross-platform bundling for production distribution.

Quick Start

Create a Bun TypeScript CLI skeleton that reads an input file, implements pure functions for processing, includes bun:test unit and integration tests, and provides a Bash wrapper for installation.

Frequently Asked Questions about bun-cc

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

FAQPage Schema
How do I scaffold a TypeScript CLI with Bun?

Bun provides a Bash wrapper plus TypeScript implementation pattern to scaffold CLIs, separating entry-point execution from core processing logic. This structure enables strict TypeScript configuration and reproducible command-line tooling with bun:test validation.

How does Bun Shell integration work for TypeScript CLI scripts?

Bun Shell provides the $ template literal syntax to execute shell commands directly within TypeScript CLI scripts. For granular process control, Bun.spawn and spawnSync APIs handle spawning external processes and capturing execution results.

Can I use bun:sqlite for local data storage in a CLI application?

Yes, bun:sqlite provides built-in SQLite database access for CLI applications without external dependencies. You can query and persist local data directly within TypeScript command-line tools using the integrated bun:sqlite module.

What's the best way to test Bun CLI scripts before packaging?

Use the bun:test module to write unit and integration tests validating pure processing functions and shell integration. This ensures CLI logic correctness before packaging with Bun.build for bundling and compiling to standalone executables.

Does Bun support compiling TypeScript CLIs to standalone executables?

Yes, Bun.build compiles TypeScript CLI scripts to standalone executables for production distribution. This cross-platform bundling capability packages command-line tools without requiring the Bun runtime installed on target systems.

Do I need git and jq installed to use Bun CLI scaffolding patterns?

Git and jq are required dependencies for the Bun CLI scaffolding workflow. Git manages version control of the TypeScript implementation, while jq processes JSON data within shell integration and testing pipelines for command-line tools.