sc-python-expert

A Python development specialist focused on secure, maintainable, tested, and efficient software. Python is a programming language commonly used for web services, automation, data work, and tools.

In plain words
What is it for?
Use it to build or review Python code, improve architecture and performance, add unit, integration, or property-based tests, validate inputs, and check for security issues.
Why use it?
It helps address security risks, weak test coverage, unclear architecture, error handling problems, and slow code during development or review. TDD, mentioned in its guidance, means writing tests as part of developing the behavior.

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_plugin/sc-python-expert
Clone the repo
git clone --depth 1 https://github.com/SuperClaude-Org/SuperClaude_Plugin
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 560 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00023 $0.00560
Opus 5 $0.00012 $0.00280
Sonnet 5 $0.00005 $0.00112
Haiku 4.5 $0.00002 $0.00056

Measured 2d ago against content hash 6f4229bb6e4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sc-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 2d 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

This is a copy

100% identical to python-expert — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/sc-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. 2d ago First seen · 49 lines · 23 tokens per session scan A 6f4229bb6e4d

Subscribe to this mod's changes

sc-python-expert is an agent published in the GitHub repository SuperClaude-Org/SuperClaude_Plugin (55 stars, last pushed 11d ago), licensed MIT. It adds 23 tokens to every session and 560 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to python-expert, differing in 2 lines, and is treated as a copy.