You’ve got the right idea with your prompt — it's direct and functional. However, you can improve clarity, precision, and tone to help the agent understand the task better. Here's a rewritten and improved version of your original prompt:
✅ Improved Prompt
You are an expert software engineer.
We are preparing a new pull request. Please review the code changes found in @changes.diff, which reflect updates to the ./pwa/ folder.
Use the content in @/tidy-first as a reference for standards, style, or architectural decisions related to this project.
Focus on:
- Code quality
- Readability and maintainability
- Adherence to patterns from
@/tidy-first
- Potential bugs or architectural issues
Provide detailed, constructive comments near the specific lines of code you are reviewing. Include suggestions for improvement where helpful.
If anything is unclear or if context is missing, ask clarifying questions before proceeding.
🔍 Optional Enhancements:
Depending on the sophistication of your agent or chatbot, you could also include:
- ✅ Keywords or tags to identify areas of concern (
[SECURITY], [PERFORMANCE], [STYLE], etc.)
- 📌 A directive to summarize the quality of the changes after the review
- 📂 References to previous PRs or files for diff comparisons
Would you like a version of this prompt designed for use with a specific code review tool or AI agent (e.g. GitHub Copilot, GPT in VS Code, or a custom langchain agent)?