Util Multi File Refactor
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.
Run in terminal (recommended)
claude mcp add util-multi-file-refactor npx -- -y @trustedskills/util-multi-file-refactor
Or manually add to ~/.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
oldFunctionNametonewFunctionNameacross all.jsfiles." - “Update all instances of the class
LegacyClasstoNewClassin thesrc/directory.” - "Change the variable
myVartodataPointthroughout 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 Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.