
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-codeInstalls 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, thenmycli 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
--helpincludes 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- Cursor Sdk1.3K
- Orchestrate1.2K
- Docs Canvas1.2K
- Create Plugin Scaffold1.2K
- Review Plugin Submission1.2K
- Ralph Loop1K
- Create Learning Path1K
- Run Learning Retrospective925
- Check Agent Compatibility4
- Unslop34.1K
- Thermo Nuclear Code Quality Review23.9K
- Deslop10.2K
- Typescript Best Practices10K
- Blast Radius7.1K
- How6.7K
- Why6.5K
- Arena5.7K
- Architect5.6K
- Interrogate5.3K
- Show Me Your Work5K
- Figure It Out4.7K
- Setup Pstack4.6K
- Reflect4.5K
- Automate Me4.3K