python-module-cli
Installation
SKILL.md
Python Module CLI
Default Architecture
- Keep domain logic importable and testable (no CLI parsing in core code).
- Keep the CLI layer thin: parse args, assemble config, call core, format output, return an exit code.
- Provide a single
main(argv=None) -> intand a single top-level exit path. - Support
python -m <package>via__main__.py(useful for dev/debug and environments without entry point scripts).
Quick Intake (Ask/Confirm)
- Target Python version and packaging system (
pyproject.toml,src/layout). - Expected users: humans, automation/CI, or both.
- Output contract: human text vs machine-readable (
--json/--format json). - Config sources: flags/env/config file and precedence rules.
- Safety requirements: destructive actions, filesystem writes, secrets handling.
Minimal main pattern: