Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Give agents more agency

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    fubira

    refactoring-assistant

    fubira/refactoring-assistant
    Productivity
    1
    9 installs

    About

    SKILL.md

    Install

    • Telegram
      Telegram
    • Slack
      Slack
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    • Download skill
    ├─
    ├─
    └─

    About

    Assists with code refactoring by detecting code smells, suggesting improvements, and providing refactoring patterns...

    SKILL.md

    Refactoring Assistant Skill

    Detect code smells and assist refactoring during development. Proactively suggest improvements without waiting for explicit requests.

    Activation Triggers

    • Threshold violations detected during code editing (automatic)
    • "refactor", "code smell" (manual)

    Code Smell Thresholds

    Code Smell Threshold Action
    Long Method > 50 lines Extract functions
    Duplicate Code 3+ occurrences Extract to shared function/constant
    Deep Nesting > 3 levels Early return, extract conditions
    Long Parameter List > 5 params Structured params (TS: RORO, Go: struct)
    Large Module > 300 lines Split into smaller modules
    Complex Conditional > 3 conditions Extract to named function/variable

    Workflow

    1. Detect: Read code, match against thresholds. Prioritize by severity (security > readability > style)
    2. Analyze: Consider context (one-off vs recurring, business justification for complexity)
    3. Suggest: Show location (file:line), present before/after with trade-offs. Execute after user approval (partial approval OK)
    4. Implement: Make small incremental changes. Run tests/linter to verify. Record new patterns via knowledge-manager

    Guardrails

    • Do not refactor without test coverage (add tests first)
    • Do not change behavior (refactoring ≠ feature change)
    • Prefer incremental improvement over large-scale rewrites
    Recommended Servers
    Context7
    Context7
    ThinAir Data
    ThinAir Data
    Microsoft Learn MCP
    Microsoft Learn MCP
    Repository
    fubira/claude-code-settings
    Files