Util Multi File Refactor

🌐Community
by dawiddutoit · vlatest · Repository

Refactors backend code across multiple files, improving consistency and readability based on specified rules.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add util-multi-file-refactor npx -- -y @trustedskills/util-multi-file-refactor
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "util-multi-file-refactor": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/util-multi-file-refactor"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill refactors code across multiple files in a project. It can rename variables, functions, or classes consistently throughout the codebase, and update imports to reflect these changes. This ensures that large-scale code modifications are performed accurately and efficiently.

When to use it

  • Renaming a function: You need to change the name of a core function used in multiple files across your project.
  • Refactoring a class: A class needs to be renamed or its structure altered, requiring updates across several files.
  • Standardizing variable names: You want to enforce consistent naming conventions for variables throughout a large codebase.
  • Updating imports after refactoring: After restructuring your project, you need to update import statements in multiple files.

Key capabilities

  • Multi-file code modification
  • Variable renaming
  • Function renaming
  • Class renaming
  • Import updating

Example prompts

  • "Rename the function oldFunctionName to newFunctionName across all .js files."
  • “Update all instances of the class LegacyClass to NewClass in the src/ directory.”
  • "Change the variable myVar to dataPoint throughout the project, and update any necessary imports."

Tips & gotchas

The skill requires access to the entire codebase. Ensure that the AI agent has appropriate permissions to read and write files within the relevant directories.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
dawiddutoit
Installs
4

🌐 Community

Passed automated security scans.