一键导入
code-review
Perform thorough code reviews on pull requests, diffs, or code changes. Use when asked to review code, check a PR, or provide feedback on changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Perform thorough code reviews on pull requests, diffs, or code changes. Use when asked to review code, check a PR, or provide feedback on changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
SolidJS patterns, reactivity model, and best practices. Use when writing Solid components, reviewing Solid code, or debugging Solid issues.
React patterns, anti-patterns, and performance optimization. Use when writing React components, reviewing React code, or debugging React issues.
| name | code-review |
| description | Perform thorough code reviews on pull requests, diffs, or code changes. Use when asked to review code, check a PR, or provide feedback on changes. |
A structured approach to reviewing code changes.
When reviewing code, follow this process:
Before diving into the code:
Make multiple passes through the code:
First pass — Correctness
Second pass — Security
Third pass — Maintainability
Fourth pass — Performance
Structure your review:
## Summary
[One sentence overall assessment]
## What's Good
- [Positive observations]
## Suggestions
- [Actionable improvements, ordered by importance]
## Questions
- [Clarifying questions if any]
Categorize issues:
## Summary
Solid implementation of user authentication. One security issue needs addressing before merge.
## What's Good
- Clean separation of auth logic from route handlers
- Good use of bcrypt for password hashing
- Comprehensive error handling
## Suggestions
1. **[Blocker]** Line 45: Password reset token should use `crypto.randomBytes(32)` instead of `Math.random()` — predictable tokens are a security risk
2. **[Should fix]** Line 78: Consider adding rate limiting to prevent brute force attempts
3. **[Nitpick]** Line 12: Typo in variable name `authetication` → `authentication`
## Questions
- Is there a reason we're storing sessions in memory rather than Redis? This won't scale across multiple instances.