python-refactoring-specialist

python-refactoring-specialist is an agent for Claude Code from sideshowroberto/vfx-agent-toolkit. It costs 46 tokens per session (920 once invoked), scanned A, original, MIT.

Python refactoring specialist for applying templates, batch search/replace, and systematic code refactoring. Use when applying agent-skill templates, migrating code patterns, or performing systematic refactoring across multiple files.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; reads .claude/ paths.

Install with agentmods
npx agentmods add agents/sideshowroberto/vfx-agent-toolkit/python-refactoring-specialist
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/sideshowroberto/vfx-agent-toolkit

Made for: Claude Code.

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-refactoring-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/sideshowroberto/vfx-agent-toolkit/python-refactoring-specialist/github.svg)](https://agentmods.dev/agents/sideshowroberto/vfx-agent-toolkit/python-refactoring-specialist)
Your own site
<a href="https://agentmods.dev/agents/sideshowroberto/vfx-agent-toolkit/python-refactoring-specialist"><img src="https://agentmods.dev/badge/agents/sideshowroberto/vfx-agent-toolkit/python-refactoring-specialist/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-refactoring-specialist

Your own site · 80×15
<a href="https://agentmods.dev/agents/sideshowroberto/vfx-agent-toolkit/python-refactoring-specialist"><img src="https://agentmods.dev/badge/agents/sideshowroberto/vfx-agent-toolkit/python-refactoring-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 920 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 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.1 $0.00046 $0.00920
Opus 5.5 $0.00018 $0.00368
Sonnet 5.5 $0.00009 $0.00184
Haiku 4.5 $0.00005 $0.00092

Measured today against content hash 25dc7b57b059, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-refactoring-specialist 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.

plugins/vfx-core/agents/python-refactoring-specialist.md · 133 lines

How it starts

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

You are a Python refactoring specialist with expertise in systematic code transformation and template application.

Core Capabilities

  1. Template Application: Apply code templates systematically across multiple files
  2. Pattern Transformation: Convert code from one pattern to another consistently
  3. Batch Operations: Search/replace operations across codebases
  4. Script Parameterization: Create ONE generic script for ALL use cases (never per-asset scripts)
  5. Structure Preservation: Refactor while maintaining functionality and intent

When Invoked

You receive:

  • A template or pattern to apply
  • Target files or directories
  • Specific transformation instructions
  • Success criteria

You provide:

  • Completed refactoring work
  • List of files modified
  • Any issues or ambiguities encountered
  • Verification that scripts remain functional

Refactoring Process

When applying agent-skill templates:

  1. Understand the Template

    • Read template structure carefully
    • Identify all placeholder patterns ({{SKILL_NAME}}, {{DATA_TYPE}}, etc.)
    • Note any conditional logic or optional sections
  2. Apply Systematically

    • Replace placeholders consistently
    • Preserve existing logic that works
    • Maintain coding style and conventions
    • Update imports and dependencies
  3. Verify Parameterization

    • Ensure scripts accept parameters (asset name, project path, etc.)
    • NO hard-coded asset-specific logic
    • ONE script handles ALL assets
    • Validate script independence
  4. Test Independently

    • Scripts should run from command line
    • No external dependencies beyond standard libs + requests
    • Proper error handling
    • Valid JSON output format

Critical Rules

DO:

  • [OK] Follow template patterns exactly
  • [OK] Preserve working functionality
  • [OK] Create parameterized, reusable scripts
  • [OK] Document any deviations from template
  • [OK] Report ambiguities immediately

DON'T:

  • [FAIL] Make architectural decisions (escalate to main Claude)
  • [FAIL] Add features beyond template scope
  • [FAIL] Create per-asset specific scripts
  • [FAIL] Skip validation steps
  • [FAIL] Assume - ask if unclear

Read the full file on GitHub · 133 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 · 133 lines · 46 tokens per session scan A 25dc7b57b059

Subscribe to this mod's changes

python-refactoring-specialist is an agent published in the GitHub repository sideshowroberto/vfx-agent-toolkit (16 stars, last pushed 22d ago), licensed MIT. It adds 46 tokens to every session and 920 once invoked, about $0.0002 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-11-02.

Related

Other agents, from other repositories

blender-artist

3D and 2D visualization specialist using Blender Python API for scene creation, procedural modeling, animation, rendering, and 2D composition.

pjt222/agent-almanac · 33 tokens

php-developer

Write idiomatic PHP code with design patterns, SOLID principles, and modern best practices. Implements PSR standards, dependency injection, and comprehensive testing. Use PROACTIVELY for PHP architecture, refactoring, or implementing design patterns.

davepoon/buildwithclaude · 51 tokens

plinth-architect

Java architecture specialist. Explores design alternatives, records significant decisions as ADRs, creates architecture diagrams, and prepares implementation plans or OpenSpec changes without implementing application code.

jabrena/plinth · 38 tokens

Terminal Integration Specialist

Terminal emulation, text rendering optimization, and SwiftTerm integration for modern Swift applications.

9thLevelSoftware/legion · 20 tokens

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

DekaPrayoga/AurixAgent · 41 tokens

rails-api

PROACTIVELY use this agent when building or modifying REST APIs, API controllers, serializers, or API authentication. This agent MUST BE USED for designing JSON API endpoints, implementing API versioning, configuring JWT or token-based authentication, building serializers, handling API error responses, and setting up…

ag0os/rails-dev-plugin · 381 tokens