Code Refactor Master

🌐Community
by yennanliu · vlatest · Repository

Automatically refactors complex backend code for improved readability, maintainability, and performance using proven design patterns.

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 code-refactor-master npx -- -y @trustedskills/code-refactor-master
2

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

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

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

About This Skill

The code-refactor-master skill enables AI agents to analyze existing codebases and generate optimized, refactored versions. It focuses on improving readability, reducing complexity, and enforcing best practices without altering core functionality.

When to use it

  • Modernizing legacy code written in outdated styles or frameworks.
  • Reducing technical debt by simplifying complex logic blocks.
  • Standardizing formatting and naming conventions across a project.
  • Preparing code for team onboarding by enhancing clarity.

Key capabilities

  • Analyzes current code structure to identify inefficiencies.
  • Generates refactored code that maintains original behavior.
  • Applies industry-standard best practices for maintainability.
  • Optimizes variable names and function definitions for clarity.

Example prompts

  • "Refactor this Python script to use modern type hinting and remove unused imports."
  • "Analyze the provided JavaScript module and suggest structural improvements for scalability."
  • "Rewrite this legacy SQL query set to follow current performance best practices."

Tips & gotchas

Ensure you provide complete context or full files when requesting refactors, as partial snippets may lead to incomplete optimization. Always review generated code before merging, as the skill prioritizes style and structure over deep logic verification.

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
yennanliu
Installs
42

🌐 Community

Passed automated security scans.