'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.
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
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.