cli-builder

Automate TypeScript CLI tool creation with Bun scaffolding and argument parsing.

1|1|Updated Dec 19, 2025
One-click install
npx skills add https://github.com/johnlindquist/config --skill cli-builder-johnlindquist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-builder
Source: https://github.com/johnlindquist/config/tree/main/opencode/skill/cli-builder
Command: npx skills add https://github.com/johnlindquist/config --skill cli-builder-johnlindquist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Developers who need to create small to medium command-line tools waste time wiring argument parsing, subcommands, and distribution. This Skill provides a Bun-based scaffold and practical guidance to accelerate building TypeScript CLIs.

Core Features & Use Cases

  • Scaffold CLI projects with Bun and TypeScript, including a minimal bin script.
  • Demonstrate robust argument parsing, subcommand patterns, and output formatting.
  • Show how to package, test, and distribute a CLI for local use and public deployment.

Quick Start

To experiment immediately, create a minimal CLI script and run it with Bun, for example bun scripts/my-tool.ts hello

Frequently Asked Questions about cli-builder

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

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

Build a TypeScript CLI with Bun by using a scaffold that automates argument parsing, subcommand patterns, and shell execution. This provides a minimal bin script and Bun-based runtime to accelerate project setup.

What's the best way to structure subcommands in a Bun CLI tool?

Structure subcommands in a Bun CLI tool using established patterns for argument parsing and output formatting. This approach provides a minimal scaffold demonstrating robust subcommand routing for developer utilities.

How do I package and distribute a CLI tool built with Bun?

Package and distribute a CLI tool built with Bun by following configuration guidance for local use and public deployment. This includes scaffolding the bin script and setting up distribution for your TypeScript utility.

Can I use this Bun CLI scaffold for project management utilities?

Yes, you can use this Bun CLI scaffold for project management utilities. It targets developers building project management CLIs, tools with subcommands, or general developer utilities with TypeScript.

Do I need any external libraries to parse arguments for my Bun CLI?

No external libraries are required to parse arguments for your Bun CLI. This Skill provides a Bun-based runtime with built-in guidance for robust argument parsing without additional dependencies.

Why choose Bun over Node.js for building command-line tools?

Choose Bun for building command-line tools to leverage its fast runtime for TypeScript execution. This Skill provides a minimal CLI scaffold optimized for Bun to accelerate building reliable project utilities.