refactoring-techniques

Plan and apply behavior-preserving refactorings to Python and TypeScript codebases.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/TDMorales/skill_set_library --skill refactoring-techniques-tdmorales
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactoring-techniques
Source: https://github.com/TDMorales/skill_set_library/tree/main/skills/.experimental/refactoring-techniques
Command: npx skills add https://github.com/TDMorales/skill_set_library --skill refactoring-techniques-tdmorales

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and examples (resource) components.

What problem does it solve?

This Skill addresses code smells and design flaws by applying established, behavior-preserving refactoring techniques, leading to more maintainable, understandable, and robust codebases.

Core Features & Use Cases

  • Automated Refactoring: Applies specific refactoring techniques (e.g., Extract Method, Move Field) to improve code structure.
  • Plan or Implement: Can generate a detailed refactoring plan or directly implement the changes.
  • Use Case: You've identified a "Large Class" code smell. Use this Skill to automatically apply the "Extract Class" refactoring, splitting responsibilities into smaller, more manageable units.

Quick Start

Use the refactoring-techniques skill to plan the extraction of a method from the file 'utils.py' at line 50.

Frequently Asked Questions about refactoring-techniques

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

FAQPage Schema
How do I eliminate code smells like large classes in Python or TypeScript?

Apply behavior-preserving refactoring techniques like Extract Class to automatically split large class responsibilities into smaller, manageable units across Python and TypeScript codebases.

What is the best way to plan code refactoring without changing software behavior?

Generate a detailed refactoring plan referencing a catalog of roughly 19 core patterns with strict preconditions and invariants to ensure software behavior remains unchanged during structural improvements.

Can I automatically apply refactoring techniques to reduce code coupling?

Yes, automatically apply refactoring techniques like Move Field to reduce code coupling, eliminate design flaws, and directly implement structural improvements in Python and TypeScript codebases.

Does this refactoring approach support direct implementation or only planning?

This refactoring approach supports both direct implementation and planning modes, allowing you to automatically apply behavior-preserving changes or generate a detailed plan referencing established refactoring patterns.

When do I need to use established refactoring patterns for software engineering?

Use established refactoring patterns when you identify code smells or design flaws to improve maintainability, reduce coupling, and make your Python or TypeScript codebase more robust and understandable.

What are the limitations of applying refactoring techniques to improve code quality?

Refactoring techniques require meeting strict preconditions and invariants to preserve behavior, and the catalog is limited to roughly 19 core patterns targeting Python and TypeScript codebases.