clean-code

Enforce SRP, DRY, KISS, and YAGNI coding standards during reviews and refactoring.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kulharir7/karya --skill clean-code-kulharir7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/kulharir7/karya/tree/main/workspace/plugins/clean-code
Command: npx skills add https://github.com/kulharir7/karya --skill clean-code-kulharir7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps developers write concise, direct, and maintainable code by applying pragmatic standards and avoiding unnecessary complexity or commented overload.

Core Features & Use Cases

  • Enforces SRP, DRY, KISS, YAGNI, and clean-code principles to reduce wasteful patterns.
  • Guides naming, function design, and structure to improve readability and reusability.
  • Use Case: onboarding new contributors or refactoring modules to achieve simpler, higher-quality implementations.

Quick Start

Start by auditing a module, apply SRP, DRY, and KISS principles, and refactor until no obvious improvements remain.

Frequently Asked Questions about clean-code

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

FAQPage Schema
What are the best practices for refactoring code to improve readability and maintainability?

Best practices for refactoring code include enforcing SRP, DRY, KISS, and YAGNI principles to reduce complexity. You should apply clean code standards, improve naming, use guard clauses, and avoid anti-patterns for higher-quality implementations.

How do I apply clean code standards during a code review?

Apply clean code standards during code reviews by checking for SRP, DRY, and KISS compliance, evaluating naming conventions, and ensuring guard clauses replace nested logic. Perform a mandatory self-check before commits to avoid anti-patterns and unnecessary complexity.

When do I need to use guard clauses in my code structure?

You need guard clauses to simplify function design and improve code readability by handling edge cases early. Using guard clauses prevents deeply nested conditional logic and aligns with pragmatic coding standards for maintainable structure.

Does this clean code guide work for onboarding new contributors to a project?

Yes, this clean code guide works for onboarding new contributors by providing concise coding standards and structure rules. It helps new team members understand naming conventions, SRP, and DRY principles to achieve simpler, higher-quality implementations quickly.

What is the difference between KISS and YAGNI principles in coding standards?

KISS promotes keeping implementations as simple as possible, while YAGNI avoids building functionality until it is necessary. Both are clean code principles enforced to reduce wasteful patterns, prevent unnecessary complexity, and maintain concise, readable code.

How do I start refactoring a module to meet clean code principles?

Start refactoring a module by auditing it against SRP, DRY, and KISS principles. Apply naming rules and guard clauses, then iterate until no obvious improvements remain, ensuring a mandatory self-check before final commits.