typer-cli

typer-cli is a skill for Claude Code, Codex from tedivm/robs_awesome_python_template. It costs 47 tokens per session (1,269 once invoked), scanned A, original, MIT.

A set of guidelines for adding command-line commands with Typer, a Python library for building terminal applications. It defines where commands belong and how asynchronous functions are run from them.

In plain words
What is it for?
Adding subcommands, organizing command groups, exposing scripts to users, and connecting asynchronous database or network operations to the command line.
Why use it?
It gives users one consistent command-line entry point and prevents async application code from being wired incorrectly to synchronous terminal commands.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Adding subcommands, organizing command groups, exposing scripts to users, and connecting asynchronous database or network operations to the command line.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tedivm/robs_awesome_python_template/typer-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tedivm/robs_awesome_python_template --skill typer-cli
Clone the repo
git clone --depth 1 https://github.com/tedivm/robs_awesome_python_template

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for typer-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/tedivm/robs_awesome_python_template/typer-cli/github.svg)](https://agentmods.dev/skills/tedivm/robs_awesome_python_template/typer-cli)
Your own site
<a href="https://agentmods.dev/skills/tedivm/robs_awesome_python_template/typer-cli"><img src="https://agentmods.dev/badge/skills/tedivm/robs_awesome_python_template/typer-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for typer-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/tedivm/robs_awesome_python_template/typer-cli"><img src="https://agentmods.dev/badge/skills/tedivm/robs_awesome_python_template/typer-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,269 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.01269
Opus 5.5 $0.00019 $0.00508
Sonnet 5.5 $0.00009 $0.00254
Haiku 4.5 $0.00005 $0.00127

Measured 3mo ago against content hash 2ec7f35cee33, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

typer-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

{{cookiecutter.__package_slug}}/.agents/skills/typer-cli/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Typer CLI

context7: If documentation tools are available, resolve and load the full typer documentation before making any changes to the CLI system:

context7_resolve-library-id: "typer"
context7_query-docs: <resolved-id> "your query here"

Any command or script that must be accessible to users must be exposed through the Typer library.

For full developer documentation see docs/dev/cli.md.


CLI Structure

The CLI is registered in pyproject.toml as a project script pointing to {{cookiecutter.__package_slug}}.cli:app.

The main app is defined in {{cookiecutter.__package_slug}}/cli.py. Domain-specific subcommand groups live in separate {{cookiecutter.__package_slug}}/cli_<domain>.py files and are mounted onto the main app.


Async Commands — @syncify

Typer runs commands synchronously, but this project uses async throughout (database access, HTTP calls, etc.). Use the @syncify decorator from {{cookiecutter.__package_slug}}/cli.py to bridge them:

from {{cookiecutter.__package_slug}}.cli import syncify

@app.command()
@syncify
async def my_command(name: str) -> None:
    """This async function will run correctly from the CLI."""
    result = await some_async_operation(name)
    typer.echo(result)

Critical: @app.command() must appear before @syncify in decorator order. Do not use asyncio.run() directly — syncify handles the event loop correctly.


{%- if cookiecutter.include_sqlalchemy == "y" %}

Database Access in CLI Commands

Use get_session from {{cookiecutter.__package_slug}}.services.db for database-backed commands. Always use it as an async context manager:

from {{cookiecutter.__package_slug}}.services.db import get_session

@app.command()
@syncify
async def my_db_command() -> None:
    """Example command using database access."""
    async with get_session() as session:
        result = await session.execute(select(MyModel))
        items = result.scalars().all()
        for item in items:
            typer.echo(item.name)

Read the full file on GitHub · 157 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 157 lines · 47 tokens per session scan A 2ec7f35cee33

Subscribe to this mod's changes

typer-cli is a skill published in the GitHub repository tedivm/robs_awesome_python_template (317 stars, last pushed 6mo ago), licensed MIT. It adds 47 tokens to every session and 1,269 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

typer-cli compared with skills from other repositories

typer-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
typer-clitedivm/robs_awesome_python_templateSkill3176mo agoMITA47Claude Code, Codex
pythonaps08/fullstack-clean-architectureSkill22mo agoApache-2.0A22Claude Code, Codex
fastapiidiscoord13-sketch/agent-jail-mcpSkill03mo agononeA57Claude Code, Codex
background-taskvstorm-co/full-stack-ai-agent-templateSkill2.0kyesterdayMITA62Claude Code
channel-botvstorm-co/full-stack-ai-agent-templateSkill2.0kyesterdayMITA53Claude Code
aspnet-coreHaohao-end/openagentSkill756yesterdayMITA79Codex
django-celery-expertwilfredinni/django-starter-templateSkill554d agoMITA115Claude Code, Codex