Skip to content
Skills Library
Programming · Building & coding

cli-ux-design

/cli-ux-design

Design command-line interfaces with predictable flags, honest exit codes, machine-readable modes, and helpful failure text. Use when building CLI tools people other than the author will run.

Repository
AI-SKILLS ↗
Licence
MIT
Last repository change
05.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 05.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Design command-line interfaces with predictable flags, honest exit codes, machine-readable modes, and helpful failure text. Use when building CLI tools people other than the author will run.

Original author description

Design command-line interfaces with predictable flags, honest exit codes, machine-readable modes, and helpful failure text. Use when building CLI tools people other than the author will run.

How it works

  1. Method
  2. Boundaries
Original SKILL.md headings · 67 lines, 460 words
SKILL.md preview
---
name: cli-ux-design
description: Design command-line interfaces with predictable flags, honest exit codes, machine-readable modes, and helpful failure text. Use when building CLI tools people other than the author will run.
---

# CLI UX design

A CLI's users arrive mid-task, read nothing, and paste errors into
search bars. Design for that: guessable conventions, examples before
reference, and every failure message saying what to do next.

## Method

1. **Follow the conventions users already know.**
   `tool <noun> <verb>` (or verb-noun, but pick one) for
   multi-command tools; standard flags where they exist
   (`-h/--help`, `--version`, `-v` verbosity, `-o` output,
   `-f` force, `--dry-run`); long flags for scripts (readable in
   CI logs), short for interactive use. Arguments for the one
   required thing, flags for everything optional; more than two
   positional arguments and nobody remembers the order (see
   boolean-parameters instincts, CLI edition).
2. **Write help as examples first.** The top of `--help`: two or
   three copy-pasteable invocations of the most common tasks,
   then flag reference; `tool <cmd> --help` for depth. A man page
   or docs link for the rest. Users pattern-match examples; they
   do not parse usage grammars (see tutorial-writing's ethic in
   miniature).
3. **Separate the streams and the modes.** Results to stdout,
   progress/diagnostics to stderr (pipeable by construction;
   see python-cli-tools, bash-robustness); `--json` for machine
   consumers with a stable schema treated as an API (see
   api-change-management: scripts depend on it); detect TTY to
   choose human formatting (colors, tables, progress bars) vs
   plain output, with `NO_COLOR`/`--no-color` respected.
4. **Exit codes are the contract.** 0 success; 1 operational
   failure; 2 usage error; distinct codes for outcomes scripts
   branch on (diff-style "found differences" vs "error"),
   documented in help. Interrupts exit 130 cleanly with
   partial-state cleaned or reported (see graceful-shutdown at
   process scale).
5. **Make failure text actionable.** Error = what failed + the
   specific input + the next step: `config not found at
   ~/.tool/config.yml: run 'tool init' to create it`. Suggest
   near-miss corrections ("unknown command 'buidl', did you mean
   'build'?"). Never a bare stack trace for expected failures
   (see error-messages; traces are for bugs, behind `--debug`).
6. **Respect the environment and the guardrails.** Config
   precedence: flags > env vars (`TOOL_*`) > project config >
   user config, documented (see environment-config); secrets
   only via env/files, never flags (process lists leak; see
   secrets-management). Destructive operations: `--dry-run`
   support, explicit confirmation or `--yes` for automation
   (see automation-guardrails); long operations: progress to
   stderr and safe Ctrl-C. Keep startup fast (<100ms to first
   output or a spinner); a sluggish `--help` poisons the whole
   tool's feel (see startup-time).

## Boundaries

- Full-screen interactive TUIs (pickers, dashboards) are a
  different medium with different rules; a CLI may *offer* an
  interactive mode but every capability stays scriptable
  non-interactively (CI has no keyboard).
- Prompting for missing input is a convenience for TTYs only;
  when stdin is not a TTY, missing required input is an error,
  not a hang.
- Shell completion scripts are high-leverage polish once flags
  stabilize; generate them from the parser definition rather
  than hand-maintaining (see python-cli-tools frameworks).

Versions

The database has no other skills named cli-ux-design.

Database snapshot: 13.11.2026 · package version 3f683772f688 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100cli
    CLI application design: argument conventions, output streams, exit codes, configuration hierarchy, interactive modes, and terminal UX. Invoke whenever task involves any interaction with command-line tools or terminal applications — building, reviewing, debugging, or designing CLI interfaces.
  • 100cli-tool-design
    Design command-line interfaces with clear argument parsing, subcommands, help text, output formatting, and exit codes. Covers Click, Typer, argparse, and shell completion. Triggers on CLI tool development, argument parsing, or terminal UX design requests.
  • 100python-cli-tools
    Build Python command-line tools with correct exit codes, stream discipline, and a distributable entry point. Use when writing or packaging a CLI in Python.
  • 100creating-cli-tools
    Design command-line interface parameters and UX: arguments, flags, subcommands, help text, output formats, error messages, exit codes, prompts, config/env precedence, and safe/dry-run behavior. Use when you’re designing a CLI spec (before implementation) or refactoring an…
  • 100cli-design
    Design and review command-line interfaces for usability, automation, safety, accessibility, and long-term compatibility. Use when adding or changing commands, flags, help, output, prompts, configuration, or exit behavior.
  • 100create-cli
    This skill should be used when the user asks to "design a CLI", "create command-line interface", "design CLI parameters", "plan CLI UX", or needs help structuring command-line tool interfaces with proper arguments, flags, subcommands, and user experience patterns.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.