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
Own this skill? Claim it
What it does
- Covers flag-only input, layered
--helpwith copy-pasteable examples, stdin and pipeline support, and fast actionable errors - Includes guidance on idempotency,
--dry-runpreviews,--yes/--forcebypasses, 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 -yInstalls 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, 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
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- Ketchup Video1.3K
- Cursor Sdk1.3K
- Orchestrate1.3K
- Docs Canvas1.2K
- Create Plugin Scaffold1.2K
- Review Plugin Submission1.2K
- Ralph Loop1.1K
- Create Learning Path1K
- Run Learning Retrospective935
- Reproduce And Fix Issues882
- Triage Issue Reports859
- Setup Benny845
- Reframe127
- Check Agent Compatibility4
- Unslop39.7K
- Thermo Nuclear Code Quality Review25.4K
- Typescript Best Practices12.3K
- Deslop11.1K
- Blast Radius8.5K
- How7.5K
- Why7.2K
- Technical Writing7K
- Principle Fix Root Causes6.6K
- Principle Prove It Works6.5K
Similar to Cli For Agents
More CLI & Terminalcli-designSkilljoelhooks/joelclaw150 installsAgent-first CLI design skill with HATEOAS JSON responses, context-protecting output, and self-documenting command trees.
cli-referenceSkillparcadei/continuous-claude-v3493 installsComprehensive reference for Claude Code CLI commands, flags, headless mode, and automation patterns with subagent definitions.
create-cliSkillsteipete/agent-scripts511 installsDesign-first CLI spec covering args, flags, help, output, errors, config, and dry-run, human- and script-friendly.
ai-friendly-cliPlugindashed/claude-marketplace27 starsBuild and refactor CLIs for AI agent compatibility. Use when making CLI tools machine-readable with structured JSON output, input hardening, schema introspectio
axiSkillkunchenguid/axi4.9K installsAgent-facing CLI standards covering token-efficient output, structured errors, and session context for autonomous agents.
cli-developerSkilljeffallan/claude-skills5.3K installsGuide for building command-line tools with commander, click, typer, or cobra, covering argument parsing and UX.