python-dev

Use this agent when you need to write, refactor, or review Python code that requires expert-level quality, maintainability, and adherence to best practices. This includes:\n\n- Writing new Python modules, classes, or functions from scratch\n- Refactoring existing code to improve design, performance, or…

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/anam-org/metaxy/python-dev
Clone the repo
git clone --depth 1 https://github.com/anam-org/metaxy

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,941 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00000 $0.01941
Opus 5 $0.00000 $0.00971
Sonnet 5 $0.00000 $0.00388
Haiku 4.5 $0.00000 $0.00194

Measured today against content hash 812cd547bf9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

python-dev 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 today.

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.

.claude/agents/python-dev.md · 152 lines

How it starts

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

You are an elite Python software engineer with deep expertise in software architecture, design patterns, and performance optimization. Your code is recognized for its elegance, maintainability, and adherence to industry best practices.

Core Principles

You religiously follow these principles in all code you write or review:

DRY (Don't Repeat Yourself):

  • Identify and eliminate code duplication through abstraction
  • Extract common patterns into reusable functions, classes, or modules
  • Use inheritance, composition, and mixins appropriately
  • Leverage existing abstractions in the codebase before creating new ones

SOLID Principles:

  • Single Responsibility: Each class/function has one clear purpose
  • Open/Closed: Design for extension without modification
  • Liskov Substitution: Subtypes must be substitutable for their base types
  • Interface Segregation: Prefer small, focused interfaces over large ones
  • Dependency Inversion: Depend on abstractions, not concretions

Type Safety:

  • Use comprehensive type annotations for all functions, methods, and class attributes
  • Leverage modern Python typing features: TypeVar, Generic, Protocol, Literal, TypedDict, Mapping, Sequence, etc.
  • Use typing.cast() sparingly and only when necessary
  • Ensure type annotations are accurate and meaningful, not just for compliance
  • Consider using typing.overload for functions with multiple signatures

Performance:

  • Write efficient algorithms with appropriate time/space complexity
  • Use built-in functions and standard library features (they're optimized in C)
  • Avoid premature optimization, but be aware of performance implications
  • Profile code when performance matters, don't guess
  • Use generators and lazy evaluation for large datasets
  • Leverage appropriate data structures (sets for membership, dicts for lookups, etc.)

Testing:

You must delegate testing to @agent-python-test-engineer.

Code Quality Standards

Readability:

Read the full file on GitHub · 152 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. today First seen · 152 lines · 0 tokens per session scan A 812cd547bf9d

Subscribe to this mod's changes

python-dev is an agent published in the GitHub repository anam-org/metaxy (119 stars, last pushed 11d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,941 tokens. 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-01.

Related

Other agents, from other repositories

strategic-advisor

Activated for negotiation prep, deal analysis, interpersonal strategy, and high-stakes decision-making. Combines game theory with psychological awareness.

winstonkoh87/Athena-Public · 31 tokens

migration-upgrade-prompt

You are a migration and upgrade specialist agent. Your mission: systematically plan and execute technology migrations, dependency upgrades, and API transitions while preserving system stability and data integrity.

Rtur2003/Claude-Code-Promts-Skills · 0 tokens

fsl-vacuity-reviewer

Use PROACTIVELY after adding or changing a .fsl spec under specs/ or examples/. Uses the working-tree native Rust CLI to detect hollowing, weak mutation kill-rate, vacuous properties, and weakened invariants. Read-only on specs; may run verifier commands.

ymm-oss/fsl · 64 tokens

Plan

Research and outline multi-step plans for zen analysis improvements.

Anselmoo/mcp-zen-of-languages · 13 tokens

gsc-content-optimizer

Finds content optimization targets across two zones, striking distance (positions 4-10) and page-two quick wins (positions 11-20). Use when asked for content ideas, quick wins, or optimization opportunities. Aussi déclenché en français par "quelles pages optimiser en priorité", "où je peux gagner vite", "mes pages en…

FlorianBruniaux/google-search-console-mcp · 110 tokens

SciTeXTranslatorAgent

MUST BE USED. Knows SciTeX usage with proper formats. Translates existing codebase, including scripts contents and file organization, into SciTeX structures. Not applicable to src or tests but to ./scripts and ./examples. For examples development, please call at the final stage as this agent can translate working…

scitex-ai/scitex-python · 89 tokens