Agent-Friendly CLI Design
Optimizes command-line interfaces for dual compatibility with human users and AI agents to improve reliability and reduce token costs.
The CLI Design skill provides a robust framework for building and refactoring command-line tools that work seamlessly for both humans and LLM agents. It addresses the critical 'two-reader' challenge, ensuring that outputs are clean for pipes and machine-readable for agents while remaining intuitive for interactive terminal use. By implementing standards for stream discipline, structured JSON output, and deterministic error codes, this skill helps developers eliminate common failure modes such as terminal hangs and ANSI corruption, ultimately making tools up to 35 times more token-efficient for AI-driven workflows.