sivaprasadreddy/sivalabs-agent-skills/java-code-review
Claude Code and agent skill by sivaprasadreddy/sivalabs-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Review Java code for bugs, duplicate code, correctness risks, maintainability improvements, and missing tests. By default review files modified in git; when the user explicitly names files, classes, packages, or a diff, review that scope instead. Generate a detailed review.md report with actionable comments and fixes.
Install
npx vskill@latest install sivaprasadreddy/sivalabs-agent-skills/java-code-reviewSKILL.md
Java Code Review
Perform a focused, evidence-based review of Java code and write the findings to review.md in the repository root unless the user specifies another location. This skill reviews code; do not modify production code unless the user explicitly asks for fixes.
Establish the review scope
- If the user explicitly specifies files, classes, packages, commits, or a
diff, use that scope and do not silently broaden it.
- Otherwise inspect the git worktree and review modified, added, or renamed
files. Use git status --short and the relevant git diff (including staged changes when present). For renamed files, review the resulting file and the meaningful diff.
- Include only Java and Java-adjacent files relevant to behavior (for
example, tests, SQL migrations, configuration, or API schemas) when they affect the reviewed Java code. State the selected scope in the report.
- Read enough surrounding code, callers, tests, configuration, and interfaces
to validate each finding. Do not report a concern based only on a name or a generic best practice.
Review for
- Potential bugs: incorrect conditions, null/empty handling, state or
transaction errors, exception handling, resource leaks, concurrency issues, security or authorization gaps, API/serialization mismatches, persistence mistakes, and boundary cases.
- Duplicate code: repeated logic, copy-pasted branches, duplicated
mappings/validation, and abstractions that would reduce meaningful drift.
- Needs improvement: unclear or brittle design, excessive coupling,
misleading names, avoidable complexity, test gaps, performance concerns, and violations of established project conventions.
Prioritize correctness and impact over style. Do not flag formatting or an opinionated alternative unless it creates a concrete maintenance, reliability, security, or performance problem. Distinguish confirmed issues from risks or questions, and avoid speculative findings.
Validate findings
For every finding, trace the relevant control flow and data flow. Check nearby tests and, when practical, run the narrowest useful test, compile, static analysis, or reproduction command. Do not change files to make validation pass. If validation cannot be run, say why. Check whether a suspected issue is already handled by a caller, framework contract, annotation, or configuration.
Write review.md
Before writing, check whether the requested output file already exists.
- If it exists, ask the user whether to overwrite it or use a new filename;
do not overwrite without that choice.
- If the user chooses a new filename, use exactly that filename (within the
repository or requested output location).
- If no report exists, create
review.md.
The report must be self-contained and include:
Use severity consistently: Blocker (unsafe or clearly broken), High (likely production failure or serious security/data issue), Medium (meaningful bug or maintainability risk), and Low (minor but actionable). Order findings by severity, then by file and line. Include one finding per distinct problem, avoid duplicates, and use precise line references that still make sense in the reviewed version. If no findings are found, say so clearly and still include scope, validation, and positive observations.
Final response
Tell the user that the report was created and link to the generated file. Give the finding count and briefly call out any Blocker or High findings. If the report could not be created because an existing file needs a choice, ask the overwrite/new-filename question and stop before writing.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/java-code-review/SKILL.md
Popularity
- Repository stars
- 181
- Repository forks
- 41
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sivaprasadreddy/sivalabs-agent-skills/java-code-review)