What problem does it solve?
This Skill prevents command-line tools from breaking scripts and pipelines by enforcing UNIX/POSIX conventions for argument parsing, exit codes, and stdout/stderr separation.
Core Features & Use Cases
- Argument & Flag Design: Define options clearly (prefer flags, support long options, use standard parsing libraries) so automation stays reliable.
- Exit Codes & Error Semantics: Return 0 only for success and use standard exit-code conventions, including signal-based termination codes (128+N).
- Composable I/O Behavior: Keep data on stdout and diagnostics on stderr, support stdin/stdout filtering patterns, and adapt interactive output to TTY using NO_COLOR rules.
- Best-fit scenarios: Use it when designing or reviewing tools that will be used in shells, CI pipelines, batch processing, or as filters in UNIX pipelines.
Quick Start
Use the unix-cli skill to review your CLI’s behavior on exit codes, stdout/stderr usage, and help/usage output before releasing it.