From cli-for-agent
Design or review CLIs so coding agents can run them reliably: non-interactive flags, layered --help with examples, stdin/pipelines, fast actionable errors, idempotency, dry-run, and predictable structure. Use when building a CLI, adding commands, writing --help, or when the user mentions agent-friendly CLIs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cli-for-agent:cli-for-agentsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Human-oriented CLIs often block agents: interactive prompts, huge upfront docs, and help text without copy-pasteable examples. Prefer patterns that work headlessly and compose in pipelines.
Human-oriented CLIs often block agents: interactive prompts, huge upfront docs, and help text without copy-pasteable examples. Prefer patterns that work headlessly and compose in pipelines.
Every input should be expressible as a flag. Do not require arrow keys, menus, or timed prompts. If flags are missing, fall back to interactive — not the other way.
Bad: mycli deploy → ? Which environment? (use arrow keys)
Good: mycli deploy --env staging
Agents discover subcommands incrementally: mycli, then mycli deploy --help. Do not print the entire manual on every run.
--help That WorksEvery subcommand has --help. Every --help includes Examples with real invocations.
Options:
--env Target environment (staging, production)
--tag Image tag (default: latest)
--force Skip confirmation
Examples:
mycli deploy --env staging
mycli deploy --env production --tag v1.2.3
Accept stdin where it makes sense. Avoid odd positional ordering. Support chaining.
On missing required flags: exit immediately with a clear message and a correct example invocation.
Error: No image tag specified.
mycli deploy --env staging --tag <image-tag>
Agents retry often. The same successful command run twice should be safe (no-op or explicit "already done").
Add --dry-run so agents can preview plans. Offer --yes / --force to skip confirmations.
Use consistent patterns: resource + verb. If mycli service list exists, mycli deploy list should follow the same shape.
Return machine-useful data on success: IDs, URLs, durations.
deployed v1.2.3 to staging
url: https://staging.myapp.com
deploy_id: dep_abc123
npx claudepluginhub andersonlimahw/lemon-ai-hub --plugin cli-for-agentDesigns or reviews CLIs so coding agents can run them reliably: non-interactive flags, layered --help with examples, stdin/pipelines, fast actionable errors, idempotency, dry-run, and predictable structure. Use when building a CLI, adding commands, writing --help, or when the user mentions agents, terminals, or automation-friendly CLIs.
Designs CLIs that AI agents can invoke — non-interactive flags, layered help with examples, actionable errors, idempotency, dry-run, and destructive-action safety. Use when building or reviewing a CLI for agent-friendliness.
Designs CLIs for both human users and LLM agents, covering subcommand structure, output streams, exit codes, JSON modes, TTY-aware color, and structured errors. Use when building or refactoring a CLI, adding machine-readable output, or making a tool agent-friendly.