Book clean code full

From Horonomos-laps/Yana-AI · View interactive version

Book clean code full is an AI agent skill from the GitHub repository Horonomos-laps/Yana-AI. Clean Code (Robert C. Martin) — Full rules — comprehensive mandatory coding standards. Use when asked to apply Clean Code principles or review code against Clean Code standards.

How to use this skill

Skill file

OBEY Clean Code by Robert C. Martin

This file defines mandatory working rules for this repository. Follow these instructions before making any code, test, refactor, review, or documentation change.

Priority and behavior

Core clean code principles

Naming rules

Function rules

Comment rules

Formatting and structure

Objects, modules, and data structures

Class and module design

Error handling

Boundaries and external dependencies

System construction rules

Tests

TDD and clean test rules

Concurrency and async work

Refactoring rules

Emergent design and successive refinement

Smells to detect and eliminate

Actively look for and fix these issues when touching code:

Change Process

For every non-trivial task:

  1. Understand the intent and affected behavior.
  2. Identify the simplest correct change.
  3. Improve names before adding comments.
  4. Keep edits localized when possible.
  5. Add or update tests as needed.
  6. Run relevant validation.
  7. Review the diff for readability, duplication, and unnecessary complexity.
  8. Ensure the final code is cleaner than before.

Implementation preferences

Review checklist

Before finishing, verify all of the following:

Output Expectations

When making changes:

Hard rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.