cli-author
Installation
SKILL.md
CLI Authoring Skill
Write professional Node.js command-line tools using zero-dependency patterns.
Core Principles
| Principle | Description |
|---|---|
| Zero Dependencies | Use Node.js built-ins only (util.parseArgs, readline, fs) |
| Fail Fast | Validate arguments early, exit with clear errors |
| Exit Codes | 0 = success, 1 = user error, 2 = system error |
| Respect Environment | NO_COLOR, TERM, CI detection |
| Unix Philosophy | Single purpose, composable with pipes |
Argument Parsing with util.parseArgs
Node.js 18+ includes native argument parsing: