技能 code-review-checklist
📋

code-review-checklist

安全

Master Code Reviews with Comprehensive Checklists

This skill provides systematic checklists for conducting thorough code reviews, helping reviewers catch bugs, identify security issues, and maintain code quality standards across any codebase.

支持: Claude Codex Code(CC)
📊 71 充足
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“code-review-checklist”。 Review this code for security issues: const query = `SELECT * FROM users WHERE email = '${email}'`

预期结果:

Security Issue Found:

**Issue:** SQL Injection Vulnerability

The code uses string interpolation to build a SQL query, allowing attackers to inject malicious SQL code through the email parameter.

**Risk:** Attackers could extract, modify, or delete database contents.

**Recommendation:** Use parameterized queries:
```javascript
const query = 'SELECT * FROM users WHERE email = $1';
db.query(query, [email]);
```

正在使用“code-review-checklist”。 Check this code for best practices: function calc(a, b, c) { return a * b + c; }

预期结果:

Code Quality Issue Found:

**Issue:** Unclear naming

- Variable names 'a', 'b', 'c' are not descriptive
- Function name 'calc' does not explain what is being calculated
- Magic numbers should be replaced with named constants

**Recommendation:** Use descriptive names:
```javascript
function calculateTotalPrice(quantity, unitPrice, tax) {
return quantity * unitPrice + tax;
}
```

正在使用“code-review-checklist”。 What should I check for in a pre-review?

预期结果:

Pre-Review Checklist:

- [ ] Read the PR description and linked issues
- [ ] Understand what problem is being solved
- [ ] Check if tests pass in CI/CD
- [ ] Pull the branch and run it locally
- [ ] Review any related documentation changes

安全审计

安全
v1 • 2/25/2026

This skill is a benign code review checklist educational resource. All static analyzer findings are FALSE POSITIVES triggered by example code snippets in documentation. The skill teaches security best practices by showing examples of vulnerable code patterns (SQL injection, hardcoded secrets) to help developers identify and avoid them during reviews.

1
已扫描文件
447
分析行数
0
发现项
1
审计总数
未发现安全问题
审计者: claude

质量评分

38
架构
100
可维护性
87
内容
31
社区
100
安全
91
规范符合性

你能构建什么

Pull Request Reviews

Use the checklists to systematically review pull requests and ensure nothing is missed before approving changes.

Security Audits

Apply the security-focused checklist sections to identify potential vulnerabilities in code before deployment.

Team Onboarding

Train new team members on code review standards and best practices using the comprehensive checklist framework.

试试这些提示

Basic Code Review
Use the code review checklist to review these changes: [paste diff or describe changes]. Focus on functionality, security, and code quality.
Security-Focused Review
Perform a security review of this code using the security checklist. Look for SQL injection, XSS, authentication issues, hardcoded secrets, and input validation: [paste code]
Comprehensive Review
Conduct a thorough code review using all checklist sections: functionality, security, performance, code quality, tests, and documentation. Review these changes: [paste diff or describe changes]
Review Feedback
Help me write constructive review comments for the following issues found during code review: [list issues]. Use the review comment templates from the checklist.

最佳实践

  • Review small, focused changes rather than large PRs to ensure thoroughness
  • Always check tests first - verify they pass and adequately cover new code
  • Use automated tools like linters and security scanners in addition to manual review
  • Focus on important issues like security and logic errors rather than minor style issues

避免

  • Do not approve code without actually reading and understanding it
  • Do not skip security checks - security vulnerabilities are critical
  • Do not provide vague feedback without specific examples or suggestions
  • Do not rubber stamp reviews - every review should add value

常见问题

What is a code review checklist?
A code review checklist is a systematic list of items to check during code reviews, covering functionality, security, performance, code quality, and other important aspects to ensure thorough and consistent reviews.
Why should I use a code review checklist?
Checklists help ensure nothing is missed during reviews, provide consistency across different reviewers, and help train new developers on what to look for in code reviews.
What security issues should I look for?
Key security issues include SQL injection, XSS vulnerabilities, improper authentication/authorization, hardcoded secrets, missing input validation, and insecure dependency usage.
How do I provide constructive feedback?
Be specific about issues, show examples of problematic code, suggest improvements, explain why changes are needed, and acknowledge good code practices you see.
Can I customize the checklist for my team?
Yes, the checklist is a template that should be customized to fit your team's specific needs, coding standards, and project requirements.
What should I do if I find a security vulnerability?
Mark the review as requiring changes, clearly explain the security issue and its potential impact, provide a secure alternative, and consider escalating to your security team for critical issues.

开发者详情

文件结构

📄 SKILL.md