Forty-four rules across eight categories for building CLI tools that play nice with pipes, shells, and other UNIX utilities. Critical stuff covers argument parsing, exit codes, and stream handling. Medium priority gets into signal handling and XDG config paths. Each rule links to a reference file with examples. The prioritization is helpful because you can ignore the incremental stuff when prototyping and come back later. Good for when you're writing a new tool from scratch or reviewing someone's CLI that doesn't quite feel right in a pipeline. The separation of stdout for data and stderr for diagnostics alone will save you debugging headaches.

skills.sh installs
326
GitHub stars
222
last updated
Aug 21, 2026

Install

$ npx -y skills add pproenca/dot-skills --skill unix-cli --agent claude-code

Installs into .claude/skills of the current project.

Files

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)

Sponsors

Details

Repository
github.com/pproenca/dot-skills
Categories
Documentation, CLI & Terminal
First seen
Jun 3, 2026

More from pproenca/dot-skills

All 100
1secondsky avatarswift-best-practicessecondsky/claude-skills| This skill should be used when writing or reviewing Swift code for iOS or macOS projects. Apply modern Swift 6+ best practices, concurrency patterns, API desi326skills.sh installs
2gmh5225 avatargame-hacking-techniquesgmh5225/awesome-game-securityGuide for game-hacking technique taxonomy and threat modeling relevant to game security. Use this skill when researching memory access, code injection, overlays325skills.sh installs
3outscal avatarshorts-script-personalityoutscal/video-generatorGenerates hyper-optimized YouTube Shorts/Instagram Reels scripts with personality-specific styles while enforcing strict anti-AI-slop writing rules325skills.sh installs
4vinayakkulkarni avatarnuxt-best-practicesvinayakkulkarni/vue-nuxt-best-practicesNuxt 4 performance optimization and architecture guidelines (current through Nuxt 4.5) for building fast, maintainable full-stack applications. This skill shoul325skills.sh installs
5anthropics avatarbrand-voiceanthropics/knowledge-work-pluginsApply and enforce brand voice, style guide, and messaging pillars across content. Use when reviewing content for brand consistency, documenting a brand voice, a324skills.sh installs
6davila7 avataraeondavila7/claude-code-templatesThis skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation,324skills.sh installs