From python3-development
Guides Typer/Rich CLI development and review with patterns for non-TTY output, table rendering, pytest testing, and exception handling.
npx claudepluginhub jamie-bitflight/claude_skills --plugin python3-developmentThis skill uses the workspace's default tool permissions.
<user_input>$ARGUMENTS</user_input>
assets/nested-typer-exceptions/nested-typer-exception-explosion.pyassets/nested-typer-exceptions/nested-typer-exception-explosion_corrected_rich_console.pyassets/nested-typer-exceptions/nested-typer-exception-explosion_corrected_typer_echo.pyassets/nested-typer-exceptions/nested-typer-exception-explosion_naive_workaround.pyassets/python-cli-demo.pyassets/typer_examples/console_containers_no_wrap.pyassets/typer_examples/console_no_wrap_example.pyassets/typer_examples/index.mdreferences/exception-handling.mdreferences/non-tty-patterns.mdreferences/rich-tables.mdreferences/testing-patterns.mdGuides Typer and Rich best practices for Python CLI apps, covering non-TTY output, table rendering, testing patterns, exception handling, and integration pitfalls.
Provides Python CLI patterns using Typer for commands/groups/options and Rich for tables, progress bars, panels, and error handling in terminal apps.
Builds CLI applications with Typer: creates commands, defines arguments/options, composes subcommands, tests with CliRunner, handles parameter types, callbacks, and autocompletion.
Share bugs, ideas, or general feedback.
<user_input>$ARGUMENTS</user_input> If <user_input/> contains a directory or file then that is what should be examines against this guide specifically. Start immediately. If its empty, then use this as a reference for existing tasks.
Correctness patterns for building CLI applications with Typer and Rich, focused on non-TTY environments and common failure modes. For API reference, load the dedicated skills:
Skill(skill="python3-development:typer") — Typer CLI framework API referenceSkill(skill="python3-development:rich") — Rich terminal UI API referenceConsult ../python3-development/references/python3-standards.md when applying shared architecture, typing, testing, or CLI rules; full standards, graphs, and amendment process are documented there.
See references/non-tty-patterns.md — Console behavior without TTY, width defaults, force_terminal vs width, Progress/Live in non-interactive contexts, environment variables.
See references/rich-tables.md — width measurement pattern that prevents wrapping at 80 columns in non-TTY output.
See references/testing-patterns.md — capturing Rich output in pytest, CliRunner with Rich, snapshot testing, common assertion mistakes.
See references/exception-handling.md — Typer exception chain prevention with AppExit and AppExitRich patterns. Read when implementing error handling in Typer CLI applications.
See assets/typer_examples/index.md — working scripts demonstrating non-TTY display solutions. Read when troubleshooting display and layout of terminal applications.
See assets/python-cli-demo.py — complete working CLI demo with all patterns (PEP 723 shebang, Typer + Rich integration, modern Python 3.11+, async processing). Read when creating a new CLI tool as a reference implementation.