Agent-Friendly CLI Design
Optimizes command-line interfaces for reliable use by AI agents through non-interactive patterns, discoverable help, and automation-friendly structures.
This skill provides a comprehensive framework for designing and reviewing Command Line Interfaces (CLIs) that AI agents can navigate and execute reliably. It shifts the focus from human-centric interactive menus to headless-first patterns, emphasizing the use of non-interactive flags, layered help documentation with copy-pasteable examples, and idempotent operations. By implementing these patterns, developers ensure that Claude and other coding agents can discover commands incrementally, handle errors through actionable feedback, and chain utilities together in pipelines without getting stuck in interactive loops or exhausting context windows.