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 從公開儲存庫中收錄這些內容。

檢舉或申請下架