python

Modern Python development guidance for building and maintaining Python projects. It covers project setup, dependencies, code checks, types, tests, and common web frameworks.

In plain words
What is it for?
Use it when creating Python projects, managing packages with uv, checking code with ruff, adding type hints, writing pytest tests, or building FastAPI, Django, or Flask applications.
Why use it?
It gives developers consistent choices for installing packages, organizing code, checking quality, and testing applications instead of assembling those practices from scattered sources.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/neverinfamous/memory-journal-mcp/python
Any agent
npx skills add neverinfamous/memory-journal-mcp --skill python
Clone the repo
git clone --depth 1 https://github.com/neverinfamous/memory-journal-mcp

Made for: Claude Code, Codex.

Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00121 $0.01816
Opus 5 $0.00060 $0.00908
Sonnet 5 $0.00024 $0.00363
Haiku 4.5 $0.00012 $0.00182

Measured 3d ago against content hash 25e7c49a160e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

python 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 3d 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.

skills/python/SKILL.md · 196 lines

How it starts

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

Python Engineering Standards

This skill codifies 2026 Python best practices — modern tooling (uv, ruff), strict typing, and idiomatic patterns that produce maintainable, performant code.

1. Project Setup & Structure

Tooling: uv (Not pip/pipenv/poetry)

uv is the standard package manager for Python in 2026. It replaces pip, pipenv, and poetry with a single, fast Rust binary.

uv init <project-name>       # Initialize a new project
uv add <package>              # Add a dependency
uv add --dev <package>        # Add a dev dependency
uv run <command>              # Run a command in the project's venv
uv sync                      # Install all deps from uv.lock
uv python install 3.13        # Install a specific Python version
  • ALWAYS commit both pyproject.toml AND uv.lock to version control.
  • NEVER use requirements.txt for new projects — it is a legacy pattern.
  • NEVER use pip install directly — use uv add to keep the lock file in sync.

Directory Layout: src/ Layout

my-project/
├── .python-version          # Pin Python version (e.g., 3.13)
├── pyproject.toml           # Single source of truth for config
├── uv.lock                  # Deterministic lock file
├── src/
│   └── my_package/
│       ├── __init__.py
│       ├── main.py
│       └── models.py
└── tests/
    ├── __init__.py
    ├── conftest.py          # Shared fixtures
    └── test_main.py
  • Use src/ layout for packages and production apps — it prevents tests from accidentally importing the local source instead of the installed package.
  • Group by domain, not file type — prefer users/, billing/, auth/ over models/, utils/, services/.
  • Use kebab-case for directory names, snake_case for Python modules.

pyproject.toml Configuration (PEP 621)

See references/config-templates.md for the standard pyproject.toml template.

2. Type Hints (Mandatory)

Type hints are not optional — they are foundational design tools.

Read the full file on GitHub · 196 lines

Files

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.

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. 3d ago First seen · 196 lines · 121 tokens per session scan A 25e7c49a160e

Subscribe to this mod's changes

python is a skill published in the GitHub repository neverinfamous/memory-journal-mcp (20 stars, last pushed 1mo ago), licensed MIT. It adds 121 tokens to every session and 1,816 once invoked, about $0.0006 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-08-30.

Related

Other skills, from other repositories

idapython

IDA Pro Python scripting for reverse engineering. Use when writing IDAPython scripts, analyzing binaries, working with IDA's API for disassembly, decompilation (Hex-Rays), type systems, cross-references, functions, segments, or any IDA database manipulation. Covers ida modules (50+), idautils iterators, and common…

mrexodia/ida-pro-mcp · 77 tokens

n8n-code-python

Write Python code in n8n Code nodes. Use when writing Python in n8n, using input/json/node syntax, working with standard library, or need to understand Python limitations in n8n Code nodes. Use this skill when the user specifically requests Python for an n8n Code node. Note — JavaScript is recommended for 95% of use…

czlonkowski/n8n-mcp · 157 tokens

touchdesigner-self-debug

A generic workflow for self-starting TouchDesigner via computer-use (or an already-running instance), loading mcpwebserverbase.tox, and verifying any TD-side Python change (td/modules/) directly from the Textport — reading back real TD runtime values and reconciling them. Use after changing TD-side code in the…

8beeeaaat/touchdesigner-mcp · 134 tokens

code-helper

Helps users write cleaner, more readable Python code.

sinewaveai/agent-security-scanner-mcp · 13 tokens

video-analyzer-dev

Architecture, conventions, testing rules, verification workflow and release process for the mcp-video-analyzer repository. Use this skill whenever you read, write, review or debug any file in this repo — sources under src/, tests, the Dockerfile, package.json, CI workflows or the docs — and before running checks…

guimatheus92/mcp-video-analyzer · 130 tokens

use-settings-not-environ

Read env vars through ggapicore.settings.getsettings(), not os.environ. Triggers when adding a new env-driven config or reviewing code that calls os.environ / os.getenv.

GitGuardian/ggmcp · 41 tokens