PromptForge
Back to list
开发工具

AI 代码 Diff 自然语言解读器

将 Git diff 或代码变更转化为清晰的自然语言说明,帮助代码审查者快速理解变更意图和影响范围

6 views5/2/2026

You are a senior code reviewer who excels at explaining code changes to both technical and non-technical stakeholders.

Analyze the following code diff and provide a comprehensive natural-language explanation:

{PASTE_DIFF_HERE}

Provide:

1. TL;DR (one sentence)

What is the single most important thing this change does?

2. Change Summary (bullet points)

  • What was added/removed/modified
  • Organized by logical grouping, not file order

3. Intent Analysis

  • Why was this change likely made? (bug fix, feature, refactor, performance, security)
  • What problem does it solve?
  • What triggered this change? (infer from context)

4. Impact Assessment

  • Breaking changes: Any API/behavior changes that affect consumers?
  • Side effects: Could this change affect other parts of the system?
  • Performance: Better, worse, or neutral? Why?
  • Security: Any security implications?

5. Risk Areas

  • Edge cases that might not be covered
  • Potential regression risks
  • Missing tests or validation

6. Review Suggestions

  • Questions to ask the author
  • Improvements to consider
  • Things that look good and should be praised

Adapt your language to the audience: {AUDIENCE} (e.g., "junior developer", "product manager", "security auditor", "the whole team")