MR
Mayur Rathi
@mayurrathi
⭐ 5 GitHub stars

Codebase Cleanup Refactor Clean

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...

mkdir -p ./skills/codebase-cleanup-refactor-clean && curl -sfL https://raw.githubusercontent.com/mayurrathi/awesome-agent-skills/main/skills/codebase-cleanup-refactor-clean/SKILL.md -o ./skills/codebase-cleanup-refactor-clean/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

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...

🎯 Best For

  • Tech leads planning refactors
  • Developers modernizing legacy code
  • Data analysts
  • Business intelligence teams
  • Claude users

💡 Use Cases

  • Migrating from class components to hooks
  • Breaking apart monolithic functions
  • Finding patterns in customer data
  • Creating automated dashboards

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Codebase Cleanup Refactor Clean to Your Work

    Provide context for your task — paste source material, describe your audience, or share existing work to guide the AI.

  4. 4

    Review and Refine

    Edit the AI output for accuracy, tone, and completeness. Add human insight where the AI lacks context.

❓ Frequently Asked Questions

Does this handle breaking changes?

Refactoring skills identify breaking changes but always run your test suite after applying suggestions.

Can this connect to my database directly?

Most data skills accept CSV or JSON input. Database connectors are listed in the Works With section.

Does Codebase Cleanup Refactor Clean generate production-ready design specs?

It generates detailed specifications that developers can use directly. Review and adjust for your specific design system.

How do I install Codebase Cleanup Refactor Clean?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/codebase-cleanup-refactor-clean/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Refactoring without tests

Never refactor critical paths without a comprehensive test suite to catch regressions.

Not validating data quality

AI analysis is only as good as your input data. Profile and clean data before analysis.

Not reading the full skill

Skills contain important context and edge cases beyond the quick start.

🔗 Related Skills