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.
npx skills add vikasudasi/skill-vault --skill python-cli-typergit clone --depth 1 https://github.com/vikasudasi/skill-vaultWrote 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.
[](https://agentmods.dev/skills/vikasudasi/skill-vault/python-cli-typer)<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/python-cli-typer"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/python-cli-typer/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.
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/python-cli-typer"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/python-cli-typer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.00509 |
| Opus 5.5 | $0.00014 | $0.00204 |
| Sonnet 5.5 | $0.00007 | $0.00102 |
| Haiku 4.5 | $0.00003 | $0.00051 |
Grade A, and why
python-cli-typer 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 1mo 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.
What it actually says
Building Python CLIs with Typer
Use when scaffoldng or extending a Python command-line tool and you want a maintainable argument surface, clean help, and a testable entrypoint.
Scaffold
from __future__ import annotations
import typer
app = typer.Typer(add_completion=False)
@app.command()
def scan(path: str, recursive: bool = typer.Option(False, "--recursive", "-r")) -> None:
"""Scan a directory."""
...
if __name__ == "__main__":
app()
Conventions that matter
- Use
--flagfor booleans,--opt VALUEfor options; put required positional args first. Never mix a required option with a positional that can be omitted. - Read config from env with a small settings dataclass instead of scattering
os.getenvthrough commands (mirrors Skill Vault'sget_settings). - Exit codes:
0success,1runtime/API error,2invalid args (click does this by default),3"no valid results". Raise a typed exception and map it in a top-level handler rather thansys.exitinline.
Testing
Expose a main(argv: list[str]) -> None that calls app(args=argv, standalone_mode=False).
This lets you invoke commands in-process without spawning a process.
from cli import main
def test_scan_ok():
with pytest.raises(SystemExit) as e:
main(["scan", "src"])
# assert stdout via capsys
Pitfalls
- Typer's
--helpis auto-generated — keep docstrings accurate, they become help. - For streaming/progress use
rich(Typer integrates viarich.markup), not print. - Don't make the CLI print secrets or API keys on the happy path.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago First seen · 68 lines · 34 tokens per session scan A 11ab62596fcb
python-cli-typer is a skill published in the GitHub repository vikasudasi/skill-vault (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 509 once invoked, about $0.0001 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-31.
Other skills, from other repositories
cli-tool-design
Design command-line interfaces with clear argument parsing, subcommands, help text, output formatting, and exit codes. Covers Click, Typer, argparse, and shell completion. Triggers on CLI tool development, argument parsing, or terminal UX design requests.
biopython
Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use…
python-repl
Interactive Python REPL automation with common helpers and best practices.
dd-code-generation
Use pup CLI for immediate Datadog operations or generate code for integration into applications.
fastapi
Use when building, reviewing, testing, securing or shipping a FastAPI / async Python service — routers, Pydantic v2 schemas, dependency injection, async SQLAlchemy 2.0, OAuth2/JWT, ASGITransport tests, production wiring. NOT language-level Python or packaging (that is python), NOT engine-level SQL (that is…
modern-python-toolchain
Modern Python project setup with uv, ruff, and pyright. Use when initializing a new Python project, configuring the Python environment, setting up linting/formatting, or when a project needs uv (the fast Python package manager). Trigger on: 'set up Python', 'new Python project', 'configure uv', 'install uv', 'ruff'…