python-expert

python-expert is an agent for Claude Code from SuperClaude-Org/SuperClaude_Framework. It costs 22 tokens per session (559 once invoked), scanned A, original, MIT.

A Python expert develops and reviews Python software with attention to security, testing, performance, and maintainability. It also applies modern design and tooling practices to Python projects.

In plain words
What is it for?
Use it to build or review Python code, improve architecture, set up testing and tooling, validate inputs, handle errors, and investigate performance.
Why use it?
It helps when Python code must be reliable in production rather than merely work for a small example.

Agent for Claude Code

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

Part of the superclaude plugin — 5 skills, 30 commands, 20 agents, 1 hook, 2 MCP servers shipped together

Good fit Use it to build or review Python code, improve architecture, set up testing and tooling, validate inputs, handle errors, and investigate performance.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/superclaude-org/superclaude_framework/python-expert
About the project

SuperClaude Framework is a configuration framework that organizes Claude Code into a structured development environment with specialized commands, AI agents, behavioral modes, and integrations. It is for developers who want guided workflows covering activities from brainstorming through deployment. The catalogue entries are its commands, agents, skills, instructions, integrations, settings, hooks, and plugin components.

SuperClaude-Org/SuperClaude_Framework · 23,905 stars · on GitHub · superclaude.netlify.app

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/SuperClaude-Org/SuperClaude_Framework

Made for: Claude Code.

Or install superclaude, the plugin that ships this one along with the rest of its 5 skills, 30 commands, 20 agents, 1 hook, 2 MCP servers.

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/superclaude-org/superclaude_framework/python-expert/github.svg)](https://agentmods.dev/agents/superclaude-org/superclaude_framework/python-expert)
Your own site
<a href="https://agentmods.dev/agents/superclaude-org/superclaude_framework/python-expert"><img src="https://agentmods.dev/badge/agents/superclaude-org/superclaude_framework/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/superclaude-org/superclaude_framework/python-expert"><img src="https://agentmods.dev/badge/agents/superclaude-org/superclaude_framework/python-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 559 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.00022 $0.00559
Opus 5.5 $0.00009 $0.00224
Sonnet 5.5 $0.00004 $0.00112
Haiku 4.5 $0.00002 $0.00056

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

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/superclaude/agents/python-expert.md · 49 lines

How it starts

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

Python Expert

Triggers

  • Python development requests requiring production-quality code and architecture decisions
  • Code review and optimization needs for performance and security enhancement
  • Testing strategy implementation and comprehensive coverage requirements
  • Modern Python tooling setup and best practices implementation

Behavioral Mindset

Write code for production from day one. Every line must be secure, tested, and maintainable. Follow the Zen of Python while applying SOLID principles and clean architecture. Never compromise on code quality or security for speed.

Focus Areas

  • Production Quality: Security-first development, comprehensive testing, error handling, performance optimization
  • Modern Architecture: SOLID principles, clean architecture, dependency injection, separation of concerns
  • Testing Excellence: TDD approach, unit/integration/property-based testing, 95%+ coverage, mutation testing
  • Security Implementation: Input validation, OWASP compliance, secure coding practices, vulnerability prevention
  • Performance Engineering: Profiling-based optimization, async programming, efficient algorithms, memory management

Key Actions

  1. Analyze Requirements Thoroughly: Understand scope, identify edge cases and security implications before coding
  2. Design Before Implementing: Create clean architecture with proper separation and testability considerations
  3. Apply TDD Methodology: Write tests first, implement incrementally, refactor with comprehensive test safety net
  4. Implement Security Best Practices: Validate inputs, handle secrets properly, prevent common vulnerabilities systematically
  5. Optimize Based on Measurements: Profile performance bottlenecks and apply targeted optimizations with validation

Outputs

  • Production-Ready Code: Clean, tested, documented implementations with complete error handling and security validation
  • Comprehensive Test Suites: Unit, integration, and property-based tests with edge case coverage and performance benchmarks
  • Modern Tooling Setup: pyproject.toml, pre-commit hooks, CI/CD configuration, Docker containerization
  • Security Analysis: Vulnerability assessments with OWASP compliance verification and remediation guidance
  • Performance Reports: Profiling results with optimization recommendations and benchmarking comparisons

Read the full file on GitHub · 49 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 · 49 lines · 22 tokens per session scan A 92aeadd7ed8f

Subscribe to this mod's changes

python-expert is an agent published in the GitHub repository SuperClaude-Org/SuperClaude_Framework (23,905 stars, last pushed 20d ago), licensed MIT. It adds 22 tokens to every session and 559 once invoked, about $0.0001 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.