clean-code-principles

Analyze code for SOLID, DRY, KISS, and design pattern adherence.

Updated May 25, 2026
One-click install
npx skills add https://github.com/ngquaanghuy/Crypto --skill clean-code-principles-ngquaanghuy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code-principles
Source: https://github.com/ngquaanghuy/Crypto/tree/main/.agents/skills/clean-code-principles
Command: npx skills add https://github.com/ngquaanghuy/Crypto --skill clean-code-principles-ngquaanghuy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers improve code quality, maintainability, and scalability by adhering to best practices such as SOLID principles, DRY, KISS, and design patterns.

Core Features & Use Cases

  • SOLID Principles: Follow the five fundamental object-oriented design principles for maintainable code.
  • DRY: Eliminate duplicate code with the Don't Repeat Yourself principle.
  • KISS: Keep your code as simple as possible but not simpler.
  • Design Patterns: Apply proven solutions to common software design problems.
  • Use Case: Refactor your codebase to follow clean code principles, improving readability and maintainability.

Quick Start

Use the clean-code-principles skill to review the architecture of the 'OrderService' class.

Frequently Asked Questions about clean-code-principles

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

FAQPage Schema
How do I analyze code for adherence to SOLID principles and DRY?

You can analyze code for SOLID and DRY by reviewing class architecture and design decisions to assess maintainability, eliminate duplicate logic, and ensure object-oriented design principles are followed. It evaluates code quality and suggests refactoring.

What's the best way to refactor a codebase to follow KISS and clean code principles?

Refactoring for KISS and clean code involves assessing your code's architecture to simplify logic without oversimplifying, applying proven design patterns, and eliminating duplication. This process improves overall readability and long-term maintainability.

How does applying design patterns improve code maintainability?

Applying design patterns improves maintainability by providing proven solutions to common software design problems. This ensures your codebase follows established object-oriented design principles, making the architecture more scalable and easier to refactor.

Do I need object-oriented design knowledge to assess code quality with clean code principles?

Yes, assessing code quality with clean code principles requires knowledge of object-oriented design practices. Understanding these foundational concepts is necessary to properly evaluate architecture, design decisions, and adherence to SOLID, DRY, and KISS.

Can I use clean code principles to review the architecture of a specific service class?

Yes, you can use clean code principles to review the architecture of a specific service class. For example, you can analyze an 'OrderService' class to assess its design decisions, check for duplicate code, and evaluate its overall structural quality.

When should I not use DRY to eliminate duplicate code?

While DRY eliminates duplicate code, you should avoid forcing it when duplicating logic actually increases clarity. Over-applying DRY can lead to premature abstractions, making the codebase harder to maintain and violating the KISS principle of keeping code simple.