Works with the AI Agents you already use
Python CLI Design Review (argparse, Typer, Click)
by Saizul Amin
This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.
$4
Python CLI Design Review (argparse, Typer, Click)
Example session with this skill installed
Run the Python CLI Design Review skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the python cli design
Here is what the Python CLI Design Review (argparse, Typer, Click) skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/cli-design/bad_cli.py:9: LOW no-description: ArgumentParser() without description; --help says nothing -> description=...
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/cli-design/bad_cli.py:18: LOW input-no-tty: input() prompt hangs in CI and pipes -> add --yes and check sys.stdin.isatty()
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/cli-design/bad_cli.py:24: MEDIUM exit-range: exit code outside 0-255 is truncated by the OS -> use 0-125; 1 failure, 2 usage
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/cli-design/bad_cli.py:15: MEDIUM error-stdout: error message printed to stdout corrupts piped output -> print(..., file=sys.stderr)
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/cli-design/bad_cli.py:16: MEDIUM exit-builtin: exit()/quit() come from the site module and are missing under python -S -> sys.exit()
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/cli-design/bad_cli.py:21: MEDIUM shell-true: subprocess with shell=True: arguments can inject commands -> pass a list of arguments
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/cli-design/bad_cli.py:22: HIGH os-exit: os._exit() skips cleanup, atexit handlers and buffered output -> return an exit code from main()
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/cli-design/bad_cli.py:11: INFO filetype: argparse.FileType opens files at parse time and never closes them -> type=Path, open later
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/cli-design/bad_cli.py:20: MEDIUM destructive-no-dry-run: deletes or overwrites files but has no --dry-run -> add --dry-run and --yes
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/cli-design/bad_cli.py:0: LOW no-version: no --version option -> argparse action='version' / click.version_option()
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/cli-design/bad_cli.py:0: INFO no-json: no machine-readable output option -> add --json (stdout) for scripting
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/cli-design/bad_cli.py:10: LOW no-main-guard: script runs code at import time (no __main__ guard) -> if __name__ == '__main__': ...
2 files, 12 findings, 6 at or above medium
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Design and review Python command-line tools with argparse, click or typer - command and subcommand structure, flags vs arguments, --help text with examples, --version, --json machine-readable output, stdout for data and stderr for diagnostics, stdin via "-", exit codes (0 ok, 1 failure, 2 usage, 130 interrupted), --dry-run and --yes for destructive actions, -v/-q logging, config precedence (flags > env > config file > defaults), TTY detection and console-script entry points. Ships a copy-ready argparse template and an AST audit script that flags exit()/os._exit, out-of-range exit codes, errors printed to stdout, missing --version or --json, input() prompts that hang in CI, destructive commands without --dry-run and shell=True.
Who it's for
Use when the user builds a new CLI, adds a subcommand, asks argparse vs click vs typer, wants a CLI reviewed, or reports that a tool breaks in pipes, cron or CI.
What's inside
- Tested, offline Python script(s): cli_audit.py (deterministic results, standard library only unless noted)
- Reference guides: frameworks.md, conventions.md
- Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow
Why it's worth it
Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.
Works with every major AI agent
Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.
Requirements
- Python 3.8+ for the bundled scripts
- No API keys, no account, runs locally
Open source: saizul/python-dev-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python 3.8+