The create-cli skill provides a rigorous framework for designing and auditing command-line interfaces (CLIs) to ensure they are both human-friendly and optimized for AI agents. It guides developers through defining command structures, flag conventions, and structured output patterns like NDJSON, while applying 'Agent Ergonomics' to reduce tool-call overhead. Whether you are building a new utility from scratch or refactoring an existing tool for better composability, this skill ensures your CLI follows industry best practices for configuration, error handling, and cross-platform distribution.
主要功能
01Language and library recommendations based on distribution needs
02Agent-ergonomic output formatting (JSON/NDJSON) for automation
0352 GitHub stars
04Standardized CLI syntax and flag naming conventions
05Structured error handling and exit code mapping
06Comprehensive CLI audits with severity-based gap reports
使用场景
01Refactoring a legacy CLI to be more compatible with LLMs and scripts
02Designing a complex multi-subcommand developer tool from scratch
03Auditing an existing codebase for CLI consistency and usability gaps