refactor-phase

Community

Refactor code, eliminate tech debt, ensure quality.

Authorfoolishimp
Version1.0.0
Installs0

System Documentation

What problem does it solve?

After making tests pass in TDD's GREEN phase, code often needs quality improvements and technical debt removal before being production-ready, a step frequently skipped or done poorly.

Core Features & Use Cases

  • Automated Refactoring: Improves code quality (type hints, naming, docstrings) and simplifies complex logic.
  • Tech Debt Pruning: Actively deletes unused imports, removes dead code, and eliminates commented-out blocks, enforcing "No Legacy Baggage."
  • Safety Checks: Runs all tests after each change, with automatic rollback on failure, ensuring code remains functional and stable.
  • Use Case: After implementing a feature and making tests pass, invoke this skill to automatically clean up the code, remove any unused elements, simplify complex parts, and ensure all tests still pass before committing.

Quick Start

Refactor the 'login()' function in 'src/auth/login.py' to improve code quality and remove any detected technical debt, verifying tests pass.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: refactor-phase
Download link: https://github.com/foolishimp/ai_sdlc_method/archive/main.zip#refactor-phase

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository