python-stack

python-stack is a skill for Claude Code, Codex from fmind/dot. It costs 45 tokens per session (464 once invoked), scanned A, original, MIT.

A standard setup for building typed Python packages, command-line tools, web applications, agents, and tests with uv, Ruff, ty, pytest, Litestar, and Typer. It defines conventions for dependencies, formatting, type checking, testing, and security checks.

In plain words
What is it for?
Use it to start or maintain Python libraries, CLIs, web APIs, agent backends, and test suites with shared quality and dependency practices.
Why use it?
It gives Python projects a consistent development setup instead of leaving each project to choose unrelated tools and rules. It also distinguishes full projects from small standalone scripts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to start or maintain Python libraries, CLIs, web APIs, agent backends, and test suites with shared quality and dependency practices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fmind/dot/python-stack
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 fmind/dot --skill python-stack
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

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 python-stack

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/python-stack/github.svg)](https://agentmods.dev/skills/fmind/dot/python-stack)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/python-stack"><img src="https://agentmods.dev/badge/skills/fmind/dot/python-stack/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 python-stack

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmind/dot/python-stack"><img src="https://agentmods.dev/badge/skills/fmind/dot/python-stack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 464 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.
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.00045 $0.00464
Opus 5.5 $0.00018 $0.00186
Sonnet 5.5 $0.00009 $0.00093
Haiku 4.5 $0.00005 $0.00046

Measured today against content hash ca7348bb4bff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 today.

The scan reads SKILL.md. This mod also ships 3 executable files (references/foundation/templates/init-library.py, references/foundation/templates/test_library.py, references/python-script/templates/script.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/python-stack/SKILL.md · 38 lines

What it actually says

Python Stack

Maintain a small typed Python foundation and choose libraries for demonstrated requirements. Preserve the existing environment and conventions rather than restarting a scaffold for every feature.

Workflow

Read only the matching guide and its required resources. Dataframe code in any profile, scripts included, defaults to Polars.

Task guides

  • api-client: Build typed Python HTTPX API clients with bounded pagination and retries.
  • foundation: Python package layout, dependency choices, defaults, and project scaffolding.
  • langextract: Extract structured facts from text with LangExtract and source-grounded evidence.
  • observability: Instrument Python services and agents: structlog logs, OpenTelemetry traces and metrics.
  • pydantic: Typed validation, serialization, and settings boundaries.
  • python-async: Async design, cancellation, timeouts, and shutdown.
  • python-script: Standalone single-file utilities with PEP 723 inline metadata run by uv run --script.
  • python-testing: Write Python tests with pytest, fixtures, property tests, and TDD.
  • ruff: Python linting, formatting, imports, and safe fixes.
  • ty: Type diagnostics and environment resolution.
  • uv: Dependency resolution, environments, packaging, and lockfiles.
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. today Changed ca7348bb4bff
  2. 3d ago Changed e646f8764a8f
  3. 4d ago Changed cd42657c7ba1
  4. 7d ago Changed · +3 lines · +13 tokens per session ea745cf92d35
  5. 9d ago Changed 081fd1641997
  6. 12d ago Changed 7ad80822323f
  7. 15d ago Changed f8c7f05ed5c3
  8. 20d ago Changed 84cff838d72d
  9. 21d ago Changed b326f4ff834e
  10. 23d ago First seen · 35 lines · 32 tokens per session scan A 57cae1ba1781

Subscribe to this mod's changes

python-stack is a skill published in the GitHub repository fmind/dot (12 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 464 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-09-03.