When writing or reviewing code:
- Follow project style guide (check CLAUDE.md first)
- Use meaningful variable names (no single letters except loops)
- Keep functions under 50 lines
- Add error handling for all external calls
- Write self-documenting code
- Avoid magic numbers (use named constants)
- Use early returns to reduce nesting
- Add JSDoc/docstrings for public APIs
- Prefer composition over inheritance
- Keep cyclomatic complexity low
Source: AgriciDaniel/claude-code-essentials-vs-code — distributed by TomeVault.