Use when adding commands or flags to a command-line tool: consistent flag names, short help text with an example, clear errors for bad input with the exit code set, machine-readable output on request, and tests that run the built binary with real arguments and check both its output and its exit code.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Cli Arguments?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/autonomous-ai-cli-arguments)
---
name: cli-arguments
description: "Use when adding commands or flags to a command-line tool: consistent flag names, short help text with an example, clear errors for bad input with the exit code set, machine-readable output on request, and tests that run the built binary with real arguments and check both its output and its exit code."
---
Follow the existing naming of commands and flags. Validate arguments up front and print what was wrong and the correct form. Exit non-zero on failure. Machine-readable output stays stable for scripts. Keep the help text short and update it in the same change.