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 agentmods add skills/fmind/dot/python-scriptnpx skills add fmind/dot --skill python-scriptgit clone --depth 1 https://github.com/fmind/dotWrote 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/fmind/dot/python-script)<a href="https://agentmods.dev/skills/fmind/dot/python-script"><img src="https://agentmods.dev/badge/skills/fmind/dot/python-script.svg" alt="Measured on agentmods" 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 | $0.00034 | $0.00513 |
| Opus 5 | $0.00017 | $0.00257 |
| Sonnet 5 | $0.00007 | $0.00103 |
| Haiku 4.5 | $0.00003 | $0.00051 |
Grade A, and why
python-script 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 yesterday.
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
PEP 723 Standalone Python Scripts
Single-file Python CLI scripts with inline dependency metadata (PEP 723) run by uv run — no virtualenv, no pyproject.toml; a script that outgrows one file moves to python-stack.
Workflow
- Start from the template: copy script.py; its shebang (
#!/usr/bin/env -S uv run --quiet --script) and# /// scriptblock declarerequires-pythonand dependency lower bounds. - Parse arguments with Typer:
Annotated[..., typer.Argument/Option(...)]with help text; RichConsole()for stdout results andConsole(stderr=True)for logs and errors. - Handle errors at the boundary: catch in the command,
err.print_exception(show_locals=False)(locals can hold secrets), thenraise typer.Exit(code=1) from None; elsewhere let errors propagate. - Run:
chmod +x script.py && ./script.py input.txt, oruv run script.py input.txt; uv resolves and caches the dependencies on first run. - Lock a durable script:
uv lock --script script.py, thenuv run --locked --script script.py; lower bounds alone are not reproducible.
Gotchas
- Agent scratch scripts live in
.agents/tmp/. - One file: past ~200 lines or a second module, switch to a full project.
Documentation
- PEP 723 · uv scripts · Typer
- Companion skills: python-stack (full projects), cli-contracts (flags, streams, exit codes).
What ships with it
1 file 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.
- yesterday First seen · 33 lines · 34 tokens per session scan A 78000ad1d5cd
python-script is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 513 once invoked, about $0.0002 per session on Opus 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-09-03.
Other skills, from other repositories
python-stack
Build typed Python projects with uv, Ruff, ty, pytest, Litestar, and Typer. Use for packages, CLIs, web apps, tests, typing, or API verification.
python-script
Write standalone single-file Python scripts using PEP 723 inline metadata and uv. Use when creating a quick CLI script that needs dependencies without a full project.
go-stack
Build Go projects, libraries, CLIs, TUIs, web apps, or ADK agents with the standard package layout and pinned tooling.
hugo
Canonical Hugo static-site stack with the Hextra docs theme — Hugo Modules, mise tasks, dprint, lefthook, and GitHub Pages deploy. Use for documentation sites, project docs, and static websites.
k8s-local
Create and manage local Kubernetes clusters (k3d or kind) and deploy to them with kubectl, helm, helmfile, and skaffold. Use for local k8s cluster setup, dev loops, and debugging.
release
Cut or verify a versioned release — bump semver, generate the changelog with git-cliff, tag and publish on GitHub, or reconcile an already-published tag and assets.