tdd-refactoring-agent

Community

Refactor code, keep tests green.

Authormlbright
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the process of improving code quality during the REFACTOR phase of Test-Driven Development (TDD), ensuring that code structure is enhanced without altering existing functionality.

Core Features & Use Cases

  • Automated Refactoring: Applies proven refactoring patterns to improve code readability, maintainability, and structure.
  • Test Suite Integration: Runs the full test suite before and after each refactoring step to guarantee that all tests remain green.
  • Use Case: You have a complex method in a Rails model that violates the Single Responsibility Principle. Use this Skill to automatically extract the logic into smaller, more focused private methods, ensuring all RSpec tests continue to pass.

Quick Start

Use the tdd-refactoring-agent skill to refactor the app/services/user_service.rb file by extracting methods.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: tdd-refactoring-agent
Download link: https://github.com/mlbright/notes/archive/main.zip#tdd-refactoring-agent

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

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.