feat(prompts): add validation review prompt for N+1 agent pass #252
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements an N+1 agent validation pass for the Claude Code PR Review workflow. When enabled, a second agent reviews and validates the first agent's findings before posting to GitHub.
What this does
Benefits
Usage
Cost/Time Tradeoffs
Changes
Committed (prompt files)
.github/prompts/validation-review.md- Validation agent prompt.github/prompts/CLAUDE.md- Documentation for new promptRequires Manual Application (workflow files)
Due to GitHub App permission restrictions, workflow file changes must be applied manually.
The following changes need to be applied to complete this feature:
Click to expand workflow changes (.github/workflows/_claude-code-review.yml)
New inputs to add after
toolkit_ref(around line 106):New steps to add after "Upload Claude Execution Output" step (around line 815):
Click to expand consumer workflow changes (.github/workflows/claude-code-review.yml)
Add documentation comments after the
model:line in each job:Click to expand documentation changes (.github/workflows/CLAUDE.md)
See the committed changes to
.github/prompts/CLAUDE.mdfor documentation pattern. Similar documentation should be added to.github/workflows/CLAUDE.mdonce the workflow changes are applied.Testing
Once the workflow changes are manually applied:
Enable the validation pass in a test PR:
Verify:
Linear Issue
Closes: https://linear.app/uniswap/issue/DEV-167/add-n1-agent-configuration-for-claude-code-pr-review-github-actions
Autonomous implementation using claude-opus-4-5-20251101
✨ Claude-Generated Content
Summary
Adds validation review prompt for the N+1 agent validation pass in Claude Code PR reviews. When enabled, a second agent reviews and validates the first agent's findings before posting to GitHub.
Changes
.github/prompts/validation-review.md- Comprehensive validation agent guidelines covering:.github/prompts/CLAUDE.md- Added documentation for the new validation promptNotes
This PR contains only the prompt files. The corresponding workflow changes (
_claude-code-review.yml) that enable theenable_validation_passandvalidation_modelinputs must be applied manually due to GitHub App permission restrictions. See the PR description for the full workflow integration details.Linear Issue
Closes: DEV-167