code-refactor

Locate and replace identifiers, patterns, and API calls across a repository.

7|3|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/Zpankz/mcp-skillset --skill code-refactor-zpankz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-refactor
Source: https://github.com/Zpankz/mcp-skillset/tree/main/code-refactor
Command: npx skills add https://github.com/Zpankz/mcp-skillset --skill code-refactor-zpankz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Refactor code across a project by safely renaming identifiers, replacing patterns, and updating API calls, preserving functionality.

Core Features & Use Cases

  • Locate all occurrences of a pattern or identifier across multiple files with context.
  • Replace across files in bulk or selectively with preview and validation workflows.
  • Update deprecated APIs or coding patterns and standardize code structure across the repo.

Quick Start

Rename getUserData to fetchUserData everywhere.

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 identifiers across multiple files in a codebase?

To safely rename identifiers across a codebase, use multi-file search with context to locate all occurrences, then apply bulk edits with preview and validation workflows to preserve functionality. This ensures refactoring is auditable and safe.

What's the best way to replace deprecated API calls across an entire repository?

Replacing deprecated API calls across a repository requires locating all occurrences with multi-file search, then applying controlled edits with validation. Pattern replacement with case-sensitivity options ensures API standardization across the project.

Can I preview pattern replacements in my code before committing the changes?

Yes, you can preview pattern replacements before committing. The controlled edit workflow generates previews of bulk edits across files, allowing you to validate changes and ensure functionality is preserved before applying them.

How do I locate specific coding patterns across a project for standardization?

To locate coding patterns across a project for standardization, perform a multi-file search using regex and case-sensitivity options. This retrieves all occurrences with surrounding context, enabling targeted bulk replacements to standardize code structure.

Does bulk code refactoring handle errors when updating multiple files at scale?

Bulk code refactoring includes error handling and best-practice guidance to manage updates across multiple files at scale. This controlled workflow ensures scalable refactoring across projects while maintaining safety and auditability during replacements.