python-stack

python-stack is a skill for Claude Code, Codex from mfmezger/ai_agent_dotfiles. It costs 127 tokens per session (1,660 once invoked), scanned A, original, MIT.

A set of recommended tools and coding rules for building Python projects, including dependency management, formatting, tests, and project setup.

In plain words
What is it for?
Use it when starting or structuring a Python project, adding dependencies, configuring linting, testing or continuous integration, or choosing Python libraries and frameworks.
Why use it?
It reduces decisions about which tools and conventions to use, helping keep Python projects consistent and easier to maintain.

Skill for Claude CodeCodex

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

Good fit Use it when starting or structuring a Python project, adding dependencies, configuring linting, testing or continuous integration, or choosing Python libraries and frameworks.

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

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/mfmezger/ai_agent_dotfiles/python-stack/github.svg)](https://agentmods.dev/skills/mfmezger/ai_agent_dotfiles/python-stack)
Your own site
<a href="https://agentmods.dev/skills/mfmezger/ai_agent_dotfiles/python-stack"><img src="https://agentmods.dev/badge/skills/mfmezger/ai_agent_dotfiles/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/mfmezger/ai_agent_dotfiles/python-stack"><img src="https://agentmods.dev/badge/skills/mfmezger/ai_agent_dotfiles/python-stack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,660 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.00127 $0.01660
Opus 5.5 $0.00051 $0.00664
Sonnet 5.5 $0.00025 $0.00332
Haiku 4.5 $0.00013 $0.00166

Measured 1mo ago against content hash c43d983ca4c7, 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 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.

shared/skills/python-stack/SKILL.md · 192 lines

How it starts

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

Python Engineering Stack

Standard tooling and conventions for Python projects. When making recommendations or scaffolding projects, prefer these tools over alternatives unless the user explicitly requests otherwise.

Python Version

Use Python 3.13 or 3.14. Target the latest stable release for new projects.

Package and Dependency Management

uv is the standard package and dependency manager. It replaces pip, Poetry, and Conda.

  • Use uv init to scaffold new projects
  • Use uv add <package> to add dependencies (not pip install)
  • Use uv sync to install from lockfile
  • Use uv run to execute scripts/commands in the project environment
  • Use uvx to run CLI tools without installing them (e.g., uvx ruff check, uvx ty)
  • pyproject.toml is the single source of truth for project metadata and dependencies

Coding Standards

MUST DO

  • Type hints for all function signatures and class attributes
  • Use X | None instead of Optional[X] (Python 3.10+)
  • PEP 8 compliance (enforced via ruff)
  • Comprehensive docstrings in Google style for public APIs
  • Test coverage exceeding 90% with pytest
  • Async/await for I/O-bound operations
  • Dataclasses over manual __init__ methods (or Pydantic models when validation is needed)
  • Context managers for resource handling

MUST NOT DO

  • Skip type annotations on public APIs
  • Use mutable default arguments
  • Mix sync and async code improperly
  • Ignore ty errors in strict mode
  • Use bare except: clauses
  • Hardcode secrets or configuration (use pydantic-settings)
  • Use deprecated stdlib modules (use pathlib not os.path)

Code Quality

File Paths — pathlib

Always use pathlib.Path for file and directory operations. Do not use os.path or string manipulation for paths.

Console Output — Rich

Use Rich for terminal output, including formatted text, tables, and progress bars. Use rich.progress as the default for progress indicators.

Logging — Loguru

Use Loguru for application logging. Prefer structured, contextual logs over ad hoc print() debugging.

Read the full file on GitHub · 192 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. 1mo ago First seen · 192 lines · 127 tokens per session scan A c43d983ca4c7

Subscribe to this mod's changes

python-stack is a skill published in the GitHub repository mfmezger/ai_agent_dotfiles (7 stars, last pushed 3mo ago), licensed MIT. It adds 127 tokens to every session and 1,660 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

python-engineering-guidelines

General Python engineering standards for writing, reviewing, and refactoring maintainable code. Use when Codex works on Python code, especially in medium/large projects, runtime adapters, APIs, SDK integrations, async services, stateful systems, or refactors where readability, explicit typing, module boundaries, side…

anywhere-labs/Agents-Anywhere · 75 tokens

writing-python

Idiomatic Python 3.12+ development. Use when writing Python code, CLI tools, scripts, or services. Emphasizes stdlib, type hints, fast pytest feedback, uv/ruff/pyright toolchain, optional project-adopted ty, and minimal dependencies. NOT for Go, Rust, TypeScript, or shell-only tasks.

alexei-led/cc-thingz · 74 tokens

python-patterns

Python idioms — type hints, dataclasses, async/await, generators, pytest, common pitfalls. Activate when writing or reviewing Python code.

DVNghiem/FlowDeck · 33 tokens

test-generator

A generator that reads Python functions and creates pytest test-file skeletons with parameterized example inputs. Pytest is a Python testing tool, and TDD means writing tests as part of the implementation process.

bestdeejay-design/agent-skills · 0 tokens

mainframe-python-backend

Design, implement, debug, or review Python web services, APIs, and workers, including async lifecycle, persistence, and backend tests. Not data science or ML pipelines.

CATWILLgh/MAINFRAME · 40 tokens

python-development

Professional Python development skill covering modern Python 3.10+, FastAPI, Django, Flask, async programming, data processing, and best practices. Use this skill when developing Python web applications, building FastAPI/Django projects, implementing async programming, or need guidance on Python architecture design…

HK-hub/AgentSkills · 63 tokens