What problem does it solve?
This Skill provides a robust framework and set of principles for designing and building command-line interfaces (CLIs) that are optimized for agent interaction, ensuring structured, predictable, and actionable output.
Core Features & Use Cases
- Agent-First Design: Prioritizes machine-readable JSON output with HATEOAS-style
next_actions for seamless agent integration.
- Self-Documenting Commands: The root command provides a complete, discoverable tree of all available commands and their usage.
- Context-Protected Output: Ensures that large outputs are truncated and provide pointers to full data, respecting agent context windows.
- Error Handling: Standardized error responses include machine-readable codes and human-readable fixes.
- Use Case: When developing a new CLI tool or enhancing an existing one (like
joelclaw, slog, or igs) to be easily consumable by AI agents, ensuring consistent and predictable interactions.
Quick Start
Use the cli-design skill to build a new CLI tool with agent-friendly output.