code-refactor
CheckedPerform bulk code refactoring operations like renaming variables/functions across files, replacing patterns, and updating API calls. Use when users request renaming identifiers, replacing deprecated c
Install on your platform
Showing OpenClaw.
- 1
Run this in your terminal
terminal$
What we know about this skill
Publisher
mhattingpete
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill passed all 6 checks. We read its files at one commit and looked for the things that make a skill dangerous to run — not for whether it works.
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No undeclared network calls: passed
Makes no network calls.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned mhattingpete/claude-skills-marketplace at b5b34bcf4c.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- b5b34bcf4c
- Scanned
- 1 file, 105 lines
About this skill
What it does
This skill automates large-scale code modifications within a project. It can rename variables and functions consistently across multiple files, replace specific code patterns with new ones, and update API call implementations based on provided instructions. The tool is designed to handle complex refactoring tasks that would be tedious or error-prone to perform manually.
When to use it
- Renaming Identifiers: A user requests renaming a function
oldFunctionNametonewFunctionNamethroughout the codebase. - API Migration: An API endpoint has changed, and you need to update all calls to that endpoint within your project.
- Pattern Replacement: You want to replace an outdated coding pattern (e.g., using a specific library function) with a newer alternative across several files.
- Code Cleanup: A user requests removing unused imports or standardizing code formatting in a large number of files.
Key capabilities
- Rename variables and functions across multiple files
- Replace code patterns with new implementations
- Update API call implementations
- Handles complex refactoring tasks
Example prompts
- "Refactor all instances of
calculateTotaltocomputeOrderSummary." - "Replace all uses of the deprecated
oldApiCall()function withnewApiCall(parameters)." - “Rename variable ‘user_id’ to ‘userId’ in all files.”
Tips & gotchas
This skill requires a clear understanding of the codebase and potential impact of refactoring changes. Always review the proposed modifications carefully before applying them, especially when dealing with large-scale replacements or API updates.