clean-code

Enforce pragmatic coding standards to reduce code smells and improve maintainability.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/uesleinasch/unac-agents --skill clean-code-uesleinasch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/uesleinasch/unac-agents/tree/main/skills-shared/clean-code
Command: npx skills add https://github.com/uesleinasch/unac-agents --skill clean-code-uesleinasch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Busy development teams struggle with drift from best practices, leading to hard-to-maintain code and longer onboarding times. This Skill provides a concise, actionable set of coding standards to keep code clean and predictable.

Core Features & Use Cases

  • SRP, DRY, KISS, and YAGNI guidance to structure functions and classes with a single responsibility and minimal complexity.
  • Naming conventions and anti-patterns to improve readability and reduce bugs.
  • Guard clauses, flat structures, and componentization to simplify control flow and enhance testability.

Quick Start

Describe a current code issue to receive a targeted refactor plan aligned with clean-code principles.

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 fix code smells and improve maintainability?

To fix code smells and improve maintainability, apply pragmatic coding standards like SRP, DRY, KISS, and YAGNI. Restructure functions to have a single responsibility, enforce naming conventions, and simplify control flow using guard clauses for predictable code.

What is the best way to structure functions and classes for readability?

The best way to structure functions and classes for readability is applying the Single Responsibility Principle to minimize complexity. Use clear naming conventions and componentization to reduce bugs and make the software structure easier to navigate.

How do guard clauses simplify control flow in software engineering?

Guard clauses simplify control flow by checking conditions upfront and returning early, which flattens nested structures. This approach reduces complexity, enhances testability, and keeps the main logic readable without deep indentation.

Can these coding standards apply to multiple programming languages and project sizes?

Yes, these coding standards apply across multiple programming languages and project sizes. The rules specify universal principles like DRY and KISS to enforce pragmatic coding guardrails regardless of the specific software environment or scale.

When should I not use YAGNI in software design?

You should reconsider YAGNI when building core architectural foundations that explicitly require future scalability. However, to reduce code smells and complexity, you should generally avoid implementing features before they are needed.