From python-engineering
Guides Typer and Rich best practices for Python CLI apps, covering non-TTY output, table rendering, testing patterns, exception handling, and integration pitfalls.
How this skill is triggered — by the user, by Claude, or both
Slash command
/python-engineering:typer-and-richThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<user_input>$ARGUMENTS</user_input>
<user_input>$ARGUMENTS</user_input>
If <user_input/> contains a directory or file then that is what should be examined against this guide specifically. Start immediately. If it is 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="python-engineering:typer") — Typer CLI framework API reference../python3-cli/references/rich-console-and-markup.md and related Rich referencesConsult python-engineering:python3-core for standing defaults (architecture, typing, testing, CLI rules).
See ../python3-cli/references/typer-rich-non-tty-patterns.md — Console behavior without TTY, width defaults, force_terminal vs width, Progress/Live in non-interactive contexts, environment variables.
See ../python3-cli/references/typer-rich-tables.md — width measurement pattern that prevents wrapping at 80 columns in non-TTY output.
See ../python3-cli/references/typer-rich-testing-patterns.md — capturing Rich output in pytest, CliRunner with Rich, snapshot testing, common assertion mistakes.
See ../python3-cli/references/typer-rich-exception-handling.md — Typer exception chain prevention with AppExit and AppExitRich patterns. Read when implementing error handling in Typer CLI applications.
See ../python3-cli/assets/typer_examples/index.md — working scripts demonstrating non-TTY display solutions. Read when troubleshooting display and layout of terminal applications.
See ../python3-cli/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.
npx claudepluginhub jamie-bitflight/claude_skills --plugin python-engineeringGuides Typer/Rich CLI development and review with patterns for non-TTY output, table rendering, pytest testing, and exception handling.
Provides Python CLI patterns using Typer for commands/groups/options and Rich for tables, progress bars, panels, and error handling in terminal apps.
Develops Python CLI apps with Typer and Rich. Covers app structure, Annotated parameters, subcommands, async patterns, Rich terminal output, and CliRunner testing.