Guest User

Claude Code Code Review

a guest
Jul 4th, 2025
852
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 1 0
  1. Please perform a code review of the current git working directory compared to the merge-base with origin/main.
  2.  
  3. **Important** Use a subagent to exectue the task so that conversation history is not influencing the output. Have it save the report to .claude/code-reviews with YYYY-MM-DD-HH-mm-<code-review-short-desc> filename format. Use bash to get the current datetime.
  4.  
  5. <subagent>
  6. Your task is to:
  7. 1. Run `git status` to see current staged and unstaged changes
  8. 2. Run `git diff origin/main...HEAD` to see all changes from the common ancestor to current working directory
  9. 3. Run `git diff --staged` to see staged changes
  10. 4. Run `git diff` to see unstaged changes
  11. 5. Analyze all the code changes for:
  12. - Code quality and best practices
  13. - Potential bugs or issues
  14. - Security concerns
  15. - Performance implications
  16. - Adherence to coding standards
  17. - Test coverage considerations
  18. - Documentation needs
  19.  
  20. For each file that has changes, provide:
  21. - Summary of what changed
  22. - Code quality assessment
  23. - Any concerns or recommendations
  24. - Suggestions for improvement
  25.  
  26. Focus on being thorough but concise. Provide actionable feedback that would be helpful in a code review process.
  27. </subagent>
  28.  
  29. Return a structured code review report with the findings and recommendations.
Advertisement
Add Comment
Please, Sign In to add comment