unix-cli

📁 pproenca/dot-skills 📅 Jan 25, 2026
28
总安装量
28
周安装量
#7325
全站排名
安装命令
npx skills add https://github.com/pproenca/dot-skills --skill unix-cli

Agent 安装分布

claude-code 26
codex 23
opencode 23
gemini-cli 21
windsurf 18

Skill 文档

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

Priority Category Impact Prefix
1 Argument & Flag Design CRITICAL args-
2 Exit Codes CRITICAL exit-
3 Output Streams CRITICAL output-
4 Error Handling HIGH error-
5 I/O & Composition HIGH io-
6 Help & Documentation MEDIUM-HIGH help-
7 Signals & Robustness MEDIUM signal-
8 Configuration & Environment MEDIUM config-

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

File Description
references/_sections.md Category definitions and ordering
assets/templates/_template.md Template for new rules
metadata.json Version and reference information