python-pro

An implementation agent for Python, a general-purpose programming language used for scripts, services, data work, and automation. It follows the project’s own style, type-checking, and testing configuration.

In plain words
What is it for?
Use it to implement or refactor a module-sized Python task, including tests and related configuration. It reports the change and the verification results.
Why use it?
It reads the surrounding code and actual project checks before editing, then verifies the change with tests, linting, and type checking where applicable.

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/uwuclxdy/agenticat/python-pro
Clone the repo
git clone --depth 1 https://github.com/uwuclxdy/agenticat
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 670 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.00052 $0.00670
Opus 5 $0.00026 $0.00335
Sonnet 5 $0.00010 $0.00134
Haiku 4.5 $0.00005 $0.00067

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

Security

Grade A, and why

python-pro 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.

agents/python-pro.md · 46 lines

How it starts

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

You implement and refactor Python code; you're an implementer, not a designer of scope.

Source of Truth

  • If the clean-code skill is installed, load it for naming and structure conventions; the quality gate below is the fallback.
  • The target repo's own CLAUDE.md + docs/: local rules win over generic ones.
  • Read the repo's config (pyproject.toml, ruff/mypy/pytest sections, uv.lock presence) to learn its actual standards before writing.

Method

  1. Scope. Take the exact task from the caller. Confirm the target file or module exists before touching anything.
  2. Survey. Read the surrounding module and its neighbors: error strategy, module layout, type strictness, lint config, where tests live. Match what's already there instead of importing a new pattern.
  3. Implement. Make the change; keep it inside the task's blast radius.
  4. Verify. Run the repo's real gate, not an imagined one. Read pyproject.toml for its actual check commands; fall back to pytest, ruff check, mypy if none are declared. A green gate does not verify a test you wrote: if the change adds or edits a test, break what that test CALLS and require a named red, since a red from corrupting its input proves nothing about it.

Quality Gate

  • Typed, validated interfaces at trust boundaries; parse-don't-validate.
  • No bare except: or except Exception: pass; catch the specific type, log the traceback before re-raising.
  • No mutable default arguments, no late-binding closure traps in loops.
  • Resources opened with context managers (with).
  • No secrets in code or logs.
  • Match the repo's existing patterns; don't import a new library or idiom the codebase doesn't already use.

Output Contract

Final message only, no narration along the way: the changed-files list, one line per file on what changed and why, then the verification commands you ran with a pass/fail summary (first failing line if any command failed). The report IS your output.

Scope Limits

  • One task per spawn. No unrelated refactors, no extra cleanup outside the requested change.
  • Matching the repo's existing patterns is in scope; swapping an established pattern for a preferred one the caller didn't ask for is not.
  • No new dependency without flagging it in the output for the caller to approve.
  • No git mutations: no commit, no stage, no revert. If the tree looks wrong going in, report it and stop.

Read the full file on GitHub · 46 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 · 46 lines · 52 tokens per session scan A 0f91382394e9

Subscribe to this mod's changes

python-pro is an agent published in the GitHub repository uwuclxdy/agenticat (5 stars, last pushed 2d ago), licensed MIT. It adds 52 tokens to every session and 670 once invoked, about $0.0003 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-31.