Builds Python CLIs with correct exit codes, stream discipline, and distributable entry points. Covers argparse, typer, click, packaging, and signal handling.
A good CLI is a function with a stable contract: arguments in, exit code out, data on stdout, diagnostics on stderr.
argparse for stdlib-only tools and
scripts; typer when you want subcommands, type-hint parsing, and help
generation with minimal code; click when you need its ecosystem
(plugins, complex composition). Do not hand-parse sys.argv.main(argv=None) parses and calls a
pure function that takes plain values and returns data or raises. This
makes the CLI testable without subprocess calls:
assert run(["--json"]) == 0.tool | jq must never choke on a log line. Offer
--json for machine consumers and keep the human format for terminals
(sys.stdout.isatty() decides the default).sys.exit(code). Let genuine bugs traceback;
swallowing them hides your own defects.KeyboardInterrupt in main, exit 130. Wrap SIGPIPE-prone output
(head closing the pipe) by catching BrokenPipeError and exiting 0.[project.scripts] tool = "pkg.cli:main". Users install with
uv tool install . or pipx and get tool on PATH; no python tool.py
instructions, no if __name__ execution of package modules.--version printed from
package metadata (importlib.metadata.version), -h with one-line
examples of the two most common invocations.--config path or use
platformdirs locations, or two runs will differ for invisible reasons.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Three short reads, in order
1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch./accessible-formsBuild forms with associated labels, identified errors, clear instructions, and autocomplete attributes. Use when creating or auditing forms for accessibility./actions-securityPrevent workflow automation from becoming an attack path, through pinned actions, scoped tokens, and careful handling of untrusted input. Use when workflows handle secrets or run on pull requests from forks./agent-accountability-loopTrack every commitment from assignment to completion, chasing what is late and escalating what is stuck, so work finishes rather than fading. Use when things are agreed in meetings and quietly never happen.Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commandsOther plugins' skills for the same job