brave/impl-review
'Implement review feedback on a PR. Checks out the branch, applies impl-review, implement review, implement review feedback, address review comments.'
npx skills add https://github.com/brave/brave-core --skill impl-review
Checkout a PR's branch, implement the reviewer's feedback, run preflight checks,
commit, and push.
<pr-number> (required) — The PR number in brave/brave-core to implementreview feedback for.
Always ask for user confirmation before implementing changes, before
committing/pushing, and before posting comments on GitHub.
Extract the PR number from the arguments. It must be a numeric value. If no PR
number is provided, ask the user for one.
gh pr view $PR_NUMBER --repo brave/brave-core --json headRefName,title,body,state,files,baseRefName
Extract:
headRefName) — the branch to checkoutOPEN (abort if closed/merged)If the PR is not open, inform the user and stop.
Fetch review data from the PR:
gh api repos/brave/brave-core/pulls/$PR_NUMBER/reviews --paginate
gh api repos/brave/brave-core/pulls/$PR_NUMBER/comments --paginate
gh api repos/brave/brave-core/issues/$PR_NUMBER/comments --paginate
This provides:
Parse the review comments to understand what changes are requested:
reviewers. Ignore:
comment timestamps)
Questions are not change requests. When a comment is phrased as a
question, answer the question first. Do not make code changes in response to
it unless the reviewer or requester explicitly asks for a change.
question comments (if any) also contain an explicit change request
code changes
you change X?"), post the answer first, then follow the normal
implementation confirmation flow for the requested change
git fetch origin
git checkout <headRefName>
git pull origin <headRefName>
Ensure you're on the correct branch and up to date with the remote.
CRITICAL: Only make changes the reviewer explicitly asks for.
refactoring, no renaming things the reviewer didn't mention
nothing else
harder
at the diff)
Invoke the preflight skill to validate all changes:
/preflight
This runs: best practices check, format, gn_check, presubmit, build, and
affected tests.
If preflight fails:
issues)
Before committing, show the user a summary of all changes (files modified, diff
stats) and ask for confirmation. If the user rejects, stop without committing.
ALWAYS create a NEW separate commit — never amend existing commits.
git add <changed-files>
git commit -m "$(cat <<'EOF'
Address review: <brief description of changes>
EOF
)"
git push
Commit message guidelines:
Co-Authored-By line--no-verify or --no-gpg-sign flagsIf multiple logical units of review feedback were addressed, consider separate
commits for each.
Show the draft comment to the user and ask for confirmation before posting. If
the user rejects, skip posting.
If question answers were already posted before implementation, do not duplicate
them in the final summary comment; briefly reference that they were answered and
summarize only the implemented changes.
Post a summary comment on the PR:
gh pr comment $PR_NUMBER --repo brave/brave-core --body "$(cat <<'EOF'
Fixed: <description of what was changed>
<For each review point addressed, briefly note what was done>
EOF
)"
Output a summary to the user:
action; do not change code unless the reviewer or requester explicitly asks
changed
Co-Authored-By lines in commitscommitting, and confirm before posting summary comments; question answers do
not require confirmation
/impl-review 12345
Asks for confirmation before implementing, committing, and posting.
Take brave/impl-review from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.