Cli Design
Agent-first CLI design skill with HATEOAS JSON responses, context-protecting output, and self-documenting command trees.
- CCM score
- 64 of 100
- skills.sh installs
- 151
- GitHub stars
- 68
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the response envelope, contextual
next_actionstemplates, self-documenting command trees, output truncation, and error fix suggestions - Defines an
ok/command/result/next_actionsschema withparamsfor placeholders, defaults, and enums, and requires JSON-only output with no--jsonflag - Enforces a rule that every subcommand carries a
Command.withDescription()so--helplists are useful to agents - Designed for building or reviewing agent-friendly CLIs, such as the joelclaw CLI built on
@effect/cli
Install
$ npx -y skills add joelhooks/joelclaw --skill cli-design -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Agent-First CLI Design
CLIs in this system are agent-first, human-distant-second. Every command returns structured JSON that an agent can parse, act on, and follow. Humans are welcome to pipe through jq.
Core Principles
1. JSON always
Every command returns JSON. No plain text. No tables. No color codes. Agents parse JSON; they don't parse prose.
# This is the ONLY output format
joelclaw status
# → { "ok": true, "command": "joelclaw status", "result": {...}, "next_actions": [...] }
No --json flag. No --human flag. JSON is the default and only format.
2. HATEOAS — every response tells you what to do next
Every response includes next_actions — an array of command templates the agent can run next. Templates use standard POSIX/docopt placeholder syntax:
<placeholder>— required argument[--flag <value>]— optional flag with value[--flag]— optional boolean flag- No
paramsfield — literal command (run as-is) paramspresent — template (agent fills placeholders)params.*.value— pre-filled from context (agent can override)params.*.default— value if omittedparams.*.enum— valid choices
Details
- Repository
- github.com/joelhooks/joelclaw
- Categories
- CLI & Terminal, Backend & APIs, AI Agents & LLM Apps
- First seen
- Jun 3, 2026
Questions
What does the cli-design skill do?
The cli-design skill helps build agent-first command-line tools with HATEOAS JSON responses, context-protecting output, and self-documenting command trees. It also covers adding commands to existing CLIs such as joelclaw, and reviewing CLI design for agent-friendliness.
How do I install the cli-design skill?
Run npx -y skills add joelhooks/joelclaw --skill cli-design -y in a project to install it. Once installed, the agent can design new CLI tools and review command-line tool creation tasks.
Which skills lead the CLI & Terminal category?
The cli-design skill sits in the CLI & Terminal category on Claude Marketplaces, alongside herdr, gws-shared, opentui, cf-cli and pnpm. It stands out by requiring every command to return JSON with next_actions the agent can follow.
More from joelhooks/joelclaw
All 2Similar to Cli Design
More CLI & Terminalcli-for-agentsSkillcursor/plugins1.4K installsNon-interactive CLI design guide that helps coding agents run commands reliably without prompts or manual dumps.
ai-friendly-cliPlugindashed/claude-marketplace27 starsBuild and refactor CLIs for AI agent compatibility. Use when making CLI tools machine-readable with structured JSON output, input hardening, schema introspectio
create-cliSkillsteipete/agent-scripts665 installsDesign-first CLI spec covering args, flags, help, output, errors, config, and dry-run, human- and script-friendly.
cli-creatorSkillopenai/skills3.6K installsComposable CLI builder for Codex that turns API docs, OpenAPI specs, or scripts into durable commands.
axiSkillkunchenguid/axi5.1K installsAgent-facing CLI standards covering token-efficient output, structured errors, and session context for autonomous agents.
agent-dx-cli-scaleSkillgoogle-labs-code/design.md166 installsEvaluates any CLI against agent-first design principles using a 0-3 score across seven axes, totaling 21.