Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when building CLI tools, implementing argument parsing, or adding interactive prompts. Invoke for parsing flags and subcommands, displaying progress bars and spinners, generating bash/zsh/fish completion scripts, CLI design, shell completions, and cross-platform terminal applications using commander, click, typer, or cobra.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-17 | ✓→✗ | ▼ Worse | 33% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 33% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 112% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 101% | 0% |
| case-07 | ✓→✓ | = Same ✓ | 66% | 0% |
--help output before writing code.<cli> --help to verify help text renders correctly and <cli> --version to confirm version output.Load detailed guidance based on context:
| Topic | Reference | Load When | |-------|-----------|-----------| | Design Patterns | references/design-patterns.md | Subcommands, flags, config, architecture | | Node.js CLIs | references/node-cli.md | commander, yargs, inquirer, chalk | | Python CLIs | references/python-cli.md | click, typer, argparse, rich | | Go CLIs | references/go-cli.md | cobra, viper, bubbletea | | UX Patterns | references/ux-patterns.md | Progress bars, colors, help text |
js#!/usr/bin/env node // npm install commander const { program } = require('commander'); program .name('mytool') .description('Example CLI') .version('1.0.0'); program .command('greet <name>') .description('Greet a user') .option('-l, --loud', 'uppercase the greeting') .action((name, opts) => { const msg = `Hello, ${name}!`; console.log(opts.loud ? msg.toUpperCase() : msg); }); program.parse();
For Python (click/typer) and Go (cobra) quick-start examples, see references/python-cli.md and references/go-cli.md.
--help and --version flagsjs // Node.js const useColor = process.stdout.isTTY; python # Python import sys use_color = sys.stdout.isatty() go // Go import "golang.org/x/term" useColor := term.IsTerminal(int(os.Stdout.Fd()))
os.homedir() / os.UserHomeDir() / Path.home() instead.When implementing CLI features, provide:
CLI frameworks (commander, yargs, oclif, click, typer, argparse, cobra, viper), terminal UI (chalk, inquirer, rich, bubbletea), testing (snapshot testing, E2E), distribution (npm, pip, homebrew, releases), performance optimization
Other measured skills in the registry, with their headline benchmark lift.