code-refactor

Rename identifiers, replace patterns, and update API calls across multiple files.

Updated Jan 13, 2026
One-click install
npx skills add https://github.com/shinnytech/caiwenqiang-member-rank --skill code-refactor-shinnytech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-refactor
Source: https://github.com/shinnytech/caiwenqiang-member-rank/tree/main/.cursor/skills/code-refactor
Command: npx skills add https://github.com/shinnytech/caiwenqiang-member-rank --skill code-refactor-shinnytech

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 your entire codebase.
  • Pattern Replacement: Replace deprecated code patterns or update API calls systematically.
  • 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 the function 'getUserData' to 'fetchUserData' across all Python files.

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 function across multiple files in my codebase?

To rename a function across multiple files, this Skill executes bulk code refactoring operations to systematically update identifiers. It automates repetitive code modifications, ensuring consistency and saving significant development time across your entire project.

What is the best way to replace deprecated API calls systematically?

The best way to replace deprecated API calls is using pattern replacement for systematic code modernization. This Skill handles bulk code refactoring by replacing deprecated code patterns and updating API calls across multiple files automatically.

Does this tool support large-scale codebase modernization tasks?

Yes, this tool supports large-scale codebase modernization tasks by executing scripts for deterministic operations. It addresses needs for code consistency and maintenance across multiple files, handling large scopes effectively via script execution.

How do I update old code patterns across 50 Python files at once?

To update old code patterns across 50 Python files at once, use this Skill's bulk code refactoring capabilities. It performs pattern replacement and bulk renaming operations across multiple files, ensuring code consistency and automated maintenance.

When should I use script execution versus native tools for code transformation?

You should use script execution for large-scale code transformation requiring deterministic tasks, and native tools for smaller scopes. This approach ensures consistent pattern replacement and API updates while optimizing the bulk refactoring workflow.