Code Refactor
ListedRefactors Python/Node.js backend code for improved readability, performance, and maintainability based on zpankz's style guidelines.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add zpankz/mcp-skillset --skill code-refactor -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
zpankz
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 failed 1 of 6 checks. A failure is not proof of bad intent; it means something in the code needs a human to look at it before you run it.
No undeclared network calls: failed
Contacts 1 host that is neither well-known infrastructure nor declared in the skill's frontmatter: old-api.com.
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.
Hosts contacted
old-api.comundeclaredWhat it found
- code-refactor/SKILL.md:86contacts old-api.com
old_string="const API_URL = 'http://old-api.com'",
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 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 zpankz/mcp-skillset at d9355d58c0.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- d9355d58c0
- Manifest
- code-refactor/SKILL.md
- Scanned
- 1 file, 324 lines
About this skill
What it does
This skill refactors existing code to improve readability, maintainability, and efficiency. It can identify areas of duplication, simplify complex logic, and adhere to specified coding standards. The tool aims to produce cleaner, more robust code while preserving the original functionality.
When to use it
- Legacy Codebase Cleanup: Refactor a large, old codebase to make it easier for new developers to understand and contribute.
- Technical Debt Reduction: Address specific areas of technical debt identified during code reviews or audits.
- Performance Optimization: Improve the efficiency of critical code sections by streamlining algorithms and reducing unnecessary operations.
- Code Style Enforcement: Ensure consistency across a project by automatically applying coding style guidelines.
Key capabilities
- Code refactoring
- Readability improvement
- Maintainability enhancement
- Efficiency optimization
- Coding standards adherence
Example prompts
- "Refactor this Python function to improve its readability and reduce complexity: [paste code here]"
- "Apply the PEP 8 style guide to this JavaScript file."
- "Identify and eliminate duplicate code blocks in this Java class."
Tips & gotchas
This skill requires providing well-defined code as input. It's best used on smaller, focused sections of code rather than entire projects initially.