unix-cli

安装量: 69
排名: #11120

安装

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

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

| 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

| references/_sections.md | Category definitions and ordering

| assets/templates/_template.md | Template for new rules

| metadata.json | Version and reference information

返回排行榜