refactoring · seb1n/awesome-ai-agent-skills

Refactor code for readability and lower complexity

Systematically finds code smells like long functions, duplicated logic, and deep nesting, then applies proven patterns such as Extract Method or Rename Symbol while running tests to confirm behavior stays unchanged.

Good for

  • Break a long function into smaller pieces
  • Remove duplicated logic across a codebase
  • Simplify deeply nested conditional statements
Category
Coding

Open-source skills are maintained by their authors and listed as published, with attribution. Results depend on how well the skill fits your task and material.

A good place to start

Refactor this function to reduce nesting and duplication, and keep all existing tests passing.

Make your next great thing.

Bring a question, a file, or an idea that’s not quite there yet.