/olko-github-pr:pr-to-greenfrom olko-github-pr
Orchestrate a GitHub PR from first push to merge-ready in a single pass: run ci-fix-loop until all checks are green, detect active AI review bots (Qodo, CodeRabbit), run their fix loops in sequence until zero unresolved threads remain, then confirm the PR is merge-ready. Use when the user says "drive this PR to green", "make this merge-ready", "ship this branch", or wants CI and review comments handled end to end without babysitting each loop separately.
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.
🤖 Auto-generated by weekly-pattern-learner · ci-fix-loop, coderabbitloop, and qodoloop all exist independently: no skill orchestrates them into a single end-to-end 'drive PR to green' pass
Drive a GitHub PR from first push to fully merge-ready: CI checks green, every active AI review bot addressed, zero unresolved threads.
--skip-qodo, --skip-coderabbit to limit which review loops run.gh pr view --json number,headRefName,state 2>/dev/null
If no open PR exists, run olko:pr-description-writer first to create one, then continue.
Run olko:ci-fix-loop until all required checks pass, or a blocker needs a human.
Check current state first:
gh pr checks --json name,state,conclusion \
--jq '.[] | select(.conclusion != "success" and .conclusion != "skipped")'
If all checks already pass, skip to Phase 3. Otherwise run olko:ci-fix-loop.
Stop entirely if ci-fix-loop returns blocked: do not run review loops while CI is red,
as bots may refuse to review a failing branch and their feedback will shift after fixes land.
# Check if Qodo has posted on this PR
gh api repos/{owner}/{repo}/pulls/<PR_NUMBER>/reviews \
--jq '[.[] | select(.user.login == "qodo-code-review[bot]")] | length'
# Check if CodeRabbit has posted
gh api repos/{owner}/{repo}/pulls/<PR_NUMBER>/reviews \
--jq '[.[] | select(.user.login == "coderabbitai[bot]")] | length'
If neither has reviewed yet, nudge both and wait:
gh pr comment <PR_NUMBER> --body "@coderabbitai review"
gh pr comment <PR_NUMBER> --body "@qodo-code-review review"
Poll (every ~15s, timeout ~5min) for a review from either bot. If neither responds, proceed without a review-bot loop and note it in the report.
Run each detected loop to completion before starting the next.
Order: qodoloop first (actionability-first bot, stricter on must-fix findings), then coderabbitloop (thoroughness-first, may surface additional style or security hints after Qodo's fixes change the diff context).
If Qodo posted at least one review: run olko:qodoloop.
It handles fetching unresolved threads, reading each Agent Prompt block, applying the fix, replying to the thread, resolving it, pushing, and polling for the next Qodo review.
If qodoloop returns rate-limited, note it and continue to CodeRabbit without stopping.
If CodeRabbit posted at least one review: run olko:coderabbitloop.
Same structure: fetch unresolved threads, read 🤖 Prompt for AI Agents blocks, fix, reply,
resolve, push, wait for the next CodeRabbit review.
If coderabbitloop returns rate-limited, record it in the report and stop.
Confirm the PR is truly merge-ready before reporting success:
# Required checks all green?
gh pr checks --json name,state,conclusion \
--jq '[.[] | select(.conclusion != "success" and .conclusion != "skipped")] | length'
# Any unresolved review threads?
gh api graphql -f query='
query($owner: String!, $repo: String!, $number: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $number) {
reviewThreads(first: 100) {
nodes { isResolved }
}
}
}
}
' -f owner="{owner}" -f repo="{repo}" -F number=<PR_NUMBER> \
--jq '.data.repository.pullRequest.reviewThreads.nodes | map(select(.isResolved == false)) | length'
If either count > 0, identify what remains and report specifically: do not claim the PR is green when it is not.
PR-to-green complete.
CI: ✓ all checks green (2 fix iterations)
Qodo: ✓ 4 findings fixed, 0 unresolved
CodeRabbit: ✓ 6 findings fixed, 0 unresolved
Blockers: none
Status: merge-ready ✓
OR
CI: ✓ green
Qodo: ✓ 2 findings fixed
CodeRabbit: ⚠ rate-limited, 1 finding still open (re-run tomorrow)
Status: partial: CodeRabbit quota exhausted, human review needed
| Before this skill | After this skill |
|---|---|
olko:git-commit + push | gh pr merge |
olko:pr-description-writer | merge or stakeholder review |
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