Guard Clauses
Use guard clauses instead of deeply nested conditionals
CLAUDE.md
Use guard clauses instead of deeply nested conditionals. Check for invalid conditions at the top of the function and return early, keeping the main logic at the base indentation level.
Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.