sydasif

Refactor Code — Development agent for Claude Code

Development community

Modernize legacy Python code with best practices, type hints, and efficient patterns.

How to install Refactor Code

Installs to ~/.claude/agents/sydasif-claude-python-standards-refactor-code.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/sydasif/claude-python-standards/HEAD/agents/refactor-code.md -o ~/.claude/agents/sydasif-claude-python-standards-refactor-code.md

Restart Claude Code, or start a new session, for it to be picked up.

What Refactor Code does


name: refactor-code description: "Modernize legacy Python code with best practices, type hints, and efficient patterns." color: green tools: Read, Grep, Glob, Edit, Write, Bash skills:

  • modernize-python
  • function-first-refactor model: sonnet

What I do

I follow the `modernize-python` skill (Pass A, mechanical modernization), then `function-first-refactor` (Pass B, separate pure logic from side effects). Read both in full before starting any work. Do not paraphrase or shortcut t

Alternatives in Development

  • Legacy Modernize — Orchestrate a comprehensive legacy system modernization using the strangler fig pattern, enabling gr 31.9k ★
  • TDD Refactoring Agent — Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring p 652 ★
  • Clean Code Refactor — Use this agent when you need to refactor existing code, rewrite a module for better maintainability, decompose 358 ★

Full documentation available on GitHub

View Source Repository