typer
Skill by fastapi
Guides an assistant to write and refactor Typer CLI code using current best practices. It is the official Typer skill, aimed at Python developers building command-line tools with Typer.
Install typer
Built from the published package, never by AI.
git clone --depth 1 https://github.com/fastapi/typer /tmp/typer && mkdir -p ~/.claude/skills && cp -r /tmp/typer/typer/.agents/skills/typer ~/.claude/skills/typerRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/fastapi/typer /tmp/typer && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/typer/typer/.agents/skills/typer ~/.gemini/antigravity-cli/skills/typerAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant the conventions for writing Typer command-line apps in Python. It tells the assistant to create an explicit Typer app and register commands, instead of using typer.run. It asks for the Annotated style for arguments and options, and shows how option names, short flags, and multiple values are declared. It also covers Rich markup and Markdown in help text, and how to run the app and view its generated help.
The skill also explains which older patterns to avoid. It says typer-slim and typer-cli are deprecated, and that Click extensions and several Click-era Option and Argument settings should no longer be used. The skill is intended for developers who write new Typer code or refactor and update existing Typer CLIs to the latest features.
Written from the project's SKILL.md and checked against it.
What it can do
- Explicit Typer appCreates a Typer app and registers subcommands instead of using typer.run.
- Annotated argumentsDeclares CLI arguments and options with the Annotated style and typer.Argument or typer.Option.
- Option names and short flagsGenerates option names from variable names and adds custom or short flags.
- Multiple valuesDeclares a list option so it can receive several values on the command line.
- Rich help formattingUses Rich markup or Markdown in docstrings and help text, and can disable it.
- Click migration guidanceFlags Click extensions and outdated settings and suggests pure Typer alternatives.
What you need
- Python
- pip or uv to install typer
Try asking
- Write a Typer CLI with a hello command that takes an optional name argument
- Refactor my old Typer code to use the Annotated style for options
- Add Rich markup to the help text of my Typer commands
Good to know
- Do not install typer-slim or typer-cli, since both are deprecated
- Click extensions are no longer used with Typer, so older code must be refactored
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: typer/.agents/skills/typer/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to typer
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
typer: common questions
Should I use typer.run or an explicit Typer app?
The skill recommends an explicit Typer app with registered subcommands, because it is more extensible than typer.run.
Does this skill cover older Typer syntax?
Yes. It shows the older default-value and ellipsis styles and marks them as old style to replace with Annotated.
Which Typer packages should I install?
The skill says to install typer itself. It says typer-slim and typer-cli are deprecated and now simply install typer.
How do I install typer?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is typer free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is typer safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to typer?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
