一键导入
code-review
Evaluate code quality, patterns, and bugs — platform-agnostic
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Evaluate code quality, patterns, and bugs — platform-agnostic
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review pull requests for code quality, security, and correctness
Review pull requests for code quality, security, and correctness
End-to-end shipping workflow — tests, PR creation, review request. Unified pr-create + pr-complete.
Periodic cross-agent learning consolidation — review what worked, what didn't, propagate insights
Break down complex problems through structured analytical frameworks
Persist and recall context across sessions — critical for continuity
| name | code-review |
| version | 1.0.0 |
| description | Evaluate code quality, patterns, and bugs — platform-agnostic |
| uses | ["analysis/deep-analysis"] |
| requires | {"tools":[],"env":[]} |
| security | {"risk_level":"read","capabilities":["file:read"],"requires_approval":false} |
Evaluate code quality, patterns, and bugs — independent of any platform (not tied to PRs, GitHub, or specific review tools). This is the pure craft skill for reading and assessing code.
This is an agent-handled skill (handler: type: agent). When review_code is invoked, you (the agent) apply the methodology below using your reasoning capabilities. There is no backing code — you follow these instructions directly. The tool schema in tool.yaml defines the external contract; this document guides how you fulfill it.
Distinction from PR review: The development/pr-review and review/pr-review skills handle platform-specific PR workflows (fetching diffs, posting comments via GitHub API). This skill provides the underlying code assessment methodology that those skills build upon.
Before reviewing, establish:
Check for vulnerabilities following OWASP guidelines:
| Category | Check |
|---|---|
| Injection | SQL injection, command injection, XSS |
| Authentication | Proper credential handling, session management |
| Authorization | Access control checks on all operations |
| Data exposure | Sensitive data in logs, errors, or responses |
| Input validation | All external input validated and sanitized |
| Cryptography | Proper use of crypto, no hardcoded secrets |
| Dependencies | Known vulnerable dependencies |
Verify the code is logically correct:
Evaluate the design decisions:
Assess long-term maintainability:
Check for performance concerns:
Categorize each finding:
| Severity | Criteria | Action |
|---|---|---|
| Critical | Security vulnerability, data loss risk | Must fix immediately |
| Major | Bug, incorrect behavior | Must fix before deployment |
| Minor | Code quality, maintainability | Should fix |
| Suggestion | Alternative approach, nice-to-have | Consider |
## Code Review: [Target]
### Summary
- Files reviewed: [count]
- Issues found: [count by severity]
- Overall quality: [good/acceptable/needs-work/concerning]
### Critical Issues
| # | File:Line | Issue | Recommendation |
|---|-----------|-------|----------------|
| 1 | [location] | [description] | [how to fix] |
### Major Issues
| # | File:Line | Issue | Recommendation |
|---|-----------|-------|----------------|
### Minor Issues
| # | File:Line | Issue | Recommendation |
|---|-----------|-------|----------------|
### Positive Observations
- [good pattern observed]
- [well-handled case]
### Recommendations
1. [prioritized action item]
2. [prioritized action item]
A code review is complete when: