code-refactoring-refactor-clean

Analyzes Python, TypeScript, and Java code to produce a prioritized refactoring plan.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/chicanoandres702/SentientAIBrowser --skill code-refactoring-refactor-clean-chicanoandres702
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-refactoring-refactor-clean
Source: https://github.com/chicanoandres702/SentientAIBrowser/tree/main/.agents/workflows/code-refactoring-refactor-clean
Command: npx skills add https://github.com/chicanoandres702/SentientAIBrowser --skill code-refactoring-refactor-clean-chicanoandres702

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cleans up and restructures codebases to improve readability, maintainability, and alignment with clean code principles, SOLID design patterns, and modern software engineering practices.

Core Features & Use Cases

  • Detects code smells and anti-patterns
  • Produces a concrete, incremental refactoring plan (SRP, DI, patterns)
  • Generates implementation details, class design, and test scaffolding

Quick Start

Provide the target code and I will return a modular, SRP-aligned refactor plan with concrete class design and tests.

Frequently Asked Questions about code-refactoring-refactor-clean

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

FAQPage Schema
How do I refactor legacy code to fix SOLID violations and code smells?

To refactor legacy code, this skill analyzes your components to identify anti-patterns and SOLID violations, then produces a prioritized, incremental plan for modularization, interface design, and dependency injection.

Can I generate a refactoring plan for a Python or TypeScript monolith?

Yes, you can generate refactoring plans for Python, TypeScript, and Java components across monoliths and microservices, targeting feature-rich modules and legacy codebases for improved maintainability.

What is the best way to apply clean code principles to existing microservices?

The best way to apply clean code principles is by analyzing your microservices for code smells, then following a concrete refactoring plan that aligns with SRP, dependency injection, and modern design patterns.

How do I create test scaffolding when restructuring complex modules?

When restructuring complex modules, the skill generates implementation details, class design, and test scaffolding alongside the refactoring plan to ensure your modularized components satisfy testing requirements.

Does this approach handle dependency injection and interface design for legacy code?

Yes, this approach handles dependency injection and interface design by producing an incremental refactoring plan that explicitly satisfies modularization and error handling requirements for legacy code.