refactor

Refactor code across files by applying transformations in parallel batches.

1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/Devattom/.claude --skill refactor-devattom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor
Source: https://github.com/Devattom/.claude/tree/main/skills/utils-refactor
Command: npx skills add https://github.com/Devattom/.claude --skill refactor-devattom

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the process of refactoring code across multiple files, addressing issues like renaming methods, updating patterns, fixing code smells, and applying consistent changes efficiently.

Core Features & Use Cases

  • Parallel Code Transformation: Utilizes multiple "Snipper" agents to refactor code concurrently, significantly speeding up the process.
  • Automated Discovery: Intelligently searches the codebase for patterns or descriptions provided by the user.
  • Use Case: When you need to rename a widely used function like getUserData to fetchUserProfile across your entire project, this Skill can handle the task systematically and quickly.

Quick Start

Use the refactor skill to rename the method oldMethodName to newMethodName in all files.

Frequently Asked Questions about refactor

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

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

To apply a code transformation across multiple files, this Skill parses your refactoring request, discovers affected files automatically, and executes consistent changes concurrently. You simply provide the pattern or description to transform, and it handles the updates in parallel batches.

What is parallel code transformation and how does it speed up refactoring?

Parallel code transformation speeds up refactoring by utilizing multiple agents to modify code concurrently. Instead of processing files sequentially, the Skill generates transformation instructions and executes changes in parallel batches, significantly reducing the time needed for codebase-wide updates.

How do I fix code smells and update code patterns automatically?

You can fix code smells and update code patterns by providing a description of the issue to this Skill. It intelligently searches the codebase for matching patterns, generates the necessary transformation instructions, and applies the corrections across all identified files in parallel.

Can I use this refactoring tool without specifying exact file paths?

Yes, you can refactor code without specifying exact file paths because the Skill features automated discovery. It intelligently searches your codebase for the patterns or descriptions you provide, identifying affected files automatically before applying transformations.

What is the best way to ensure consistent changes when updating patterns across a large project?

The best way to ensure consistent changes across a large project is using an automated refactoring process with validation. This Skill applies transformations in parallel batches and follows up with validation to ensure consistent changes are maintained across all modified files.