rea-ci-tests-audit
MOmorluto/rea486k8,943 new stars in the last 7 days
Monitor a pull request for CI failures, review comments, and merge conflicts — then fix them automatically. Use when a PR is open and you want the agent to keep it merge-ready.
Use this skill when the user has an open pull request and wants the agent to monitor it, fix CI failures, resolve review comments, and keep it merge-ready.
Get the PR status — fetch the current state of the PR:
gh pr view --json number,title,state,mergeable,reviewDecision,statusCheckRollup,comments,reviews
Also check for merge conflicts:
gh pr view --json mergeStateStatus
Check CI status — look at the statusCheckRollup field. For each failing check:
gh pr checks
This lists all CI checks and their status (pass/fail/pending).
Fix CI failures — for each failing check, get the logs:
gh run view <run-id> --log-failed
Analyze the failure and fix it:
npm run lint -- --fix), fix remaining issues manually, commit.npx tsc --noEmit, read the errors, fix the types, commit.npm run build, read the error output, fix imports/configs/missing deps, commit.After fixing, push the changes:
git add -A && git commit -m "fix: resolve CI failures" && git push
Handle review comments — fetch PR review comments:
gh api repos/{owner}/{repo}/pulls/{pr}/comments
For each unresolved comment:
Commit fixes for resolved comments:
git add -A && git commit -m "fix: address review feedback" && git push
Resolve merge conflicts — if the PR has conflicts:
git fetch origin main
git merge origin/main
Resolve conflicts by reading both sides and choosing the correct resolution. For ambiguous conflicts, ask the user. After resolving:
git add -A && git commit -m "fix: resolve merge conflicts" && git push
Re-check status — after pushing fixes, wait for CI to run and check again:
gh pr checks --watch
If new failures appear, go back to step 3. Limit to 3 rounds to avoid infinite loops.
Report — summarize what was done:
This skill is designed to run in a loop:
Check PR → Find issues → Fix issues → Push → Re-check → Repeat
Stop when:
gh pr ready to mark the PR as ready for review once everything is green.MOmorluto/rea486k8,943 new stars in the last 7 days
MOmorluto/rea486k8,943 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
Block dangerous git commands like push and reset --hard before they execute.
MAmattpocock/skills337k4,978 new stars in the last 7 days