LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

refactoring

Refactoring assessment and patterns. Use after tests pass (GREEN phase) to assess improvement opportunities.

524stars71forksUpdated 2/18/2026
Code ReviewTesting & QA#code-cleanup#tdd#refactoring#testing#code-review#javascript

Security Assessment

Safe(100/100)
Security Score100/100

About refactoring

The 'refactoring' skill is designed to help developers assess and improve the structure of their code after the tests pass in the GREEN phase of Test-Driven Development (TDD). Refactoring is a critical step to ensure that code is not only functional but also maintainable, efficient, and clean. This skill focuses on identifying opportunities to simplify, organize, and improve the code without altering its behavior or introducing new features, thus reducing technical debt over time. It is especially useful for ensuring code remains scalable and easy to understand as projects grow and evolve.

FAQ

When should I perform refactoring?

Refactoring should always be performed after passing the GREEN phase and when it adds value to the code. It should not be done prematurely or without a clear benefit.

Can I refactor code that is already working correctly?

Refactoring should improve the code's structure without changing its behavior. It is appropriate when there are opportunities to improve readability or eliminate unnecessary complexity, but not if the code is already clean and functional.

What should I do if I don't have tests to cover the refactored code?

Refactoring should only be performed when there is a failing test that drives the change. If the refactoring is speculative or not driven by a test, it should be avoided.

Is there a specific workflow to follow during refactoring?

Yes, the recommended workflow involves committing working code before starting refactoring, making improvements, and committing the refactored code separately from feature commits to maintain clarity in version history.

Install refactoring

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

citypaul/.dotfiles

Related Skills

short-form-video

14

multi-asset-morning-briefing

7,907

content-strategy

2,901

doherty-threshold

2,901