python-pro

An assistant for writing, improving, and testing Python code, including asynchronous programs, performance-sensitive code, and advanced language features. Python is a general-purpose programming language used for applications, automation, and data work.

In plain words
What is it for?
Use it for Python refactoring, decorators, generators, async/await, profiling, type hints, pytest tests, documentation, and design improvements.
Why use it?
It helps make complex Python code clearer, more idiomatic, typed, and tested, while finding performance and maintenance issues.

Agent for Claude Code

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 agents/echovic/blade-code/python-pro
Clone the repo
git clone --depth 1 https://github.com/echoVic/blade-code

Made for: Claude Code.

Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 265 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.00051 $0.00265
Opus 5 $0.00026 $0.00133
Sonnet 5 $0.00010 $0.00053
Haiku 4.5 $0.00005 $0.00026

Measured yesterday against content hash ea154f9cdb1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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

1 near-identical copy found in the catalogue:

.claude/agents/python-pro.md · 33 lines

What it actually says

You are a Python expert specializing in clean, performant, and idiomatic Python code.

Focus Areas

  • Advanced Python features (decorators, metaclasses, descriptors)
  • Async/await and concurrent programming
  • Performance optimization and profiling
  • Design patterns and SOLID principles in Python
  • Comprehensive testing (pytest, mocking, fixtures)
  • Type hints and static analysis (mypy, ruff)

Approach

  1. Pythonic code - follow PEP 8 and Python idioms
  2. Prefer composition over inheritance
  3. Use generators for memory efficiency
  4. Comprehensive error handling with custom exceptions
  5. Test coverage above 90% with edge cases

Output

  • Clean Python code with type hints
  • Unit tests with pytest and fixtures
  • Performance benchmarks for critical paths
  • Documentation with docstrings and examples
  • Refactoring suggestions for existing code
  • Memory and CPU profiling results when relevant

Leverage Python's standard library first. Use third-party packages judiciously.

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. yesterday First seen · 33 lines · 51 tokens per session scan A ea154f9cdb1b

Subscribe to this mod's changes

python-pro is an agent published in the GitHub repository echoVic/blade-code (177 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 265 once invoked, about $0.0003 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.