cli

Scaffold command-line applications with argument parsing and shell completions.

26|8|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/arbazkhan971/godmode --skill cli-arbazkhan971
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli
Source: https://github.com/arbazkhan971/godmode/tree/main/skills/cli
Command: npx skills add https://github.com/arbazkhan971/godmode --skill cli-arbazkhan971

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many projects need consistent, discoverable, and well-behaved command-line tools but lack best-practice scaffolding for argument parsing, interactive prompts, configuration, completions, and cross-platform distribution. This Skill reduces developer friction by providing concrete architecture, UX rules, and distribution strategies so CLIs are testable, automatable, and pleasant for end users.

Core Features & Use Cases

  • Language-specific scaffolds for Node.js/TypeScript, Rust, Go, and Python with recommended file layouts and parser choices.
  • Argument parsing & UX guidance for commands, flags, subcommands, boolean semantics, and machine-readable --json output.
  • Interactive prompts & TUI patterns including prompt validation, multi-selects, progress indicators, and TTY-safe behavior.
  • Configuration & XDG compliance with format recommendations (TOML/YAML/JSON) and per-platform path handling.
  • Shell completion & distribution instructions for bash, zsh, fish, PowerShell, npm/Homebrew/pip/cargo packaging and release steps.
  • Auto-detection & testing recommendations for CI-friendly non-interactive modes, --yes flags, and integration tests for CLI behavior.
  • Use case: scaffold a TypeScript CLI using Commander, add completions and --json output, and publish via npm and Homebrew.

Quick Start

Scaffold a TypeScript CLI with Commander, add interactive prompts, generate bash and zsh completions, and run integration tests.

Frequently Asked Questions about cli

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

FAQPage Schema
How do I scaffold a CLI tool with argument parsing and shell completion?

To scaffold a CLI tool, this Skill provides language-specific file layouts and parser recommendations for Node.js, Rust, Go, and Python, alongside instructions for generating bash, zsh, and fish shell completions.

Does this CLI guidance support interactive prompts and TUI workflows?

Yes, this CLI guidance supports interactive prompts and TUI workflows by providing patterns for prompt validation, multi-selects, progress indicators, and TTY-safe behavior to ensure reliable terminal user interfaces.

What is the best way to manage configuration files for a command-line application?

The best way to manage command-line configuration files is following XDG compliance standards, using recommended formats like TOML, YAML, or JSON, and implementing per-platform path handling.

How do I package and distribute a CLI tool across different platforms?

To package and distribute a CLI tool, this Skill delivers concrete steps for npm, Homebrew, pip, and cargo packaging, ensuring cross-platform deployment and release strategies are properly executed.

Can I automate command-line application testing in CI environments?

Yes, you can automate command-line testing in CI environments by implementing recommended non-interactive modes, utilizing --yes flags, and running integration tests specifically designed for CLI behavior.

How do I add machine-readable JSON output to my command-line tool?

To add machine-readable JSON output to your command-line tool, this Skill provides argument parsing and UX guidance for implementing a --json flag, ensuring your CLI is testable and automatable.