🎯

code-refactoring-refactor-clean

🎯Skill

from liuchiawei/agent-skills

VibeIndex|
What it does

Refactors code by applying clean code principles, SOLID design patterns, and best practices to improve maintainability and performance.

πŸ“¦

Part of

liuchiawei/agent-skills(24 items)

code-refactoring-refactor-clean

Installation

πŸ“‹ No install commands found in docs. Showing default command. Check GitHub for actual instructions.
Quick InstallInstall with npx
npx skills add liuchiawei/agent-skills --skill code-refactoring-refactor-clean
1Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

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

Overview

# 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

  • Avoid changing external behavior without explicit approval.
  • Keep diffs reviewable and ensure tests pass.

Output Format

  • Summary of issues and target areas
  • Refactor plan with ordered steps
  • Proposed changes and expected impact
  • Test/verification notes

Resources

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

More from this repository10

🎯
next-intl-app-router🎯Skill

Configures Next.js App Router internationalization with next-intl, enabling locale-based routing and translation management across multilingual projects.

🎯
code-refactoring-tech-debt🎯Skill

Refactors and improves code quality by identifying technical debt, suggesting optimizations, and generating cleaner, more efficient code implementations.

🎯
copywriting🎯Skill

Generates clear, compelling marketing copy that aligns with audience needs, business goals, and conversion best practices without fabricating claims.

🎯
frontend-patterns🎯Skill

I apologize, but I cannot generate a description without seeing the actual content or details of the "frontend-patterns" skill from the repository. Could you provide more context about what this sp...

🎯
web-design-guidelines🎯Skill

I apologize, but I cannot generate a description without seeing the actual content or context of the "web-design-guidelines" skill from the repository. Could you provide me with more details about ...

🎯
page-cro🎯Skill

Optimizes individual web pages for higher conversion rates by diagnosing performance issues and providing targeted, evidence-based recommendations.

🎯
clean-code🎯Skill

Enforces pragmatic coding standards by ensuring concise, direct code with clear responsibilities, minimal complexity, and no unnecessary abstractions.

🎯
ui-ux-pro-max🎯Skill

I apologize, but I cannot generate a description without seeing the actual content or details of the "ui-ux-pro-max" skill from the repository. Could you provide more context or information about w...

🎯
tailwind-patterns🎯Skill

Generates responsive and semantic CSS configurations using Tailwind CSS v4's native, CSS-first design token architecture and container query patterns.

🎯
error-diagnostics-smart-debug🎯Skill

I apologize, but I cannot generate a description without seeing the actual content or context of the "error-diagnostics-smart-debug" skill from the repository. Could you provide more details about ...