Unix cli

From pproenca/dot-skills · View interactive version

Unix cli is an AI agent skill from the GitHub repository pproenca/dot-skills. 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 task

How to use this skill

Skill file

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:

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 |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.