sickn33 avatar

Code Refactoring Refactor Clean

When you've got legacy code that works but makes you wince every time you touch it, this skill walks through the refactoring systematically. It identifies code smells and dependency tangles, then proposes incremental changes that won't blow up your app. The emphasis on keeping diffs reviewable and behavior stable is smart, since big bang refactors are where things usually go sideways. It applies SOLID principles and clean code patterns without over-engineering, and includes a verification step to catch regressions. Best for medium to large refactoring efforts where you need a structured approach, not quick cosmetic fixes.

skills.sh installs
982
GitHub stars
43.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add sickn33/antigravity-awesome-skills --skill code-refactoring-refactor-clean --agent claude-code

Installs into .claude/skills of the current project.

Files

Refactor and Clean Code

You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its quality, maintainability, and performance.

Use this skill when

  • Refactoring tangled or hard-to-maintain code
  • Reducing duplication, complexity, or code smells
  • Improving testability and design consistency
  • Preparing modules for new features safely

Do not use this skill when

  • You only need a small one-line fix
  • Refactoring is prohibited due to change freeze
  • The request is for documentation only

Context

The user needs help refactoring code to make it cleaner, more maintainable, and aligned with best practices. Focus on practical improvements that enhance code quality without over-engineering.

Requirements

$ARGUMENTS

Instructions

  • Assess code smells, dependencies, and risky hotspots.
  • Propose a refactor plan with incremental steps.
  • Apply changes in small slices and keep behavior stable.
  • Update tests and verify regressions.
  • If detailed patterns are required, open resources/implementation-playbook.md.

Safety

Sponsors

Details

Repository
github.com/sickn33/antigravity-awesome-skills
Category
Code Review & Quality
First seen
Apr 16, 2026

More from sickn33/antigravity-awesome-skills

All 708
1sickn33 avatararchitect-reviewsickn33/antigravity-awesome-skillsarchitect review965skills.sh installs
2n0an avatarswift-format-stylen0an/swift-formatstyle-agent-skillWrites and reviews Swift FormatStyle code, replacing legacy Formatter subclasses and C-style String(format:) with modern .formatted() APIs. Use when formatting 465skills.sh installs
3levnikolaevich avatarln-624-code-quality-auditorlevnikolaevich/claude-code-skillsChecks cyclomatic complexity, nesting, long methods, god classes, O(n2), N+1 queries, constants management. Use when auditing code quality.413skills.sh installs
4srstomp avatararchitecture-reviewsrstomp/pokayokayUse when auditing project structure, planning refactors, improving code organization, analyzing dependencies and module boundaries, or identifying structural is412skills.sh installs
5tartinerlabs avatarnaming-formattartinerlabs/skillsUse when reviewing file names, renaming files, fixing naming conventions, or auditing exports. Enforces consistent casing and suffix patterns.407skills.sh installs
6decebals avatararchitecture-reviewdecebals/claude-code-javaAnalyze Java project architecture at macro level - package structure, module boundaries, dependency direction, and layering. Use when user asks "review architec374skills.sh installs