pr-to-green
Skill22 starsChanged 3 months agoMITView on GitHub
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.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- calvin-archastro/skillstheir own version, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- calvin-archastro/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository194 other files it gives its agents.
- 0-templateSkill
- ab-test-analyzerSkill
- academy-guideSkill
- add-to-my-skillsSkill
- adr-authorSkill
- ai-tools-setupSkill
- algorithmic-artSkill
- api-and-interface-designSkill
- api-designerSkill
- api-docs-writerSkill
- apple-store-submitSkill
- aws-cost-optimizerSkill
- bash-script-hardeningSkill
- blog-post-writerSkill
- book-summarizerSkill
- branch-cleanupSkill
- brand-copy-landingSkill
- brand-copySkill
- brand-designSkill
- brand-guidelinesSkill
- browser-testing-with-devtoolsSkill
- canvas-designSkill
- changelog-generatorSkill
- changelog-keeperSkill
- chart-chooserSkill
- ci-cd-and-automationSkill
- ci-fix-loopSkill
- claude-apiSkill
- cloudflare-block-countriesSkill
- coderabbitloopSkill
- code-review-and-qualitySkill
- code-reviewerSkill
- code-simplificationSkill
- codexloopSkill
- comms-notionSkill
- comms-slackSkill
- comms-whatsappSkill
- competitive-analysisSkill
- concept-explainerSkill
- constraint-driven-developmentSkill
- context-engineeringSkill
- context-repoSkill
- cover-letter-writerSkill
- crash-courseSkill
- cron-schedulerSkill
- data-digestSkill
- data-pipeline-architectSkill
- debug-detectiveSkill
- debugging-and-error-recoverySkill
- decision-matrixSkill
- dependabot-triageSkill
- dependency-upgraderSkill
- deprecation-and-migrationSkill
- dev-instantdbSkill
- discernment-nudgeSkill
- doc-coauthoringSkill
- dockerfile-proSkill
- docs-index-keeperSkill
- documentation-and-adrsSkill
- docxSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 49
If no open PR exists, run olko:pr-description-writer first to create one, then continue.
- Very specific: line 53
Run olko:ci-fix-loop until all required checks pass, or a blocker needs a human.
- Distinctive: line 55
Check current state first:
- Very specific: line 62
If all checks already pass, skip to Phase 3.
- Very specific: line 64
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 … - Distinctive: line 79
If neither has reviewed yet, nudge both and wait:
- Distinctive: line 91
Run each detected loop to completion before starting the next.
- Very specific: line 99
If Qodo posted at least one review: run olko:qodoloop.
- Distinctive: line 104
If qodoloop returns rate-limited, note it and continue to CodeRabbit without stopping.
- Very specific: line 108
If CodeRabbit posted at least one review: run olko:coderabbitloop.
- Distinctive: line 113
If coderabbitloop returns rate-limited, record it in the report and stop.
- Distinctive: line 139
If either count > 0, identify what remains and report specifically: do not claim the PR is green when it is not.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
🤖 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
PR to Green
Drive a GitHub PR from first push to fully merge-ready: CI checks green, every active AI review bot addressed, zero unresolved threads.
Inputs
- PR number (optional): detect from current branch if not given.
- Max total iterations (optional, default: 10): across all loops combined.
- Skip bots (optional):
--skip-qodo,--skip-coderabbitto limit which review loops run.
Phase 1: Ensure the PR exists
gh pr view --json number,headRefName,state 2>/dev/nullIf no open PR exists, run olko:pr-description-writer first to create one, then continue.
Phase 2: CI fix loop
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.
Phase 3: Detect active review bots
# 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.
Phase 4: Review bot loops
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).
Qodo
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.
CodeRabbit
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.
Phase 5: Final verification
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.
Report
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 neededChaining
| Before this skill | After this skill |
olko:git-commit + push | gh pr merge |
olko:pr-description-writer | merge or stakeholder review |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

