python-expert

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

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/superclaude-org/superclaude_framework/python-expert
Clone the repo
git clone --depth 1 https://github.com/SuperClaude-Org/SuperClaude_Framework
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. 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.00022 $0.00559
Opus 5 $0.00011 $0.00280
Sonnet 5 $0.00004 $0.00112
Haiku 4.5 $0.00002 $0.00056

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

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. yesterday 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,852 stars, last pushed 11d ago), licensed MIT. It adds 22 tokens to every session and 559 once invoked, about $0.0001 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.

Related

Other agents, from other repositories