mcpField
U
unix-cli

unix-cli

github.com/pproencaDevelopment218322 installsUpdated 11w ago
Repository

About unix-cli

A UNIX/POSIX CLI development guide for AI agents and LLMs. It organizes conventions for arguments, exit codes, output streams, and other concerns by priority, for building or reviewing tools in any language.

Key features

  1. 01Guidance across eight CLI categories
  2. 02Rules prioritized by impact
  3. 03Argument and exit-code design
  4. 04Output-stream and error handling
  5. 05Signal and environment conventions

Use cases

  1. 01Designing command-line arguments and flags
  2. 02Choosing stdout versus stderr
  3. 03Selecting exit codes and handling signals
  4. 04Reviewing CLI convention compliance

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill unix-cli

After installing, type/unix-cliin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

metadata.json
assets/templates/
_template.md
references/
_sections.md
args-never-read-secrets-from-flags.md
args-prefer-flags-over-positional.md
args-provide-long-options.md
args-require-help-version.md
args-support-double-dash.md
args-support-option-bundling.md
args-use-getopt.md
args-use-standard-flag-names.md
config-env-naming.md
config-follow-xdg.md
config-never-store-secrets.md
config-precedence-order.md
config-respect-standard-vars.md
error-actionable-messages.md
error-avoid-stack-traces.md
error-include-program-name.md
error-use-strerror.md
error-validate-early.md
exit-distinguish-error-types.md
exit-partial-success.md
exit-signal-codes.md
exit-use-standard-codes.md
exit-zero-for-success.md
help-include-examples.md
help-show-defaults.md
help-show-usage-on-error.md
help-structure-help-output.md

Details

From the project README

UNIX/POSIX Standards CLI Best Practices

Comprehensive guidelines for building command-line tools that follow UNIX conventions, designed for AI agents and LLMs. Contains 44 rules across 8 categories, prioritized by impact from critical (argument handling, exit codes, output streams) to incremental (configuration and environment).

When to Apply

Reference these guidelines when:

  • Writing new CLI tools in any language
  • Parsing command-line arguments and flags
  • Deciding what goes to stdout vs stderr
  • Choosing appropriate exit codes
  • Handling signals like SIGINT and SIGTERM

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Argument & Flag DesignCRITICALargs-
2Exit CodesCRITICALexit-
3Output StreamsCRITICALoutput-
4Error HandlingHIGHerror-
5I/O & CompositionHIGHio-
6Help & DocumentationMEDIUM-HIGHhelp-
7Signals & RobustnessMEDIUMsignal-
8Configuration & EnvironmentMEDIUMconfig-

Quick Reference

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)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Comments

Markdown supported