Loading...
Loading...
UNIX command-line interface guidelines for building tools that follow POSIX conventions, proper exit codes, stream handling, and the UNIX philosophy. This skill should be used when writing, reviewing, or designing CLI tools to ensure they integrate properly with the UNIX tool chain. Triggers on tasks involving CLI tools, command-line arguments, exit codes, stdout/stderr, signals, or shell scripts.
npx skill4agent add pproenca/dot-skills unix-cli| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Argument & Flag Design | CRITICAL | |
| 2 | Exit Codes | CRITICAL | |
| 3 | Output Streams | CRITICAL | |
| 4 | Error Handling | HIGH | |
| 5 | I/O & Composition | HIGH | |
| 6 | Help & Documentation | MEDIUM-HIGH | |
| 7 | Signals & Robustness | MEDIUM | |
| 8 | Configuration & Environment | MEDIUM | |
args-use-getoptargs-provide-long-optionsargs-support-double-dashargs-require-help-versionargs-prefer-flags-over-positionalargs-use-standard-flag-namesargs-never-read-secrets-from-flagsargs-support-option-bundlingexit-zero-for-successexit-use-standard-codesexit-signal-codesexit-partial-successexit-distinguish-error-typesoutput-stdout-for-dataoutput-stderr-for-errorsoutput-detect-ttyoutput-provide-machine-formatoutput-line-based-textoutput-respect-no-colorerror-include-program-nameerror-actionable-messageserror-use-strerrorerror-avoid-stack-traceserror-validate-earlyio-support-stdinio-write-to-stdoutio-be-statelessio-handle-binary-safelyio-atomic-writesio-handle-multiple-fileshelp-show-usage-on-errorhelp-structure-help-outputhelp-show-defaultshelp-include-exampleshelp-version-formatsignal-handle-sigintsignal-handle-sigtermsignal-handle-sigpipesignal-cleanup-on-second-interruptconfig-follow-xdgconfig-precedence-orderconfig-env-namingconfig-never-store-secretsconfig-respect-standard-vars| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |