| DRY | Don't Repeat Yourself | Copy-pasted code blocks | | KISS | Keep It Simple, Stupid | Over-engineered solutions | | YAGNI | You Aren't Gonna Need It | Features "just in case" |
"Every piece of knowledge must have a single, unambiguous representation in the system."
| Class | PascalCase, noun | OrderService | | Interface | PascalCase, adjective or noun | Comparable, List | | Method | camelCase, verb | calculateTotal() | | Variable | camelCase, noun | customerEmail | | Constant | UPPERSNAKE | MAXRETRYCOUNT | | Package | lowercase | com.example.orders |
Clean Code principles (DRY, KISS, YAGNI), naming conventions, function design, and refactoring. Use when user says "clean this code", "refactor", "improve readability", or when reviewing code quality. Source: decebals/claude-code-java.