KS
Killer-Skills

python-cli-typer — how to use python-cli-typer how to use python-cli-typer, python-cli-typer setup guide, python-cli-typer alternative, python-cli-typer vs click, python-cli-typer install, what is python-cli-typer, typer cli construction, python cli development, command-line interface construction

v1.0.0
GitHub

About this Skill

Perfect for Python CLI Agents needing ergonomic and testable command-line interface construction. python-cli-typer is a skill for building command-line interfaces with Typer, focusing on explicit and testable CLI construction.

Features

Uses Typer for ergonomic CLI construction
Supports single command definition via `@app.command()`
Allows for options definition using function args with defaults
Enables multiple command definition using multiple `@app.command()`
Installs via `uv add typer` command
Runs CLI via `typer.Typer()` app definition in `cli.py`

# Core Topics

narumiruna narumiruna
[0]
[0]
Updated: 3/6/2026

Quality Score

Top 5%
33
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add narumiruna/telegram-bot/python-cli-typer

Agent Capability Analysis

The python-cli-typer MCP Server by narumiruna is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use python-cli-typer, python-cli-typer setup guide, python-cli-typer alternative.

Ideal Agent Persona

Perfect for Python CLI Agents needing ergonomic and testable command-line interface construction.

Core Value

Empowers agents to construct CLIs using Typer, keeping entry points explicit and testable with features like single commands via `@app.command()` and options through function args with defaults, all while utilizing the Typer library.

Capabilities Granted for python-cli-typer MCP Server

Building custom command-line tools
Creating testable CLI entry points
Defining multiple commands with `@app.command()`

! Prerequisites & Limits

  • Requires Typer installation via `uv add typer`
  • Python environment required
Project
SKILL.md
1.5 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Python CLI with Typer

Overview

Use Typer for ergonomic CLI construction. Core principle: keep CLI entry points explicit and testable.

Install

bash
1uv add typer

Quick Reference

TaskPattern
Single command@app.command()
Optionsfunction args with defaults
Multiple commandsmultiple @app.command()

Workflow

  • Define a typer.Typer() app in cli.py.
  • Keep command functions small; move logic into separate modules.
  • Run CLI via uv run python -m <module> or uv run python cli.py.

Example

python
1import typer 2 3app = typer.Typer() 4 5@app.command() 6def greet(name: str, count: int = 1) -> None: 7 for _ in range(count): 8 typer.echo(f"Hello, {name}!") 9 10if __name__ == "__main__": 11 app()

Usage:

bash
1uv run python cli.py --help 2uv run python cli.py Alice 3uv run python cli.py Alice --count 3

Multiple commands:

python
1import typer 2 3app = typer.Typer() 4 5 6@app.command() 7def create(name: str) -> None: 8 """Create a new item.""" 9 typer.echo(f"Creating {name}...") 10 11 12@app.command() 13def delete(name: str, force: bool = False) -> None: 14 """Delete an item.""" 15 if not force: 16 if not typer.confirm(f"Delete {name}?"): 17 raise typer.Abort() 18 typer.echo(f"Deleted {name}") 19 20 21if __name__ == "__main__": 22 app()

Common Mistakes

  • Putting heavy business logic inside CLI functions.
  • Forgetting to wire if __name__ == "__main__" for script entry.

Red Flags

  • CLI guidance that ignores Typer when Typer is the chosen framework.

Related Skills

Looking for an alternative to python-cli-typer or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication