code-refactor

Rename identifiers and replace text patterns across multiple files using grep and edit.

4|1|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/rm2thaddeus/Aitor_Skills --skill code-refactor-rm2thaddeus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-refactor
Source: https://github.com/rm2thaddeus/Aitor_Skills/tree/main/code-refactor
Command: npx skills add https://github.com/rm2thaddeus/Aitor_Skills --skill code-refactor-rm2thaddeus

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates repetitive and error-prone code modifications across multiple files, ensuring consistency and saving significant development time.

Core Features & Use Cases

  • Bulk Renaming: Rename variables, functions, and classes across an entire codebase.
  • Pattern Replacement: Replace deprecated code patterns or update API calls consistently.
  • Use Case: Refactor all instances of a deprecated function old_api_call to new_api_call across 50 Python files in your project.

Quick Start

Use the code-refactor skill to rename all occurrences of the variable temp_val to final_value within 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 at once?

You can perform bulk renaming to change variables, functions, and classes across an entire codebase simultaneously. This ensures consistent modifications and saves significant development time compared to manual edits.

What is the best way to update deprecated API calls consistently in my project?

Pattern replacement is the best way to update deprecated API calls consistently across your project. It targets scenarios requiring consistent modifications to codebases, such as migrating deprecated functions.

Can I replace text patterns across 50 Python files without manual editing?

Yes, you can replace text patterns across 50 Python files without manual editing. This automation handles repetitive and error-prone code modifications across multiple files, ensuring consistency.

How does bulk code refactoring handle large-scale changes?

Bulk code refactoring uses an optimized execution path for large-scale changes by leveraging grep for searching and edit for replacements. This ensures efficient and accurate modifications across massive codebases.

Does bulk refactoring work for standardizing naming conventions across a project?

Yes, bulk refactoring works for standardizing naming conventions across a project. It targets scenarios requiring consistent modifications to codebases, ensuring all identifiers follow the updated standard.