一键导入
review
Quick code review for files or recent changes, checking for bugs, best practices, and potential improvements
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Quick code review for files or recent changes, checking for bugs, best practices, and potential improvements
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Answer questions about kite spots, weather forecasts, and live wind conditions from varun.surf by fetching its public LLM-friendly Markdown endpoints (llms.txt). Use when the user asks about a specific kite spot, current wind conditions, hourly/daily forecasts, or wants to compare spots/countries covered by varun.surf.
Stage and commit current changes with a well-crafted commit message following project conventions
Explain data flows, features, and code paths in the varun.surf application with visual diagrams and step-by-step breakdowns
Verify architecture health including layer violations, circular dependencies, package structure, and design pattern compliance
Quick security audit checking for hardcoded secrets, SSRF vectors, injection points, dependency issues, and missing security headers
Find concurrency issues including race conditions, deadlocks, unsafe shared state, and improper synchronization
| name | review |
| description | Quick code review for files or recent changes, checking for bugs, best practices, and potential improvements |
Perform a quick, focused code review on specified files or recent git changes.
Parse the user's request to determine what to review:
/review src/main/java/.../MyService.java/review changes or /review diff/review staged/review last-commit/review ForecastService (find and review related files)Based on scope:
For specific files:
Read to load the file contentFor git changes:
Bash with git diff for unstaged changesBash with git diff --cached for staged changesBash with git show HEAD for last commitBash with git diff HEAD~N for recent N commitsFor component/feature:
Glob and Grep to find relevant filesAnalyze the code for:
Categorize findings:
## Code Review: [File/Scope]
### Summary
- Files reviewed: X
- Lines analyzed: Y
- Issues found: Z (X critical, Y warnings, Z suggestions)
### Critical Issues
#### [Issue Title]
**File**: `path/to/file.java:line`
**Problem**: [Description]
**Fix**: [Suggested solution]
```java
// Before
problematic code
// After
fixed code
File: path/to/file.java:line
Problem: [Description]
Suggestion: [How to improve]
file.java:42 - Consider extracting this to a methodfile.java:78 - Variable name could be more descriptivepath/to/file1.java - [brief note]path/to/file2.java - [brief note]
## Examples
```bash
# Review a specific file
/review src/main/java/com/github/pwittchen/varun/service/ForecastService.java
# Review recent uncommitted changes
/review changes
# Review staged changes before commit
/review staged
# Review the last commit
/review last-commit
# Review a component by name
/review AggregatorService
# Review multiple files
/review src/main/java/.../controller/*.java