What problem does it solve?
This Skill helps you package and distribute a pure Python CLI so it installs cleanly from a git URL, runs reliably from the command line or as a module, and supports predictable configuration without manual setup.
Core Features & Use Cases
- One-line installation: Set up a CLI with uv tool install and hatchling-backed project scripts.
- Dual entry points: Make both the installed command and python -m invocation work consistently.
- Default-action subcommands: Design the bare command to behave like the primary serve action while still supporting explicit subcommands.
- Three-tier config resolution: Resolve settings in the order CLI flags, config file, then hardcoded defaults.
- Post-install workflow guidance: Choose the right first-run pattern for init, login, configure, or no setup at all.
- Use case: A team building an internal automation CLI can publish it from git, keep startup behavior consistent, and avoid brittle installation steps.
Quick Start
Use the cli-packaging-patterns skill to design a pure Python CLI that installs with uv, exposes a reliable command entry point, and resolves configuration from flags, files, and defaults.