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.
npx -y skills add cursor/plugins --skill cli-for-agents --agent claude-codeInstalls into .claude/skills of the current project.
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.
Bad: mycli deploy → ? Which environment? (use arrow keys)
Good: mycli deploy --env staging
mycli, then mycli deploy --help. Do not print the entire manual on every run.--help that works--help.--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
Examples:
mycli deploy --env staging
mycli deploy --env production --tag v1.2.3
mycli deploy --env staging --force
cat config.json | mycli config import --stdin).mycli deploy --env staging --tag $(mycli build --output tag-only).Error: No image tag specified.
mycli deploy --env staging --tag <image-tag>
Available tags: mycli build list --output tags
--dry-run (or equivalent) so agents can preview plans before committing.--yes / --force to skip confirmations while keeping the safe default for humans.resource + verb: if mycli service list exists, mycli deploy list and mycli config list should follow the same shape.deployed v1.2.3 to staging
url: https://staging.myapp.com
deploy_id: dep_abc123
duration: 34s
--help, stdin/pipeline story, error messages with invocations, idempotency, dry-run, confirmation bypass flags, consistent command structure, structured success output.sentry/dev
degausai/wonda
github/awesome-copilot
insforge/agent-skills
github/awesome-copilot
breaking-brake/cc-wf-studio