.claude/skills/review-and-merge-pr/SKILL.md
Review an open GitHub pull request, inspect bot and human feedback, decide which findings are valid, implement fixes on the PR branch, and merge the PR into master when it is ready. Use when the user says "check the PR", "address review comments", "review PR feedback", or "merge this PR".
npx skillsauth add bitsocialnet/bitsocial-web review-and-merge-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill after a feature branch already has an open PR into master.
Stay on the PR branch, treat review bots as input rather than authority, and only merge once the branch is verified and the remaining comments are either fixed, explicitly deferred, or explicitly declined with a reason.
Do not let repeated nitpicks, speculative future-work comments, or low-value bot suggestions keep the PR open once they have been triaged as non-blocking.
Prefer the PR for the current branch when the branch is not master.
If the current branch is master, inspect open PRs and choose the one that matches the user request.
If there is no open PR yet, stop and tell the parent agent there is nothing to merge yet.
Useful commands:
gh pr status
gh pr list --repo bitsocialnet/bitsocial-web --state open
gh pr view <pr-number> --repo bitsocialnet/bitsocial-web --json number,title,url,headRefName,baseRefName,isDraft,reviewDecision,mergeStateStatus
Read the PR state, checks, issue comments, review summaries, and inline review comments before deciding what to change. Do not merge based only on the top-level review verdict.
Useful commands:
gh pr view <pr-number> --repo bitsocialnet/bitsocial-web --json number,title,url,headRefName,baseRefName,isDraft,reviewDecision,mergeStateStatus
gh pr checks <pr-number>
gh api "repos/bitsocialnet/bitsocial-web/issues/<pr-number>/comments?per_page=100"
gh api "repos/bitsocialnet/bitsocial-web/pulls/<pr-number>/reviews?per_page=100"
gh api "repos/bitsocialnet/bitsocial-web/pulls/<pr-number>/comments?per_page=100"
Focus on comments from:
Sort feedback into these buckets:
must-fix: correctness bugs, broken behavior, crashes, security issues, test or build failures, reproducible regressionsshould-fix: clear maintainability or edge-case issues with concrete evidencedefer: real but non-blocking follow-up work that can land later without making this PR unsafe to mergedecline: false positives, stale comments, duplicate findings, speculative style-only suggestions, feedback already addressed in newer commits, or nitpicks that are not worth blocking mergeRules:
must-fix findings.should-fix and defer findings are not merge blockers by default; use judgment and prefer merging once the branch is safe, verified, and the remaining comments are low-value or future work.Switch to the PR branch if needed, apply the valid fixes, and push new commits to the same branch. Do not open a replacement PR unless the user explicitly asks for that.
Useful commands:
git switch <head-branch>
git fetch origin <head-branch>
git status --short --branch
git add <files>
git commit --no-verify -m "fix(scope): address review feedback"
git push
After code changes, follow repo verification rules from AGENTS.md:
yarn build:verify, yarn lint, yarn typecheck, and yarn format:checkyarn doctor after React UI logic changesplaywright-cli for UI or visual changes across chrome, firefox, and webkit, plus a mobile viewport flow in each engine when relevantSummarize what was fixed, what was deferred, and what was declined.
Use gh pr comment for a concise PR update when the branch changed because of review feedback.
Example:
gh pr comment <pr-number> --repo bitsocialnet/bitsocial-web --body "Addressed the valid review findings in the latest commit. Remaining comments were triaged as stale, low-value, or follow-up work that does not block this merge."
Merge only if all of these are true:
mastermust-fix reviewer findings remainshould-fix, defer, or decline items were consciously triaged and are not worth blocking mergePreferred merge command:
gh pr merge <pr-number> --repo bitsocialnet/bitsocial-web --squash --delete-branch
After the PR is merged:
git switch master
git fetch origin --prune
git pull --ff-only
git branch -D <head-branch> 2>/dev/null || true
git branch -D "pr/<pr-number>" 2>/dev/null || true
If the PR branch lived in a dedicated worktree, remove that worktree after leaving it:
git worktree list
git worktree remove /path/to/worktree
Tell the user:
pr/<number> alias, and any worktree were cleaned updevelopment
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.
data-ai
Add or update i18next translation keys across all language files by spawning translator subagents. Use when the user asks to add a new translation, update existing translations, translate text, or work with i18n keys. Triggers on "translate", "add translation", "translation key", "i18n", "localization".
development
Test and debug Android wrapper features for Bitsocial Web using a local Android emulator or attached device. Manages emulator lifecycle, builds and installs the wrapper when commands are provided, runs focused checks, captures logcat diagnostics, and debugs WebView or TWA behavior. Use when the user asks to test Android, debug WebView behavior, run emulator tests, or says "test-apk".
testing
Review an open GitHub pull request, inspect bot and human feedback, decide which findings are valid, implement fixes on the PR branch, and merge the PR into master when it is ready. Use when the user says "check the PR", "address review comments", "review PR feedback", or "merge this PR".