/olko-github-pr:pr-finalize-completefrom olko-github-pr
Comprehensive PR finalization workflow for PRs that may already be partially or fully addressed. Checks the current state of all review comments (CodeRabbit, Qodo, Greptile, human), identifies which issues are already resolved vs. still open, verifies the test suite passes, runs linting, and prepares a clean push. Handles stale bot comments on moved/renamed files, direct unit test gaps, and branch conflict resolution. Use when a PR has been worked on and you need to confirm it is truly ready to merge, or when review tools show findings that may already be fixed.
Ships in olko-github-pr. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Confirm a PR is genuinely merge-ready -- even when all issues were already addressed -- by verifying the evidence, not trusting the assumption.
Use pr-finalize-complete when:
Use pr-finalize when starting from scratch on an unaddressed PR.
--no-push (optional): run all verification steps but skip the final push.gh pr view <PR> --json number,title,body,state,isDraft,headRefName,baseRefName,mergeable,mergeStateStatus,reviews,statusCheckRollup,url
Record before touching anything:
git status --porcelain empty)?origin/<base>?If mergeable is CONFLICTING or the branch is behind its base:
git fetch origin <base>
git rebase origin/<base>
Resolve conflicts by understanding both sides. After resolving, run tests before continuing. If there is no conflict, skip this step -- do not rebase speculatively.
Collect all findings:
gh api repos/{owner}/{repo}/pulls/<PR>/comments --paginate
gh api repos/{owner}/{repo}/issues/<PR>/comments --paginate
gh pr view <PR> --json reviews
For each unresolved finding, determine its actual current status in the code:
| Status | Meaning | Action |
|---|---|---|
| Already fixed | Code the comment targets has been changed and issue no longer exists | Verify in code, reply confirming fix, resolve |
| Stale | Comment targets a file/line/symbol that no longer exists | Verify, reply noting it is stale, resolve |
| Still present | Issue exists in current code | Fix it, commit, reply, resolve |
| False positive | Bot diagnosis is wrong for this codebase | Reply with specific rebuttal, leave open |
| Needs human | Product/architecture decision required | Reply, leave open, surface in report |
A comment is stale if the file it targets has been deleted or renamed, the function or class it names no longer exists, or the issue was flagged on an old line that has since been rewritten.
Check for staleness before any fix attempt:
gh api repos/{owner}/{repo}/pulls/<PR>/files --paginate
git diff origin/<base>...HEAD =- <file>
For stale comments: verify in current HEAD, reply explaining what changed, then resolve.
Find changed files:
gh pr view <PR> --json files -q '.files[].path'
For each changed module: check for a direct unit test file, confirm it exercises the specific code paths changed, and run it to verify impasses.
If a module has no direct unit tests but is only indirectly covered, that is a real gap. Add direct tests unless the coverage gap is explicitly justified.
Discover from the repo -- do not guess target names:
cat package.json | jq '.scripts'
Run in order: lint, format check, full test suite. Capture the actual exit code and output. Do not push if any required gate is red.
If there were changes to commit:
git add <only files you touched>
git commit -m "address review feedback and verify tests"
git push --force-with-lease
Post one PR comment with a verifiable summary: rebase status, each finding and its disposition, test coverage decision, and verbatim gate output with real numbers.
gh pr view <PR> --json mergeable,mergeStateStatus,statusCheckRollup
Poll until checks complete. If anything that was green went red, diagnose and fix before declaring done.
When a bot shows open findings but the branch owner believes they are all resolved:
Bots frequently flag helper functions exercised only through callers. Add a direct test for the helper itself -- do not rely on indirect coverage through a caller integration test.
When rebase hits a conflict in a file both branches modified:
Before declaring a gate failure real:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
14 skills in this plugin
/ci-fix-loopDiagnose GitHub Actions CI failures in a loop: fetch the failing check logs, identify the root cause, apply a targeted fix, push, and wait for the next run: repeating until all checks are green or a real blocker needs a human. Use when CI is red after a push, when the user says "fix CI", "make tests pass", "diagnose CI failures", or "drive this to green". Direct analog of qodoloop / coderabbitloop for automated test and lint failures.
/coderabbitloopIteratively drives a GitHub PR to zero unresolved CodeRabbit (coderabbitai[bot]) findings. Reads each inline comment's own "Prompt for AI Agents" block (CodeRabbit's ready-made fix spec per issue), applies the fix, replies to the thread explaining what was done, resolves it, pushes, and re-triggers CodeRabbit. Repeats until clean or a real blocker needs a human. Use when the user wants a PR fully addressed against CodeRabbit's review, or says "run coderabbitloop" / "satisfy CodeRabbit" / "resolve CodeRabbit comments".
/codexloopIteratively satisfy OpenAI Codex's code review on a GitHub PR, but treat every Codex comment SKEPTICALLY: verify each finding against the real code first, fix ONLY the genuinely-correct ones, and rebut + resolve false positives WITHOUT changing correct code. Repeat until Codex has reviewed the latest push and nothing is left unresolved. Use when the user says "satisfy codex", "clear the codex review", "fix codex comments", "codex loop", or wants to iterate on Codex PR review feedback.
/copilotloopIteratively satisfy GitHub Copilot's code review on a GitHub PR, but treat every Copilot comment SKEPTICALLY: verify each finding against the real code first, fix ONLY the genuinely-correct ones, and rebut + resolve false positives WITHOUT changing correct code. Repeat until no unresolved Copilot comments remain. Use when the user says "satisfy Copilot", "clear the Copilot review", "fix Copilot comments", "Copilot loop", or wants to iterate on Copilot PR feedback.
/dependabot-triageTriage all open Dependabot and Renovate PRs in bulk: classify each by risk tier (patch / minor / major / security), auto-approve and merge safe patch-only bumps, flag breaking major upgrades with a summary of what changed, and post a digest of what was done. Use when dependency PRs are piling up, when the user says "deal with Dependabot", "triage dependency updates", or "merge the safe ones", or at the start of a maintenance window.
/geminiloopIteratively satisfy Gemini Code Assist's review on a GitHub PR, but treat every Gemini comment SKEPTICALLY (Gemini Code Assist is materially more error-prone than Greptile): verify each finding against the real code first, fix ONLY the genuinely-correct ones, and rebut + resolve false positives WITHOUT changing correct code. Repeat until Gemini has reviewed the latest push and nothing is left unresolved. Use when the user wants to clear a PR's Gemini Code Assist review.
npx claudepluginhub oleg-koval/agent-skills --plugin olko-github-pr