Skip to content

Reference guidelines for building UNIX-style command-line tools with POSIX conventions, exit codes, and stream handling.

CCM score
50 of 100
skills.sh installs
337
GitHub stars
228
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers 44 rules across 8 categories, from argument design and exit codes to signals and configuration, ordered by impact
  • Includes per-rule reference files with explanations and code examples, plus category definitions and a template for new rules
  • Guides decisions on stdout versus stderr, NO_COLOR support, XDG config paths, and handling of SIGINT, SIGTERM, and SIGPIPE
  • Designed for writing, reviewing, or designing CLI tools that must integrate cleanly with the UNIX tool chain

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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)

Details

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

Questions

What does the unix-cli skill do?

The unix-cli skill gives UNIX command-line interface guidelines for building tools that follow POSIX conventions, proper exit codes, stream handling, and the UNIX philosophy. It covers 44 rules across eight categories, from argument and flag design to signals and configuration.

Who should use the unix-cli skill and when does it apply?

The unix-cli skill is for developers and AI agents writing, reviewing, or designing command-line tools in any language. It applies to tasks involving command-line arguments, exit codes, stdout and stderr, signals, or shell scripts.

How do I install the unix-cli skill?

Run npx -y skills add pproenca/dot-skills --skill unix-cli -y in your project. After that, the agent can apply the unix-cli rules when it writes or reviews CLI code, such as choosing exit codes and deciding what goes to stdout versus stderr.

Where does unix-cli stand in the CLI and Terminal category?

The unix-cli skill is listed in the CLI and Terminal category on Claude Marketplaces, alongside herdr, gws-shared, opentui, cf-cli and pnpm. It stands apart by focusing on POSIX conventions and how tools fit the UNIX tool chain.

More from pproenca/dot-skills

All 100

Similar to Unix Cli

More CLI & Terminal