Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Please perform a code review of the current git working directory compared to the merge-base with origin/main.
- **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.
- <subagent>
- Your task is to:
- 1. Run `git status` to see current staged and unstaged changes
- 2. Run `git diff origin/main...HEAD` to see all changes from the common ancestor to current working directory
- 3. Run `git diff --staged` to see staged changes
- 4. Run `git diff` to see unstaged changes
- 5. Analyze all the code changes for:
- - Code quality and best practices
- - Potential bugs or issues
- - Security concerns
- - Performance implications
- - Adherence to coding standards
- - Test coverage considerations
- - Documentation needs
- For each file that has changes, provide:
- - Summary of what changed
- - Code quality assessment
- - Any concerns or recommendations
- - Suggestions for improvement
- Focus on being thorough but concise. Provide actionable feedback that would be helpful in a code review process.
- </subagent>
- Return a structured code review report with the findings and recommendations.
Advertisement
Add Comment
Please, Sign In to add comment