refactor

Refactor code across a codebase using parallel agents and validation.

Updated Aug 6, 2025
One-click install
npx skills add https://github.com/flosrn/.claude --skill refactor-flosrn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor
Source: https://github.com/flosrn/.claude/tree/main/skills/utils-refactor
Command: npx skills add https://github.com/flosrn/.claude --skill refactor-flosrn

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, ensuring consistency and improving code quality efficiently.

Core Features & Use Cases

  • Automated Code Transformation: Apply consistent changes like renaming, pattern updates, or code smell fixes across the entire codebase.
  • Parallel Processing: Utilizes multiple agents to speed up refactoring tasks significantly.
  • Use Case: Rename a method getUserData to fetchUserProfile across all relevant files in the project.

Quick Start

Use the refactor skill to rename the method oldMethodName to newMethodName across the project.

Frequently Asked Questions about refactor

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

FAQPage Schema
How do I refactor a method name across multiple files in a codebase?

To refactor a method name across multiple files, this Skill parses your request, finds all affected files, and applies the renaming transformation in parallel batches. It then validates the changes to ensure consistent updates across the entire project.

What is the best way to fix code smells across an entire project automatically?

Automated code transformation is the best way to fix code smells across a project. This Skill uses parallel Snipper agents to find affected files, apply pattern updates, and execute transformations simultaneously, followed by validation to ensure consistent code quality improvements.

Can I apply consistent pattern updates to my codebase using parallel processing?

Yes, you can apply consistent pattern updates using parallel processing. This Skill creates instructions for each affected file and executes the code transformations in parallel batches, significantly speeding up the refactoring process while maintaining consistency.

Does automated code transformation work for large scale refactoring tasks?

Automated code transformation works for large scale refactoring tasks by utilizing multiple agents for parallel processing. It parses refactor requests, finds affected files across the codebase, and executes transformations in parallel batches followed by validation to handle scale efficiently.

Why use parallel agents for code refactoring instead of sequential updates?

Parallel agents speed up refactoring tasks significantly compared to sequential updates. By executing code transformations in parallel batches across affected files, this approach reduces processing time while still applying consistent changes and validating the results.

What types of code refactoring tasks can be automated with this approach?

Automated refactoring tasks include renaming methods, updating patterns, fixing code smells, and applying consistent changes across a codebase. The Skill parses these refactor requests, finds affected files, and executes the transformations in parallel batches with validation.