scaffold-cli-command
Installation
SKILL.md
Scaffold a CLI Command
Add a new command to a Commander.js CLI application with consistent option handling, three output modes, and integration tests.
When to Use
- Adding a new command to an existing Commander.js CLI
- Designing a multi-command CLI tool from scratch
- Standardizing command structure so all commands follow the same patterns
- Adding a "ceremony" variant that replaces machine output with warm, narrative output
Inputs
- Required: Command name and verb (e.g.,
gather,audit,sync) - Required: What the command does (one sentence)
- Required: Path to the CLI entry point (e.g.,
cli/index.js) - Optional: Whether the command needs a ceremony variant (warm narrative output)
- Optional: Custom options beyond the standard set
- Optional: Subcommand arguments (positional args like
<name>or[names...])