cursor avatar

Cli For Agents

If you're building a CLI that agents or automation will actually call, this skill helps you design (or audit) it with the right defaults: every action expressible as flags, help text with copy-pasteable examples, stdin support, fast errors that show the correct invocation, idempotency so retries don't blow up, and dry-run modes. It pushes you toward non-interactive first, then fallback to prompts, which is the opposite of most developer tooling. The reviewable checklist alone is worth having around. Use it when you're adding commands, writing help text, or when someone mentions CI, scripts, or agent-friendly interfaces.

skills.sh installs
1.4K
GitHub stars
15.9K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/cursor/plugins
Category
CLI & Terminal
First seen
Jun 23, 2026

More from cursor/plugins

All 47
1rudrankriyam avatarasc-cli-usagerudrankriyam/asc-skillsasc cli usage1.4Kskills.sh installs
2sickn33 avatarbash-scriptingsickn33/antigravity-awesome-skillsbash scripting1.4Kskills.sh installs
3hyva-themes avatarhyva-exec-shell-cmdhyva-themes/hyva-ai-toolsUtility skill to detect Magento development environment and determine command wrapper. This skill should be used by other skills that need to execute shell comm1.3Kskills.sh installs
4netease avatarncm-cli-setupnetease/skills安装和配置 ncm-cli(网易云音乐 CLI 工具)。当用户需要安装 ncm-cli、配置 API Key、安装 mpv 播放器,或排查安装问题时,使用此 skill。1.3Kskills.sh installs
5aradotso avatarcorridorkey-green-screenaradotso/trending-skillscorridorkey green screen1.3Kskills.sh installs
6tinybirdco avatartinybird-cli-guidelinestinybirdco/tinybird-agent-skillsTinybird CLI commands, workflows, and operations. Use when running tb commands, managing local development, deploying, or working with data operations.1.3Kskills.sh installs