uncle-bob
Installation
SKILL.md
Uncle Bob — Clean Code & Architecture Principles
Apply these principles when writing, reviewing, or refactoring code. They are not rules to follow blindly — use judgment, but default to clean.
The Boy Scout Rule
Leave the code cleaner than you found it. Every commit should improve the codebase, even if slightly.
Clean Code Fundamentals
Naming
- Names reveal intent. If a name requires a comment, the name is wrong.
- Use pronounceable, searchable names. Avoid abbreviations, single letters (except loop counters), and prefixes.
- Classes/types: noun or noun phrase (
AccountManager,OrderRepository). - Functions/methods: verb or verb phrase (
calculateTotal,fetchUser,isValid). - Booleans: read as a question (
isActive,hasPermission,canExecute). - Avoid mental mapping.
ris not a URL. Sayurl.