python-pro

python-pro is a skill for Claude Code from Jeffallan/claude-skills. It costs 83 tokens per session (1,527 once invoked), scanned A, original, MIT.

A guide for building modern Python 3.11+ applications with clear type annotations, asynchronous code, error handling, and automated tests. It uses tools such as mypy to check types, pytest to run tests, and Ruff and Black to check code quality and formatting.

In plain words
What is it for?
Use it to build Python packages and applications, write async code, define typed interfaces, create pytest test suites, improve performance, and check code with mypy, Ruff, and Black.
Why use it?
It reduces mistakes caused by unclear data types, untested behavior, and inconsistent code style. It also provides a repeatable way to check changes before they are finished.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the fullstack-dev-skills plugin — 72 skills, 2 commands, 8 agents, 4 hooks shipped together

Good fit Use it to build Python packages and applications, write async code, define typed interfaces, create pytest test suites, improve performance, and check code with mypy, Ruff, and Black.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jeffallan/claude-skills/python-pro
About the project

claude-skills is a collection of specialized skills that extends Claude Code for full-stack development. Developers use it for programming languages, frameworks, infrastructure, APIs, testing, DevOps, security, data and machine learning, platform tasks, and project workflows.

Jeffallan/claude-skills · 12,602 stars · on GitHub

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 Jeffallan/claude-skills --skill python-pro
Clone the repo
git clone --depth 1 https://github.com/Jeffallan/claude-skills

Made for: Claude Code.

Or install fullstack-dev-skills, the plugin that ships this one along with the rest of its 72 skills, 2 commands, 8 agents, 4 hooks.

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-pro

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jeffallan/claude-skills/python-pro"><img src="https://agentmods.dev/badge/skills/jeffallan/claude-skills/python-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,527 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. Third-party audits
  • Socket pass 4 Oct 2026
  • Snyk pass 4 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00083 $0.01527
Opus 5.5 $0.00033 $0.00611
Sonnet 5.5 $0.00017 $0.00305
Haiku 4.5 $0.00008 $0.00153

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

Security

Grade A, and why

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

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

plugin/skills/python-pro/SKILL.md · 186 lines

How it starts

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

Python Pro

Modern Python 3.11+ specialist focused on type-safe, async-first, production-ready code.

When to Use This Skill

  • Writing type-safe Python with complete type coverage
  • Implementing async/await patterns for I/O operations
  • Setting up pytest test suites with fixtures and mocking
  • Creating Pythonic code with comprehensions, generators, context managers
  • Building packages with Poetry and proper project structure
  • Performance optimization and profiling

Core Workflow

  1. Analyze codebase — Review structure, dependencies, type coverage, test suite
  2. Design interfaces — Define protocols, dataclasses, type aliases
  3. Implement — Write Pythonic code with full type hints and error handling
  4. Test — Create comprehensive pytest suite with >90% coverage
  5. Validate — Run mypy --strict, black, ruff
    • If mypy fails: fix type errors reported and re-run before proceeding
    • If tests fail: debug assertions, update fixtures, and iterate until green
    • If ruff/black reports issues: apply auto-fixes, then re-validate

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
Official docs https://docs.python.org/3/ An API or behaviour not covered here; read the docs for the version the project pins
Type System references/type-system.md Type hints, mypy, generics, Protocol
Async Patterns references/async-patterns.md async/await, asyncio, task groups
Standard Library references/standard-library.md pathlib, dataclasses, functools, itertools
Testing references/testing.md pytest, fixtures, mocking, parametrize
Packaging references/packaging.md poetry, pip, pyproject.toml, distribution

Constraints

MUST DO

  • Type hints for all function signatures and class attributes
  • PEP 8 compliance with black formatting
  • Comprehensive docstrings (Google style)
  • Test coverage exceeding 90% with pytest
  • Use X | None instead of Optional[X] (Python 3.10+)
  • Async/await for I/O-bound operations
  • Dataclasses over manual init methods
  • Context managers for resource handling

Read the full file on GitHub · 186 lines

Files

What ships with it

5 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. 7d ago Changed · +3 lines 7acf800d9133
  2. 2mo ago Changed · +3 lines b94b59450d73
  3. 3mo ago First seen · 180 lines · 83 tokens per session scan A 83acbb761bc3

Subscribe to this mod's changes

python-pro is a skill published in the GitHub repository Jeffallan/claude-skills (12,602 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 1,527 once invoked, about $0.0003 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-30.

Related

python-pro compared with skills from other repositories

python-pro next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-proJeffallan/claude-skillsSkill13kyesterdayMITA83Claude Code
optimize-for-gpuK-Dense-AI/scientific-agent-skillsSkill59k4d agoMITA151Claude Code, Codex
astropyK-Dense-AI/scientific-agent-skillsSkill59k4d agoMITA56Claude Code, Codex
daskK-Dense-AI/scientific-agent-skillsSkill59k4d agoMITA67Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill59k4d agoMITA44Claude Code
bioservicesK-Dense-AI/scientific-agent-skillsSkill59k4d agoMITA56Claude Code
cobrapyK-Dense-AI/scientific-agent-skillsSkill59k4d agoMITA55Claude Code