
Agent Dx Cli Scale
This is a scoring rubric for evaluating how well any CLI is designed for AI agents rather than humans. It covers seven dimensions: machine-readable output, raw payload input, schema introspection, context window discipline, input hardening, safety rails, and agent knowledge packaging. Each axis scores 0 to 3, giving you a total out of 21. The scoring is opinionated and assumes agents fail differently than humans (they hallucinate resource IDs, not typos), so it rewards things like rejecting path traversals and percent-encoded segments. Use it when you're building or auditing a CLI that agents will actually call, not just wrap in a tool description.
- skills.sh installs
- 166
- GitHub stars
- 28.8K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add google-labs-code/design.md --skill agent-dx-cli-scale --agent claude-codeInstalls into .claude/skills of the current project.
Files
Agent DX CLI Scale
Use this skill to evaluate any CLI against the principles of agent-first design. Score each axis from 0–3, then sum for a total between 0–21.
Human DX optimizes for discoverability and forgiveness. Agent DX optimizes for predictability and defense-in-depth. — You Need to Rewrite Your CLI for AI Agents
Scoring Axes
1. Machine-Readable Output
Can an agent parse the CLI's output without heuristics?
| Score | Criteria |
|---|---|
| 0 | Human-only output (tables, color codes, prose). No structured format available. |
| 1 | --output json or equivalent exists but is incomplete or inconsistent across commands. |
| 2 | Consistent JSON output across all commands. Errors also return structured JSON. |
| 3 | NDJSON streaming for paginated results. Structured output is the default in non-TTY (piped) contexts. |
2. Raw Payload Input
Sponsors
Details
- Repository
- github.com/google-labs-code/design.md
- Categories
- AI & Agent Building, Design & UI/UX, CLI & Terminal
- First seen
- Jun 3, 2026