Code Review Analysis

aj-geddes/useful-ai-prompts/skills/code-review-analysis

作者 aj-geddes3f5182cfd739无许可证355 个星标收录于 2026年10月8日更新于 2026年10月8日仓库7个月前更新

Perform comprehensive code reviews with best practices, security checks, and constructive feedback. Use when reviewing pull requests, analyzing code quality, checking for security vulnerabilities, or providing code improvement suggestions.

AI 生成的概览

指导对拉取请求进行系统化代码审查,涵盖质量、安全、性能、测试与反馈。

功能
提供结构化的代码审查流程,并配有初始评估、代码质量、安全、性能、测试和最佳实践的参考指南。流程包括检查差异和提交历史,然后给出建设性的审查反馈和改进建议。随附一个校验脚本和一个 SQL 迁移模板作为辅助资源。
适用场景
适用于审查拉取请求或合并请求、在合并前评估代码质量、检查安全漏洞,或向开发者提供结构化的改进反馈。也适合指导开发者成长和检查编码规范符合情况。
运行要求
需要 git 仓库,并需要可用的 git 命令来执行 diff 和 log。随附可执行校验脚本和一个 SQL 迁移模板;未说明需要凭据或网络访问。

Code Review Analysis

Table of Contents

Overview

Systematic code review process covering code quality, security, performance, maintainability, and best practices following industry standards.

When to Use

  • Reviewing pull requests and merge requests
  • Analyzing code quality before merging
  • Identifying security vulnerabilities
  • Providing constructive feedback to developers
  • Ensuring coding standards compliance
  • Mentoring through code review

Quick Start

Minimal working example:

bash
# Check the changesgit diff main...feature-branch
# Review file changesgit diff --stat main...feature-branch
# Check commit historygit log main...feature-branch --oneline

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Initial Assessment [blocked]Initial Assessment
Code Quality Analysis [blocked]Code Quality Analysis
Security Review [blocked]Security Review
Performance Review [blocked]Performance Review
Testing Review [blocked]Testing Review
Best Practices [blocked]Best Practices

Best Practices

✅ DO

  • Be constructive and respectful
  • Explain the "why" behind suggestions
  • Provide code examples
  • Ask questions if unclear
  • Acknowledge good practices
  • Focus on important issues
  • Consider the context
  • Offer to pair program on complex issues

❌ DON'T

  • Be overly critical or personal
  • Nitpick minor style issues (use automated tools)
  • Block on subjective preferences
  • Review too many changes at once (>400 lines)
  • Forget to check tests
  • Ignore security implications
  • Rush the review

来源与署名

来源:aj-geddes/useful-ai-prompts位于skills/code-review-analysis提交3f5182c

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架