code-refactoring-advisor

Analyzes Python and Solidity code to detect smells and suggest refactorings.

17|45|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/XSpoonAi/spoon-awesome-skill --skill code-refactoring-advisor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-refactoring-advisor
Source: https://github.com/XSpoonAi/spoon-awesome-skill/tree/main/enterprise-skills/code-refactoring-advisor
Command: npx skills add https://github.com/XSpoonAi/spoon-awesome-skill --skill code-refactoring-advisor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Enterprise-grade tool that analyzes Python and Solidity code to detect smells, anti-patterns, and complexity issues, then provides actionable refactoring recommendations, test generation, and maintainability metrics.

Core Features & Use Cases

  • Detect code smells in Python and Solidity (e.g., God functions, long parameter lists, deep nesting, reentrancy concerns)
  • Analyze cyclomatic complexity and maintainability index to guide refactoring priorities
  • Generate concrete refactoring plans with before/after examples and code templates
  • Produce test generation strategies and templates to preserve behavior during refactors
  • Support enterprise workflows with language-agnostic safety through static analysis

Quick Start

Provide your Python or Solidity source code to analyze and receive concrete refactoring recommendations and tests.

Frequently Asked Questions about code-refactoring-advisor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect code smells and reduce cyclomatic complexity in Python?

To detect code smells and reduce Python complexity, you can analyze your source code statically to identify anti-patterns like God functions and deep nesting, then apply targeted refactoring recommendations to improve maintainability.

Can I run static analysis to find Solidity reentrancy concerns without executing code?

Yes, static analysis can identify Solidity reentrancy concerns and anti-patterns without executing code. It scans the source text to detect security smells and outputs structured results detailing suggested improvements for your smart contracts.

What is the best way to prioritize refactoring across a large enterprise codebase?

The best way to prioritize refactoring across a large codebase is to analyze cyclomatic complexity and maintainability metrics. This identifies the most critical code smells and generates a prioritized plan with concrete before and after examples.

How do I generate test strategies to preserve behavior during a code refactor?

To preserve behavior during a code refactor, generate test strategies and templates alongside your refactoring plan. This ensures your Python or Solidity modules maintain their original logic by validating static analysis improvements against expected outputs.

Does this static analysis approach work with both single modules and enterprise-scale repositories?

Yes, this static analysis approach works with codebases of varying sizes, from single modules to enterprise-scale repositories. It identifies smells and tracks maintainability without requiring code execution or specific runtime environments.