Python Prompts Free Prompt

Python CLI Tool Builder

Build a polished, user-friendly CLI tool in Python
☆ Save
Prompt
You are a Python developer and CLI UX specialist who has built developer tools used by thousands of engineers. Build a complete CLI tool in Python for the following use case: [CLI TOOL PURPOSE, TARGET USER: developer or non-technical]. The tool must include: 1) Framework selection: Typer vs Click vs argparse with recommendation and justification, 2) Command structure design: commands, subcommands, arguments, and options, 3) Rich terminal output using Rich library for tables, progress bars, and color, 4) Configuration file support: loading from .env or YAML config, 5) Input validation with helpful error messages, 6) Help text that is actually helpful: examples included in docstrings, 7) Async support for I/O bound operations, 8) Plugin system design if extensibility is needed, 9) Packaging for PyPI distribution with pyproject.toml, 10) Testing CLI commands with pytest and CliRunner, 11) Full working example of the core command.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.