# Clean Code

Apply Robert C.

- Repository: https://github.com/ciembor/agent-rules-books (3164 stars)
- Category: Design
- License: MIT
- Last updated: 2026-09-10
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add ciembor/agent-rules-books --skill clean-code -g -a claude-code -y`
Codex: `npx skills add ciembor/agent-rules-books --skill clean-code -g -a codex -y`
Cursor: `npx skills add ciembor/agent-rules-books --skill clean-code -g -a cursor -y`
Gemini CLI: `npx skills add ciembor/agent-rules-books --skill clean-code -g -a gemini-cli -y`

## Description

Apply Robert C. Martin-inspired clean code rules when improving readability, naming, function design, responsibilities, or testable everyday code.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Clean Code Skill

Use this skill when a task involves everyday implementation quality, naming, small functions, readable control flow, responsibilities, comments, errors, or tests.

Before making design or code decisions, read and apply [clean-code.mini.md](clean-code.mini.md). Use [clean-code.md](clean-code.md) only as a deeper reference when the mini rules are not enough for the current code-quality tradeoff.

