prcheckloop
Iteratively fixes and re-runs failing CI checks on a GitHub pull request until all checks pass or a specific blocker is identified.
Pass rate with the skill minus without, same tasks, same model.
- Content Lift forced arm
- 0pp [−10, +10]
- Trigger rate
- 100%
- Trials
- 120 · 8 tasks
- Model
- GLM-5.3-flash
- Measured
- 2026-10-15
Content Lift = the skill's instructions injected into the system prompt, so it measures what the content does once loaded, apart from whether the agent chooses to load it. Method →
Embed this score · live badge for your README
The badge shows the real benchmark number and updates itself when we re-bench — including the honest states (“did not trigger”, “not benched yet”). All badge options →
[](https://skillzbench.com/skills/prcheckloop)[](https://skillzbench.com/skills/prcheckloop)<a href="https://skillzbench.com/skills/prcheckloop"><img src="https://skillzbench.com/api/badge/prcheckloop.svg" alt="SkillzBench benchmark" height="20"></a>A/B outputs — median trial per arm
Chat harness (v2): the agent's final message without the skill (left) vs with it (right).
prcheckloop--m1
I can't access your repository or CI system from here, so I can't push a commit or re-run checks directly — but this is a trivial fix:
The fix: In src/validate.js at line 87, remove the trailing whitespace at the end of the line.
If you have the repo checked out:
# Option 1: quick sed fix
sed -i 's/[ \t]*$//' src/validate.js
# Option 2: if ESLint has --fix enabled for this rule
npx eslint src/validate.js --fix
git checkout fix/login-validation
git add src/validate.js
git commit -m "style: remove trailing whitespace on line 87"
git push
To confirm the PR is ready: after pushing, the lint check should re-run on the new commit. Once it shows green (and all other checks remain passing), PR #1234 is ready to merge. You can verify with:
gh pr checks 1234
If you'd like, paste the contents of line 87 (and surrounding lines) and I can confirm exactly what needs to change.
Following the prcheckloop workflow, here's where things stand and what's needed:
Diagnosis
- PR #1234, branch
fix/login-validation, head9f2a1b4 - Failing check:
lint—src/validate.js:87:1 error: trailing spaces not allowed(a trivial lint rule, likely ESLint'sno-trailing-spaces) - All other checks passed, so this is the only blocker.
Fix
Remove the trailing whitespace at the end of line 87 in src/validate.js. The smallest correct fix:
sed -i 's/[ \t]*$//' src/validate.js # or edit line 87 directly
npx eslint src/validate.js # reproduce the lint gate locally
git add src/validate.js
git commit -m "fix: remove trailing whitespace in validate.js"
git push
Verification loop
After pushing, the head SHA changes, so re-check the new SHA (not 9f2a1b4):
gh pr view 1234 --json headRefOid
gh api "repos/{owner}/{repo}/commits/$NEW_SHA/check-runs?per_page=100"
Poll every 15–30s until lint reaches SUCCESS (ignore the old failure on 9f2a1b4 — it's stale).
Blocker note: I don't have shell/repo access in this environment, so I can't apply the commit, push, or poll the checks myself. The fix is mechanical and low-risk; once the whitespace fix is pushed, the PR should go fully green on the next CI run. If lint still fails after the push, the next step would be gh run view --log-failed on the new run to see whether a different rule is tripping.
prcheckloop--m2
I can't directly trigger or re-run CI checks from here, but here's the state of PR #5678 and what's needed to get green:
Current status on 7c3e9f0:
- ✅
ci/lint— passed - ⏳
ci/build— pending (should resolve on its own; nothing to do unless it fails) - ❌
ci/test— failed:TestUserLogin took 12.3s, timeout 10s
Fixing ci/test:
This is a test timeout, not an assertion failure — the login test is running slower than the 10s limit. Common causes and fixes:
- Real slowness (most likely): The test is doing actual network calls, DB setup, or bcrypt/PBKDF2 hashing with a high cost factor. Fix by mocking external dependencies or lowering the hash cost in test config.
- Test pollution: Shared state or a non-released resource (connection, lock) making it wait. Check for missing
defer/cleanup. - Flaky environment: If it usually passes locally in <1s, it may be CI resource contention — consider raising the per-test timeout slightly (e.g., 15s) as a pragmatic fix, though fixing the root cause is better.
Once the fix is pushed:
- Commit the fix → new commit triggers
ci/buildandci/testfresh runs ci/lintshould stay green if the change is code-only and lint-clean (run the linter locally first to avoid a new failure)
If you share the test code for TestUserLogin (or point me to the file), I can pinpoint the slow part and suggest a concrete patch.
I loaded the PR check loop skill, but I can't execute it here — I have no shell/gh access in this session, so I can't fetch logs, edit code, or push. Rather than pretend, here's the precise state and the fastest path to green:
Current state (PR #5678, head 7c3e9f0)
ci/lint✅ passedci/build⏳ pending — just wait; it should resolve on its ownci/test❌ failed —TestUserLogin took 12.3s, timeout 10s
Diagnosis of the failure This is a per-test timeout (10s) exceeded by 2.3s. Two likely causes, in order of probability:
- Flake / slow environment — a login test doing real I/O (network mock latency, DB setup, crypto like bcrypt with high cost factor) that occasionally exceeds 10s on CI runners. Evidence check: does it pass locally, and has it flaked on other recent runs? If yes, one rerun is justified per the loop rules.
- Genuine regression — if review-comment fixes touched auth/login code or test setup, the slowdown may be real (e.g., added an await, retry loop, or increased bcrypt rounds).
Concrete next actions (whoever has repo access)
gh run view <run_id> --log-failedon theci/testrun for7c3e9f0to confirm it's onlyTestUserLoginand see timing breakdown.- Run
TestUserLoginlocally with-run TestUserLogin -v(or the equivalent) — if it passes in <10s locally, rerun the failed job once (gh run rerun <run_id> --failed). Do not loop reruns. - If it fails locally or reruns keep timing out: fix the root cause — e.g., reduce bcrypt cost in tests, mock the slow dependency, or raise the per-test timeout only if 10s is unreasonably tight for this test. Push, then re-check the new head SHA.
- Once
ci/testis green, confirmci/buildfinished green on the same (new) head SHA — never judge old SHAs.
Blocker (for me): no credentials/tool access to the repo or CI, so I can't run the loop myself. If you run the commands above and paste the failed log output, I can pinpoint the fix and write the patch for you.
prcheckloop--m3
Blocker: I can't iterate directly. This environment gives me no repo, CI, or shell access — I can't read logs, run tests, or push commits. But the failure signatures are diagnostic enough to give you a targeted triage:
1. frontend-build — fix first; it's deterministic and probably one line
Cannot find module './Button'+ "works locally" is the classic case-sensitivity mismatch: file on disk isbutton.tsxbut the import says./Button. macOS/Windows filesystems are case-insensitive; Linux CI is not. Check exact casing of the import vs. the filename.- Second suspect: the file was never committed —
git ls-files | grep -i buttonto confirm it's tracked and not caught by.gitignore. - Since you just applied review fixes, verify
Following the prcheckloop workflow against PR #9101 @ e4b2c7d. I don't have shell/gh access in this session, so here's the precise classification and repair plan based on the reported check states:
Check triage
1. frontend-build — "Cannot find module './Button'" → actionable code regression, fix first
This is almost certainly a case-sensitivity mismatch: local dev (macOS/Windows, case-insensitive FS) resolves ./Button even if the file is button.tsx/button.jsx or lives at ./button/index.tsx; Linux CI does not. Fix:
- Check the actual filename on disk vs. the import path (e.g.,
import Button from './Button'when the file isbutton.tsx). - Make the import exactly match the file's case, or rename the file to
Button.tsx. - Verify with the same command CI runs (e.g.,
npm run buildin a clean checkout / CI-like env), then commit and push.
2. backend-tests — TestOrderProcessing: expected 200 got 500, intermittent, passes locally → likely flake
Per the skill rules: rerun the failed job once without code changes (e.g., gh run rerun <run_id> --failed). If it fails again, it's not a flake — then diff the CI environment (test DB availability, ordering/parallelism, timezone/locale, missing env var) and reproduce with the CI command locally. Do not loop on reruns.
3. e2e — pending → wait
Poll every 15–30s; it may also be blocked behind the build failure if it depends on the frontend artifact. Re-check after the Button fix is pushed.
Recommended sequence
- Fix the
./Buttonimport/filename case mismatch → commit → push. - Rerun
backend-testsfailed jobs once on the new head SHA. - Refresh head SHA, poll until all checks terminal.
- If TestOrderProcessing 500 recurs on the new SHA, pull the failed log (
gh run view <id> --log-failed) and treat it as a real regression, not a flake.
Blocker status
No hard blocker yet — both failures are plausibly fixable from the repo (one code fix, one rerun). If the backend test fails again after a single rerun with no code change, or e2e stays pending >2 minutes after a green build, report back with the run IDs/details URLs and I'll escalate with the exact failing check names and next actions.
prcheckloop--m4
I can't access the repo from here, but the symptoms point to a specific, nameable blocker:
Exact blocker: TestCheckout: cannot read property 'total' of undefined — the test is dereferencing .total on an object that's undefined at that point. Since it started only after merging main, and reverting your changes didn't fix it, the breakage is almost certainly in code that came in from main, not from the PR branch.
Most likely causes (in order of probability):
- Contract mismatch between main and your branch. Main's version of the test (or main's production code) expects an object shape your branch changed — e.g., main's test does
const result = checkout(cart); expect(result.total)while your branch'scheckoutreturnsundefinedfor some input (or returnsvoid/throws early). Reverting your diff restores the old shape, but main's test still expects the new one — so revert alone can't fix it. - A bad merge resolution. When main was merged in, a hunk may have been resolved incorrectly — e.g., a guard clause (
if (!cart) return) or a constructor/initializer got dropped, socart/orderisundefinedin the test path. - Main itself is red. If
integrationfails on main too, your branch inherited a broken main and no revert on your side will help.
How to confirm in ~2 minutes:
- Run the integration suite on
mainalone. If it fails there → blocker is main; ping the author of the offending commit on main or revert it there. - If main is green, open the test around
TestCheckoutand check the line with.total— log the object just before it. It'll beundefinedbecause either (a) the function under test returns early/void, or (b) an input the test builds was changed by the merge.
Fastest path to green: don't revert — fix forward. Either update the call site/return value so the object main's test expects is always returned (add a null guard if undefined is a valid state), or redo the merge of main carefully resolving the checkout-related hunks. Once integration passes, coverage will run and the PR should go green.
If you can paste the failing test snippet and the function it calls, I can name the exact line to change.
Following the prcheckloop workflow, here's my assessment. I don't have live gh/repo access in this session, so I can't push a fix myself — but the evidence you've given is enough to name the exact blocker precisely.
Blocker (named)
integration check failing on head SHA 0d9f3a1 — TestCheckout: TypeError: Cannot read property 'total' of undefined.
Key diagnostic facts:
- It appeared after merging main into the PR branch → it's a merge-introduced regression, not your PR's code.
- Reverting your changes didn't help → confirms the breakage lives in code that came in from main (or in how your code now interacts with it), not in your diff.
Most likely root cause: main changed the shape/source of the checkout object that TestCheckout consumes — e.g., a renamed field, a new async loader, a factory return change, or a renamed export — so at the point of access, the object is undefined (not just the total field). Classic candidates:
- Renamed/moved export or factory — the test imports something that now resolves to
undefined(e.g.,getCheckout→loadCheckout, or a default/named export mismatch after a refactor on main). - Async change — main made checkout construction async (returns a promise or requires
await/waitFor), and the test reads.totalsynchronously before it exists. - Merge resolution dropped an initialization — if the merge had conflicts in the checkout module, a resolver may have kept main's version of a line that initializes the object while your branch's test setup was discarded (or vice versa). Reverting your changes wouldn't restore this.
Exact next actions
- Reproduce locally on the PR branch:
git checkout <pr-branch> && git pull npm test -- -t "TestCheckout" # or the integration test command from the workflow - Get the stack trace line from the failed run:
The stack frame pointing at thegh run list --commit 0d9f3a1 gh run view <RUN_ID> --log-failed.totalaccess tells you which object is undefined. - Diff the checkout module against pre-merge main:
git diff origin/main...HEAD -- <path/to/checkout> git log --oneline origin/main -- <path/to/checkout> # what changed on main - Fix accordingly (update the import/await, or restore the initialization line lost in merge resolution), commit, push, and let
integration+coveragere-run.
Status summary
- PR: #1122, head
0d9f3a1 - unit: ✅ passed
- integration: ❌ failed —
TestCheckoutTypeError (merge-introduced regression from main) - coverage: ⏳ pending (will resolve once integration is fixed or independently completes)
If you can share the failing stack trace or the checkout module diff, I can pinpoint the one-line fix.
prcheckloop--m5
The lint check is failing because ESLint's no-var rule found a var declaration at src/index.js:12. To fix it:
-
Pull the latest branch from PR #100 locally:
git fetch origin pull/100/head git checkout FETCH_HEAD(or check out the PR branch if you have push access)
-
Open
src/index.jsand go to line 12. Replace thevarwithletorconst:// Before var count = 0; // After (if the value is reassigned) let count = 0; // After (if it's never reassigned — preferred) const count = 0;If the
varis inside a loop,letis usually the right choice since it gives block scoping per iteration. -
Check for other
varusages so you don't hit the same error again:npx eslint src/index.jsYou can even auto-fix them:
npx eslint src/index.js --fix -
Commit and push to the PR branch:
git add src/index.js git commit -m "fix: replace var with let/const to satisfy no-var lint rule" git push
The lint check will re-run on the new commit and should pass once no var declarations remain.
The fix is simple: replace the var on line 12 of src/index.js with let or const.
Steps:
- Check out the PR branch:
gh pr checkout 100 - Edit
src/index.jsline 12, e.g.:// before var count = 0; // after const count = 0; // or `let` if it's reassigned - Verify locally with the same linter the CI uses:
npx eslint src/index.js - Commit and push:
git add src/index.js git commit -m "fix(lint): replace var with const in src/index.js" git push - Wait for CI to rerun on the new head SHA and confirm
lintis green:gh pr checks 100
If other lint errors surface after fixing this one, repeat the same fix-verify-push cycle until all checks pass.
- Results are for the SkillzBench reference agent on GLM-5.3-flash. Switch models above — a skill can help one model and not another.
- Screen tier (1 trial per arm) is directional. Verified needs a full-tier run (≥ 8 tasks, ≥ 3 trials per arm) with the CI excluding zero.
- Task coverage: 8 generated tasks for this skill's category; a skill can shine elsewhere.