decebals/claude-code-java / skills/java-code-review
java-code-review
UnverifiedSystematic code review for Java with null safety, exception handling, concurrency, and performance checks. Use when user says "review code", "check this PR", "code review", or before merging changes.
README.md
View on GitHub# Java Code Review
**Load**: `view .claude/skills/java-code-review/SKILL.md`
---
## Description
Systematic code review checklist for Java projects. Covers null safety, exception handling, collections, concurrency, idioms, resource management, API design, and performance.
---
## Use Cases
- "Review this class"
- "Check this PR for issues"
- "Code review the changes in PluginManager"
- "What's wrong with this code?"
---
## Examples
```
> view .claude/skills/java-code-review/SKILL.md
> "Review the changes in src/main/java/org/example/UserService.java"
→ Returns findings grouped by severity (Critical → Minor)
```
---
## Checklist Categories
1. **Null Safety** - NPE risks, Optional usage
2. **Exception Handling** - Swallowed exceptions, stack traces
3. **Collections & Streams** - Iteration, mutability
4. **Concurrency** - Thread safety, race conditions
5. **Java Idioms** - equals/hashCode, builders
6. **Resource Management** - try-with-resources
7. **API Design** - Boolean params, validation
8. **Performance** - String concat, N+1 queries
---
## Notes / Tips
- Works best on focused changes (single class or PR)
- Includes positive feedback section for good practices
- Suggests tests for edge cases found during review
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 318k | Updated | Claude CodeCodex | Unverified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 318k | Updated | Claude CodeCodex | Unverified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 318k | Updated | Claude CodeCodex | Unverified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 318k | Updated | Claude CodeCodex | Unverified | Install |