cli-builder

Scaffold TypeScript CLI tools with subcommands and argument parsing using Bun.

1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/ImBIOS/swarm-tools --skill cli-builder-imbios
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-builder
Source: https://github.com/ImBIOS/swarm-tools/tree/main/packages/opencode-swarm-plugin/global-skills/cli-builder
Command: npx skills add https://github.com/ImBIOS/swarm-tools --skill cli-builder-imbios

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

## What problem does it solve? Build TypeScript CLIs with Bun that are quick to scaffold, easy to maintain, and ready for real-world automation.

## Core Features & Use Cases

  • CLI scaffolding for Bun-based TypeScript tools
  • Subcommand patterns, argument parsing, and output formatting
  • Distribution-ready templates and developer tooling workflows

### Quick Start Create a minimal Bun-based CLI template from the guide and run it with your input task.

Frequently Asked Questions about cli-builder

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

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

Scaffolding a TypeScript CLI with Bun is automated using minimal templates that establish subcommand registries and argument parsing. You can quickly generate a distribution-ready tool by applying best-practice patterns for developer workflows and running the provided template.

What is the best way to structure subcommands and argument parsing in a Bun CLI?

The best way to structure subcommands in a Bun CLI is using a subcommand registry pattern. This approach handles argument parsing and output formatting systematically, ensuring your command-line tool remains easy to maintain and ready for real-world automation.

Do I need Bun and TypeScript to build command-line tools with this approach?

Yes, you need both Bun and TypeScript to build command-line tools with this approach. The scaffolding relies specifically on Bun's runtime environment and TypeScript's typing to implement distribution-ready templates and developer tooling workflows.

Can I use this CLI scaffolding for real-world automation and developer workflows?

Yes, you can use this CLI scaffolding for real-world automation and developer workflows. The templates are distribution-ready and include best-practice patterns for UX, testing, and packaging, making the resulting command-line tools quick to scaffold and easy to maintain.

How does Bun compare to other runtimes for building TypeScript command-line tools?

Building TypeScript command-line tools with Bun offers quick scaffolding and distribution-ready templates compared to other runtimes. It specifically applies best-practice patterns for UX, testing, and packaging tailored to Bun's runtime environment.