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 Tools?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ansh44233-cli-tools)
---
description: Build command-line tools with clear help, stable flags, proper exit codes, machine-readable output and good errors
profile: full
tags: cli, developer-tools, ux
---
# CLI tools
A CLI is an API for humans and scripts at the same time.
## Interface
- Use a parser library (commander, yargs, click, typer, cobra, clap) with `--help` and `--version`.
- Flags over positional args for anything optional; consistent names (`--dry-run`, `--json`, `--yes`).
## Behavior
- Exit 0 on success, non-zero on failure, distinct codes for distinct failures.
- Results to stdout, logs and progress to stderr; `--json` for scripts; no color when not a TTY or with `NO_COLOR`.
- Confirm destructive actions unless `--yes`; support `--dry-run`.
## Errors
- Say what went wrong and how to fix it; no stack traces unless `--verbose`.
## Verify
Tests run the CLI as a subprocess for success, invalid input (non-zero exit, helpful stderr) and `--json` output parsing.