返回提示词库
文本 · 通用大模型AI 代码 Diff 自然语言解读器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

AI 代码 Diff 自然语言解读器

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

11浏览
完整提示词可替换花括号中的变量后直接使用

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: ```diff {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")

2026/5/2

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。