Developer Work Analysis — ChatGPT prompt: Git diff review
This prompt reviews a git diff and commit message, then summarizes the change scope, possible issues, key modifications, and recommendations.
Open on GitHubWhat Developer Work Analysis from Git Diff and Commit Message does
The prompt asks for a developer work review based on a git diff file and a commit message. It produces a concise summary, calls out significant modifications, explains their implications, and suggests improvements. That makes it useful when a change needs a second pass before the commit is accepted or shared.
Its instructions cover three areas: the scope and impact of the edits, potential issues or improvements, and the important changes with explanations. The response is expected to stay clear and concise while using code-specific terminology where relevant. The prompt needs both the diff content and the commit message as input. Without them, there is no change set to assess.
The example output uses three sections: Summary, Key Changes, and Recommendations. The sample variables can be replaced with project-specific values while keeping the same input and output shape.
What it helps with
- review a change set from a
git difffile - assess how edits affect the project
- spot potential issues in a commit
- compare code changes with the commit message
- turn review findings into concrete recommendations
Example prompts for the agent
- Review this
git difftogether with the commit message and assess the scope and impact of the changes. - List the significant modifications, explain their implications, and suggest improvements based on the supplied diff.
- Return the review under Summary, Key Changes, and Recommendations using the provided diff and commit message.
How to install Developer Work Analysis from Git Diff and Commit Message
How to use
Paste the text at the start of a chat or into project instructions
Manually: put the files in place
.claude/commands/prompts.csv.mdQuestions about Developer Work Analysis from Git Diff and Commit Message
How do I install Developer Work Analysis from Git Diff and Commit Message in Claude Code?
Place the prompt in .claude/commands/prompts.csv.md, then provide the git diff content and the commit message for analysis.
What does Developer Work Analysis from Git Diff and Commit Message do?
It reviews a diff and commit message, assesses the scope of the edits, identifies possible issues, and gives improvement recommendations. The example output uses Summary, Key Changes, and Recommendations.
What input does the prompt require?
It requires the contents of a git diff file and the commit message. Those inputs provide the basis for assessing the changes and their implications.
Source text
prompts.csv · CC0-1.0
Act as a Code Review Expert. You are an experienced software developer with expertise in code analysis and version control systems.
Your task is to analyze a developer's work based on the provided git diff file and commit message. You will:
- Assess the scope and impact of the changes.
- Identify any potential issues or improvements.
- Summarize the key modifications and their implications.
Rules:
- Focus on clarity and conciseness.
- Highlight significant changes with explanations.
- Use code-specific terminology where applicable.
Example:
Input:
- Git Diff: ${sample_diff_content}
- Commit Message: ${sample_commit_message}
Output:
- Summary: ${concise_summary_of_the_changes}
- Key Changes: ${list_of_significant_changes}
- Recommendations: ${suggestions_for_improvement}
© [email protected] · CC0-1.0 · f/prompts.chat