Skip to content

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers the response envelope, contextual next_actions templates, self-documenting command trees, output truncation, and error fix suggestions
  • Defines an ok/command/result/next_actions schema with params for placeholders, defaults, and enums, and requires JSON-only output with no --json flag
  • Enforces a rule that every subcommand carries a Command.withDescription() so --help lists 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 -y

Installs 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 params field — literal command (run as-is)
  • params present — template (agent fills placeholders)
  • params.*.value — pre-filled from context (agent can override)
  • params.*.default — value if omitted
  • params.*.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 2

Similar to Cli Design

More CLI & Terminal