Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Gives best-practice guidance for building and improving command-based CLIs usable by both humans and AI agents, excluding TUI and GUI apps.
77% 91%+14 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 17 of 22 without it.
3 of 3 safety checks passed
Not used yet
Build command-line tools that are delightful for humans at a terminal AND reliable for AI agents in automation pipelines. These goals are orthogonal, not conflicting.
This skill targets command-based CLIs (think git, docker, gh, kubectl) — tools with subcommands, flags, and structured output. It is not about full-screen TUI applications or interactive dashboards.
NOT for: TUI/full-screen terminal apps, GUI applications, REST/GraphQL API design, shell scripting
Human DX optimizes for discoverability and forgiveness. Agent DX optimizes for predictability and defense-in-depth. A great CLI does both.
The Golden Rule: Output that tells you what to do next. Every command's output — success or failure — should give the user (human or AI agent) enough context to know what their next action should be. An agent reading your CLI's output should be able to continue its workflow without guessing.
flowchart LR
H[Human at Terminal] --> TTY{stdout is TTY?}
A[AI Agent] --> TTY
TTY -->|Yes| RICH[Rich: colors, tables,\nprogress bars, prompts]
TTY -->|No| CLEAN[Clean: JSON, no ANSI,\nno prompts, parseable]
RICH --> CORE[Same data, same exit codes,\nsame semantics]
CLEAN --> CORE
stdout -> primary output (results, JSON, file contents) — for piping
stderr -> errors, warnings, progress, diagnostics, prompts — for humans
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.