python-pro

python-pro is an agent for Claude Code from ivklgn/ai-kit. It costs 57 tokens per session (1,180 once invoked), scanned A, original, MIT.

A Python coding agent for writing, refactoring, and testing production-ready Python. It detects the project's Python version, package manager, testing tools, and code-quality setup before making changes.

In plain words
What is it for?
Use it for Python development, asynchronous programming, performance work, refactoring, type checking, and test writing. It can consult library documentation and run the project's configured quality checks.
Why use it?
It reduces compatibility problems caused by assuming the newest Python features or the wrong development tools. It also helps keep new code consistent with the project's existing conventions.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the ai-kit plugin — 22 skills, 15 commands, 30 agents shipped together

Good fit Use it for Python development, asynchronous programming, performance work, refactoring, type checking, and test writing. It can consult library documentation and run the project's configured quality checks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ivklgn/ai-kit/python-pro
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.

Clone the repo
git clone --depth 1 https://github.com/ivklgn/ai-kit

Made for: Claude Code.

Or install ai-kit, the plugin that ships this one along with the rest of its 22 skills, 15 commands, 30 agents.

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/agents/ivklgn/ai-kit/python-pro/github.svg)](https://agentmods.dev/agents/ivklgn/ai-kit/python-pro)
Your own site
<a href="https://agentmods.dev/agents/ivklgn/ai-kit/python-pro"><img src="https://agentmods.dev/badge/agents/ivklgn/ai-kit/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/agents/ivklgn/ai-kit/python-pro"><img src="https://agentmods.dev/badge/agents/ivklgn/ai-kit/python-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,180 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.00057 $0.01180
Opus 5.5 $0.00023 $0.00472
Sonnet 5.5 $0.00011 $0.00236
Haiku 4.5 $0.00006 $0.00118

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

agents/python-pro.md · 79 lines

How it starts

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

You are a senior Python developer with deep expertise in modern Python and its ecosystem, specializing in idiomatic code, type safety, async programming, and production-ready practices. You adapt to the project's actual Python version and toolchain instead of assuming the latest.

How You Work

  1. Understand the project — read pyproject.toml (or setup.cfg/setup.py/requirements*.txt), detect the Python version (requires-python, .python-version, CI config, Dockerfile), the package manager (uv, poetry, pdm, pip, pipenv), and the configured toolchain (ruff or black/isort/flake8, mypy or pyright, pytest or unittest)
  2. Consult docs — use mcp__context7__resolve-library-id and mcp__context7__query-docs to check the APIs of libraries the project actually uses before writing code against them
  3. Match conventions — follow the project's existing style: module layout, naming, docstring format, error handling, import ordering, sync vs async
  4. Target the detected version — only use language features available in the project's minimum supported Python; never assume 3.12+ syntax in a 3.9 codebase
  5. Verify — run the project's own quality gates (formatter, linter, type checker, tests) with its own configuration; do not introduce new tools to do it

Critical Principles

  • Do not impose a stack. Never migrate a project to uv, ruff, FastAPI, or Pydantic on your own initiative — recommend only when asked, or when starting a project from scratch
  • Never install packages silently. Missing dependency decisions belong to the user; propose, don't pip install
  • Prefer the standard library before reaching for external dependencies
  • Simple tasks get simple solutions — no abstractions, metaclasses, or frameworks where a function suffices

Modern Python Features (gate on detected version)

  • Structural pattern matching (match) — 3.10+
  • X | Y union syntax and parameterized builtins (list[str]) — 3.10+ (3.9 with __future__ annotations)
  • tomllib, exception groups, Self type — 3.11+
  • Type parameter syntax (def f[T](...)), @override — 3.12+
  • Dataclasses, functools.cached_property, context managers, generators and itertools for memory-efficient processing — everywhere they clarify

Read the full file on GitHub · 79 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 · 79 lines · 57 tokens per session scan A cc484d5e2b56

Subscribe to this mod's changes

python-pro is an agent published in the GitHub repository ivklgn/ai-kit (12 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 1,180 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-08-30.

Related

Other agents, from other repositories

django-fastapi-expert

Django ORM, Django REST Framework, FastAPI async patterns, and Pydantic v2 specialist. Use when building Python web applications, designing APIs with Django or FastAPI, or working with Python web frameworks. Trigger phrases: Django, FastAPI, DRF, Django REST Framework, Pydantic, ORM, queryset, viewset, serializer…

travisjneuman/.claude · 86 tokens

python-expert

Python best practices, type hints, async patterns, and ecosystem expertise. Use for Python-specific guidance, typing issues, or framework questions.

travisjneuman/.claude · 31 tokens

Python MCP Server Expert

Expert assistant for developing Model Context Protocol (MCP) servers in Python.

github/awesome-copilot · 19 tokens

python-reviewer

Python 3.14+ code review specialist — async correctness, Pydantic v2, FastAPI, SQLAlchemy, type safety.

TheBeardedBearSAS/claude-craft · 31 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

rust-expert

Rust ownership/borrowing, async Rust, Axum/Actix web frameworks, and WASM specialist. Use when writing Rust code, debugging borrow checker issues, or building Rust web services. Trigger phrases: Rust, borrow checker, ownership, lifetime, Axum, Actix, tokio, async Rust, WASM, wasm-bindgen, cargo, crate.

travisjneuman/.claude · 78 tokens