code-refactor

Rename identifiers and replace patterns across multiple code files.

1|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/POWERFULMOVES/PMOVES-BoTZ --skill code-refactor-powerfulmoves
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-refactor
Source: https://github.com/POWERFULMOVES/PMOVES-BoTZ/tree/main/.claude/skills/code-refactor
Command: npx skills add https://github.com/POWERFULMOVES/PMOVES-BoTZ --skill code-refactor-powerfulmoves

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates repetitive and error-prone bulk code refactoring tasks, ensuring consistency and saving significant development time.

Core Features & Use Cases

  • Identifier Renaming: Safely rename variables, functions, and classes across multiple files.
  • Pattern Replacement: Replace deprecated code patterns or update API calls consistently.
  • Use Case: Refactor a codebase to replace all instances of a deprecated function old_api_call with a new one new_api_call, ensuring all usages are updated correctly.

Quick Start

Use the code-refactor skill to rename all occurrences of the variable 'temp_var' to 'final_result' across all Python files in the current directory.

Frequently Asked Questions about code-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I rename a variable across multiple files in a codebase?

Renaming variables across multiple files requires bulk refactoring operations to safely update identifiers like variables and classes. This process ensures consistent code updates by replacing old names with new ones throughout the entire codebase simultaneously.

What is the best way to replace deprecated function calls during an API migration?

Replacing deprecated function calls during an API migration is best handled through automated pattern replacement. This updates all instances of old API calls to the new version consistently, ensuring your codebase adheres to the updated API version.

Can I automate large-scale code refactoring tasks across a whole project?

Yes, you can automate large-scale code refactoring across a whole project using automated execution mode. This mode handles larger refactors by applying bulk transformations, whereas smaller batches may use native tool-based operations.

How does pattern replacement work for updating old code patterns?

Pattern replacement for updating old code patterns works by searching for specific deprecated syntax or structures and substituting them with the new patterns. This ensures consistent code updates and eliminates repetitive manual edits across files.

Do I need any specific dependencies to perform bulk code transformations?

No specific dependencies are required to perform bulk code transformations. The refactoring operations run autonomously using internal scripts and references, supporting both native tool-based operations and automated execution without external dependencies.

When should I use automated execution mode over native tool-based operations for refactoring?

You should use automated execution mode for refactoring when handling larger batches of code updates. Native tool-based operations are better suited for smaller batches, while automated mode manages extensive refactors across multiple files efficiently.