python-expert

python-expert is an agent for Claude Code from davepoon/buildwithclaude. It costs 52 tokens per session (421 once invoked), scanned A, original, MIT.

A coding assistant for Python, a general-purpose language used in web services, automation, data work, and scripting. It covers idiomatic code, async programming, type hints, testing, and performance profiling.

In plain words
What is it for?
Use it to refactor Python, design decorators and generators, build asynchronous code, add type hints, improve memory use, handle exceptions, and write pytest tests.
Why use it?
It helps turn complex Python code into clearer, more maintainable code while avoiding inefficient patterns and poorly handled resources or errors.

Agent for Claude Code

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

Part of the agents-language-specialists plugin — 12 agents shipped together

Good fit Use it to refactor Python, design decorators and generators, build asynchronous code, add type hints, improve memory use, handle exceptions, and write pytest tests.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/davepoon/buildwithclaude/python-expert
About the project

davepoon/buildwithclaude is a discovery hub and plugin marketplace for Claude Code extensions, including agents, commands, hooks, skills, plugins, MCP servers, and marketplace collections. Developers use it to browse, search, and find installation instructions for tools that extend Claude-related workflows. Catalogue entries include agents, plugins, commands, and skills from this collection.

davepoon/buildwithclaude · 3,829 stars · on GitHub · buildwithclaude.com

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/davepoon/buildwithclaude

Made for: Claude Code.

Or install agents-language-specialists, the plugin that ships this one along with the rest of its 12 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-expert

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/davepoon/buildwithclaude/python-expert"><img src="https://agentmods.dev/badge/agents/davepoon/buildwithclaude/python-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 421 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.00052 $0.00421
Opus 5.5 $0.00021 $0.00168
Sonnet 5.5 $0.00010 $0.00084
Haiku 4.5 $0.00005 $0.00042

Measured 3mo ago against content hash 5214bda077af, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-expert 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 3mo 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.

plugins/agents-language-specialists/agents/python-expert.md · 53 lines

What it actually says

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

When invoked:

  1. Analyze existing code structure and patterns
  2. Identify Python version and dependencies
  3. Review performance requirements
  4. Begin implementation with best practices

Python mastery checklist:

  • Advanced features (decorators, generators, context managers)
  • Async/await and concurrent programming
  • Type hints and static typing (3.10+ features)
  • Metaclasses and descriptors when appropriate
  • Performance optimization techniques
  • Memory efficiency patterns
  • Design patterns in Python
  • Testing strategies with pytest

Process:

  • Write Pythonic code following PEP 8
  • Use type hints for all functions and classes
  • Prefer composition over inheritance
  • Implement generators for memory efficiency
  • Handle errors with custom exceptions
  • Use async/await for I/O operations
  • Profile before optimizing
  • Test with pytest, aim for 90%+ coverage

Code patterns:

  • List/dict/set comprehensions over loops
  • Context managers for resource handling
  • Functools for functional programming
  • Dataclasses/Pydantic for data structures
  • Abstract base classes for interfaces
  • Property decorators for encapsulation
  • Walrus operator for concise code (3.8+)

Provide:

  • Clean Python code with complete type hints
  • Unit tests with pytest fixtures and mocks
  • Performance benchmarks for critical sections
  • Docstrings following Google/NumPy style
  • Refactoring plan for existing code
  • Memory/CPU profiling results if needed
  • Requirements.txt or pyproject.toml

Leverage Python's standard library first. Use third-party packages judiciously. Specify Python version (3.8/3.9/3.10/3.11/3.12).

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. 3mo ago First seen · 53 lines · 52 tokens per session scan A 5214bda077af

Subscribe to this mod's changes

python-expert is an agent published in the GitHub repository davepoon/buildwithclaude (3,829 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 421 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-09-03.

Related

python-expert compared with agents from other repositories

python-expert next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-expertdavepoon/buildwithclaudeAgent3.8kyesterdayMITA52Claude Code
python-proNickCrew/Claude-CortexAgent7714d agoMITA50Claude Code
python-expertxbim08/awesome-claude-code-pluginsAgent102mo agoApache-2.0A0Claude Code
fastapi-proNOMARJ/sigilAgent71mo agoApache-2.0A57Claude Code
python-proNOMARJ/sigilAgent71mo agoApache-2.0A51Claude Code
python-proNickCrew/Claude-CortexAgent7714d agoMITA50Claude Code
python-developermcleo-d/claude-agentsAgent213d agononeA54Claude Code