clean-code

Identify and fix code smells with concrete refactoring guidance.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Clean Code helps teams write, review, and refactor code to improve readability, maintainability, and overall quality according to Uncle Bob's principles.

Core Features & Use Cases

  • Review code for naming, readability, and modular design.
  • Refactor functions to reduce duplication, improve single responsibility, and enhance testability.
  • Apply SOLID, TDD, and best practices to guide code quality in reviews and maintenance.

Quick Start

Give me a clean, refactored version of the provided function following SOLID and TDD guidelines.

Frequently Asked Questions about clean-code

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

FAQPage Schema
How do I refactor code to improve readability and fix code smells?

To refactor code and improve readability, apply Clean Code principles to identify code smells, reduce duplication, and produce ready-to-run changes that respect existing tests and dependencies.

What is the best way to apply SOLID principles during a code review?

Applying SOLID principles during code review involves checking for naming improvements, modular design, and single responsibility to enhance testability and overall code maintainability.

How do I clean up a function following TDD guidelines without breaking dependencies?

Cleaning up a function with TDD guidelines involves refactoring to reduce duplication while respecting existing tests, ensuring the changes maintain current dependencies and pass test-driven development checks.

Can I use clean code practices for refactoring tasks across different programming languages?

Yes, clean code practices apply to refactoring tasks across languages and projects, providing concrete guidance for code reviews, naming improvements, and test-driven development regardless of the specific language.

Why does testability matter when refactoring functions to reduce duplication?

Testability matters when refactoring functions because reducing duplication and improving single responsibility ensures the code remains maintainable and that ready-to-run changes respect existing tests.

When do I need to apply clean code principles for maintaining existing code?

You need to apply clean code principles when maintaining existing code to identify and fix code smells, improve naming and modular design, and guide quality according to Uncle Bob's standards.