Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
sickn33 avatar

Codebase Cleanup Refactor Clean

  • 871 installs
  • 44k repo stars
  • Updated July 27, 2026
  • sickn33/antigravity-awesome-skills

codebase-cleanup-refactor-clean is a refactoring skill that detects code smells, SOLID violations, and performance issues then outputs a prioritized cleanup plan for developers hardening production codebases.

About

codebase-cleanup-refactor-clean is a Claude Code skill from sickn33/antigravity-awesome-skills that systematically scans code for smells, SOLID violations, and performance problems, then generates a prioritized refactoring plan with concrete before-and-after examples. Its playbook flags long methods beyond 20 lines, classes beyond 200 lines, duplication, dead code, magic numbers, tight coupling, and missing abstractions across SRP, OCP, LSP, ISP, and DIP checks. Developers reach for codebase-cleanup-refactor-clean before major releases, after fast feature sprints, or when onboarding to a legacy module. It suits SaaS, API, and CLI repositories needing structured cleanup rather than ad hoc edits.

  • Comprehensive code smell detection including long methods over 20 lines, classes over 200 lines, duplicates, dead code,
  • SOLID principle violation checker covering Single Responsibility through Dependency Inversion
  • Performance audit for inefficient algorithms, memory leaks, blocking calls and missing caching
  • Prioritized refactoring strategy separating Immediate Fixes from Method Extraction and larger architectural changes
  • Includes concrete code samples showing before-and-after transformations for every major refactoring pattern

Codebase Cleanup Refactor Clean by the numbers

  • 871 all-time installs (skills.sh)
  • +25 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #151 of 1,382 Code Review & Quality skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill codebase-cleanup-refactor-clean

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs871
repo stars44k
Security audit3 / 3 scanners passed
Last updatedJuly 27, 2026
Repositorysickn33/antigravity-awesome-skills

How do you prioritize codebase refactoring tasks?

Systematically detect code smells, SOLID violations, and performance issues then generate a prioritized refactoring plan with concrete before-and-after examples.

Who is it for?

Developers reviewing legacy or fast-grown modules who need a structured refactor backlog with SOLID and smell analysis before shipping.

Skip if: Greenfield prototypes with no existing code to analyze or teams seeking only formatter or linter auto-fixes without architectural guidance.

When should I use this skill?

The user asks to clean up code, find code smells, fix SOLID violations, or produce a prioritized refactoring plan with examples.

What you get

A prioritized refactoring plan listing code smells, SOLID violations, performance issues, and concrete before-and-after code samples.

  • Prioritized refactor plan
  • Before-and-after code examples
  • Smell and SOLID violation report

By the numbers

  • Playbook thresholds: methods longer than 20 lines
  • Playbook thresholds: classes larger than 200 lines

Files

SKILL.mdMarkdownGitHub ↗

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

  • Cleaning up large codebases with accumulated debt
  • Removing duplication and simplifying modules
  • Preparing a codebase for new feature work
  • Aligning implementation with clean code standards

Do not use this skill when

  • You only need a tiny targeted fix
  • Refactoring is blocked by policy or deadlines
  • The request is 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

  • Identify high-impact refactor candidates and risks.
  • Break work into small, testable steps.
  • Apply changes with a focus on readability and stability.
  • Validate with tests and targeted regression checks.
  • If detailed patterns are required, open resources/implementation-playbook.md.

Safety

  • Avoid large rewrites without agreement on scope.
  • Keep changes reviewable and reversible.

Output Format

  • Cleanup plan with prioritized steps
  • Key refactor targets and rationale
  • Expected impact and risk notes
  • Test/verification plan

Resources

  • resources/implementation-playbook.md for detailed patterns and examples.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Related skills

How it compares

Use codebase-cleanup-refactor-clean for architectural smell reports and refactor plans; use linter-only skills for style and formatting fixes.

FAQ

What thresholds does codebase-cleanup-refactor-clean use?

codebase-cleanup-refactor-clean flags long methods beyond 20 lines and large classes beyond 200 lines among other smells. The playbook also targets duplication, dead code, magic numbers, and tight coupling.

What does the refactor output include?

codebase-cleanup-refactor-clean delivers a prioritized refactoring plan with concrete before-and-after examples. Developers use it to sequence cleanup work across SOLID violations and performance issues.

Is Codebase Cleanup Refactor Clean safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Code Review & Qualitybackendintegrationstesting

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.