code-quality

Identify design flaws, naming issues, and refactoring opportunities in source code.

Updated Mar 23, 2026
One-click install
npx skills add https://github.com/luyangliuable/claude-setup --skill code-quality-luyangliuable
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality
Source: https://github.com/luyangliuable/claude-setup/tree/main/.agents/skills/code-quality
Command: npx skills add https://github.com/luyangliuable/claude-setup --skill code-quality-luyangliuable

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you write, review, and refactor code so it is easier to understand, safer to change, and less likely to accumulate technical debt.

Core Features & Use Cases

  • Code quality guidance: Applies Clean Code, SOLID, DRY, CUPID, coupling, cohesion, and connascence principles to everyday implementation decisions.
  • Refactoring support: Identifies code smells such as long methods, data clumps, feature envy, duplicate code, and god classes, then suggests practical fixes.
  • Naming and design review: Improves class, method, and variable names, plus architecture choices for better maintainability.
  • React-specific best practices: Supports component design, state placement, and prop contracts using React-oriented SOLID and thinking-in-React guidance.
  • Use Case: A developer asks for help reviewing a complex module and gets targeted recommendations for splitting responsibilities, reducing duplication, and simplifying dependencies.

Quick Start

Ask for a review of the code you are working on and request the most important quality issues, refactoring opportunities, and naming improvements.

Frequently Asked Questions about code-quality

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify code smells and refactoring opportunities in my source code?

SOLID principles guide refactoring by mapping code smells like feature envy and duplicate code to actionable fixes. Restructuring responsibilities and reducing coupling ensures source code stays easier to understand, safer to change, and less likely to accumulate technical debt.

What is the best way to apply clean code and SOLID principles to React components?

Code review improves naming and design choices by identifying unclear class, method, and variable names. Applying Clean Code, DRY, and CUPID principles during reviews ensures better architecture decisions and enhances overall code quality for long-term maintainability.

How do I reduce coupling and improve cohesion when restructuring complex modules?

Reducing coupling and improving cohesion requires analyzing connascence and dependencies within complex modules. Targeted refactoring splits responsibilities, simplifies dependencies, and maps design flaws to actionable fixes, making the module easier to understand and safer to change.

Can I use this approach to review both new code and existing implementations?

Yes, this approach applies to writing new code, reviewing existing implementations, and restructuring domain logic. It identifies design flaws and refactoring opportunities across all stages, ensuring source code remains maintainable and less prone to accumulating technical debt.