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-stacknpx skills add fmind/dot --skill python-stackgit 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-stack)<a href="https://agentmods.dev/skills/fmind/dot/python-stack"><img src="https://agentmods.dev/badge/skills/fmind/dot/python-stack.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.1 | $0.00040 | $0.02170 |
| Opus 5 | $0.00020 | $0.01085 |
| Sonnet 5 | $0.00008 | $0.00434 |
| Haiku 4.5 | $0.00004 | $0.00217 |
Grade A, and why
python-stack 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.
How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Stack Standard
Canonical Python development: scaffolding, libraries, CLIs, Litestar web apps, and the Python API side of ADK agents. Single-file scripts belong to python-script; the agent workflow belongs to google-adk.
1. Core & Quality Stack
- Python: target latest stable; use modern syntax (pattern matching, PEP 695 generics,
typing.Annotated). - Dependencies:
uvexclusively —uv add,uv run, no manual venvs; commituv.lockin every profile so installs and audits stay reproducible. - Tasks and hooks: mise.toml exposes the canonical vocabulary per mise; lefthook.yml wires pre-commit and pre-push per lefthook.
- Linting and formatting: Ruff (
ruff check --fix,ruff format) with zero warnings and noprint(T201); dprint for config and markup per dprint. - Types:
ty checkstrict;tyis pre-1.0, so pin a compatible range and keep suppressions narrow and evidenced. - Testing:
pytestintests/withanyioand an 85% branch-coverage gate; the default suite is offline, and web integration tests opt into a disposable Postgres via conftest.py. - Security:
uv auditscans dependencies ascheck:vulnandgitleaksischeck:leaks; SAST is opt-in per opengrep. - Validation and config: Pydantic v2 and
pydantic-settingsBaseSettings; typedconfig.py, YAML only for cross-language needs. - Logging:
structlog—ConsoleRendererlocally,JSONRendererin production, stdlib loggers routed through it.
2. Project Scaffolding Workflow
- Information: define
Slug,Description,Holder/Year, andPackage(Slugwith underscores) — every import path usesPackage. - Bootstrap (agents use google-adk instead):
uv init --app --package --build-backend uv --vcs none --description "<description>" <slug> cd <slug> && uv python pin <major.minor> # align .python-version with requires-python - Manifest:
pyproject.tomlfrom pyproject.toml.template with one profile — web keeps the Web block; CLI addstyperand drops the Web block andtestcontainers; library setsdependencies = []and drops[project.scripts]andtestcontainers. - Config files:
- mise.toml (swap
watchfor non-web projects) and lefthook.yml. dprint.jsonper dprint;.env.examplefrom env.example and, for web projects, copy it to the ignored.envbefore the first import;.gitignorefrom gitignore.AGENTS.mdfrom AGENTS.md;LICENSEper project-license.
- mise.toml (swap
- Sources:
src/<package>/__init__.pyfrom init.py (web), init-cli.py (CLI), or init-library.py; web and CLI add__main__.pyfrom main.py. - Tests:
tests/__init__.py, then per profile:- Web: test_web.py, test_integration.py, and root conftest.py (only
test:integrationstarts Postgres). - CLI: test_smoke.py and test_cli.py. Library: test_library.py.
- Web: test_web.py, test_integration.py, and root conftest.py (only
- Validate:
git init --initial-branch=main, thenmise run install,mise run format,mise run check,mise run test; before the first commit,check:leaksscans the working tree. - Finish:
README.mdper readme-agents, thengit add . && git commit -m "chore: initial commit".
What ships with it
16 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.
- references/AGENTS.md 3.2 KB
- references/conftest.py 534 B runs code
- references/env.example 174 B
- references/gitignore 112 B
- references/init-cli.py 473 B runs code
- references/init-library.py 44 B runs code
- references/init.py 3.9 KB runs code
- references/lefthook.yml 513 B
- references/main.py 59 B runs code
- references/mise.toml 3.4 KB
- references/pyproject.toml.template 3.5 KB
- references/test_cli.py 641 B runs code
- references/test_integration.py 601 B runs code
- references/test_library.py 87 B runs code
- references/test_smoke.py 173 B runs code
- references/test_web.py 2.0 KB runs code
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 Changed cc6497c59240
- yesterday First seen · 85 lines · 40 tokens per session scan A 99c73721f191
python-stack is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 2,170 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.