code-refactor

Rename identifiers and replace patterns across multiple code files.

3|1|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/I-Onlabs/claude-code-skills --skill code-refactor-i-onlabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-refactor
Source: https://github.com/I-Onlabs/claude-code-skills/tree/main/code-refactor
Command: npx skills add https://github.com/I-Onlabs/claude-code-skills --skill code-refactor-i-onlabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Code refactoring across a codebase to rename identifiers, replace patterns, and update API calls with safety checks and minimal risk of breaking changes.

Core Features & Use Cases

  • Bulk identifier renaming across files
  • Pattern-based replacements and modernization
  • Safe, auditable changes with validation and previews

Quick Start

Rename an identifier across multiple files by requesting a scoped refactor, e.g., rename oldName to newName in all Python files under src/.

Frequently Asked Questions about code-refactor

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

FAQPage Schema
How do I safely rename an identifier across multiple files in a repository?

To safely rename identifiers across multiple files, you can automate the refactor with previews, change validation, and compatibility checks. This ensures consistent updates across 10+ files with minimal risk of breaking changes before applying edits.

What is the best way to bulk replace code patterns and update API calls?

Bulk replacing code patterns and updating API calls is best handled by automated refactoring. It targets common languages like Python, JavaScript, and Java to apply pattern-based replacements and modernize code consistently across the entire repository.

Can I use automated refactoring for large scale codebase modernization in Python and JavaScript?

Yes, you can use automated refactoring for large scale codebase modernization in Python and JavaScript. It handles multi-file scopes of 10+ files to standardize code edits and safely apply modernization updates across your repository.

How do I preview and validate bulk code changes before applying them?

To preview and validate bulk code changes before applying them, use an automated refactoring tool that enforces safe edits. It generates previews and runs compatibility checks to ensure the rename or pattern replacement won't break existing code.

Does multi-file code refactoring work with Java repositories?

Yes, multi-file code refactoring works with Java repositories. The automated process safely targets common languages including Java, JavaScript, and Python to execute bulk identifier renames and pattern replacements across 10 or more files.