Skip to content
cursor avatar

Cli For Agents

Non-interactive CLI design guide that helps coding agents run commands reliably without prompts or manual dumps.

CCM score
62 of 100
skills.sh installs
1.4K
GitHub stars
20.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers flag-only input, layered --help with copy-pasteable examples, stdin and pipeline support, and fast actionable errors
  • Includes guidance on idempotency, --dry-run previews, --yes/--force bypasses, consistent resource-plus-verb structure, and structured success output
  • Enforces a rule that every input is expressible as a flag, with interactive prompts used only as a fallback when flags are missing
  • Designed for building new CLIs, adding commands, writing help text, or auditing an existing CLI for agent compatibility

Install

$ npx -y skills add cursor/plugins --skill cli-for-agents -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

CLI for agents

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.

Non-interactive first

  • Every input should be expressible as a flag or flag value. Do not require arrow keys, menus, or timed prompts.
  • If flags are missing, then fall back to interactive mode—not the other way around.

Bad: mycli deploy → ? Which environment? (use arrow keys)
Good: mycli deploy --env staging

Discoverability without dumping context

  • Agents discover subcommands incrementally: mycli, then mycli deploy --help. Do not print the entire manual on every run.
  • Let each subcommand own its documentation so unused commands stay out of context.

--help that works

  • Every subcommand has --help.
  • Every --help includes Examples with real invocations. Examples do more than prose for pattern-matching.
Options:
  --env     Target environment (staging, production)
  --tag     Image tag (default: latest)
  --force   Skip confirmation

Details

Repository
github.com/cursor/plugins
Categories
CLI & Terminal, AI Agents & LLM Apps
First seen
Jun 23, 2026

Questions

What does the cli-for-agents skill do?

It guides the design or review of command-line tools so coding agents can run them reliably. It covers non-interactive flags, layered help with examples, stdin and pipelines, fast actionable errors, idempotency, dry-run and predictable command structure.

Who is the cli-for-agents skill for?

It is for developers building a CLI, adding commands, writing --help text, or reviewing an existing CLI for automation-friendly use. The skill triggers when a user mentions agents, terminals or automation-friendly CLIs.

How do I install the cli-for-agents skill?

Run npx -y skills add cursor/plugins --skill cli-for-agents -y in a project. Once installed, the agent can check a CLI for a non-interactive path, examples on --help, error messages with invocations, and dry-run support.

Where does cli-for-agents rank in its category?

It is listed in the CLI & Terminal category on Claude Marketplaces, where it ranks in the top 100. It is designed to help a CLI work for agents, rather than for humans typing at prompts.

More from cursor/plugins

All 93

Similar to Cli For Agents

More CLI & Terminal