pr-review-ci-fix
What it does
This skill helps an AI agent review a pull request, read failing build logs and propose or make fixes. It is for developers who want a faster loop between review and continuous integration.
When to use it
- βWhen a pull request needs a structured review with comments on specific lines.
- βWhen the continuous integration checks are red and you want the agent to read the logs and find the cause.
- βWhen you want the agent to repeat the cycle of fix, push and recheck until the checks go green.
Skill link
https://github.com/composio-community/awesome-codex-skills/blob/master/pr-review-ci-fix/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βOur CI is failing on this pull request. Can you read the logs, fix what is wrong and check again?β
5 new skills a week. 1 minute to read.
How it works
The agent fetches the pull request diff and the failing job logs through the Composio tool. It reviews the changes, proposes fixes, pushes commits and reruns the checks until they pass or it needs your input.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
PR Review + CI Auto-Fix
Drive GitHub/GitLab PR reviews and CI triage from the shell using the Composio CLI. No tab-switching between browser, terminal, and chat.
When to Use
- A PR needs a structured review (correctness, style, risks) with inline comments.
- CI is red and you want the agent to read the logs, patch the code, and recheck.
- You want a single command that cycles: fetch diff β critique β fix β push β rerun.
Prereqs
curl -fsSL https://composio.dev/install | bash
composio login
composio link github # or: composio link gitlab
Optional env for non-interactive runs: COMPOSIO_API_KEY.
Core Toolkits
Discover slugs with search, then pin them for reuse:
composio search "list pull request files" --toolkits github
composio search "download workflow logs" --toolkits github
composio search "create pr comment" --toolkits gitlab
Common slugs you'll reuse:
GITHUB_GET_A_PULL_REQUESTGITHUB_LIST_PULL_REQUESTS_FILESGITHUB_CREATE_A_REVIEW_FOR_A_PULL_REQUESTGITHUB_LIST_WORKFLOW_RUNS_FOR_A_REPOSITORYGITHUB_DOWNLOAD_WORKFLOW_RUN_LOGSGITLAB_GET_SINGLE_MERGE_REQUESTGITLAB_LIST_MERGE_REQUEST_DISCUSSIONSGITLAB_CREATE_NEW_MERGE_REQUEST_NOTE
Always confirm via composio execute <SLUG> --get-schema before first use.
Review Workflow
- Pull the PR metadata + diff:
composio execute GITHUB_GET_A_PULL_REQUEST \ -d '{"owner":"acme","repo":"app","pull_number":482}' composio execute GITHUB_LIST_PULL_REQUESTS_FILES \ -d '{"owner":"acme","repo":"app","pull_number":482}' - Summarize risk areas (auth, migrations, public APIs, tests) into a review body.
- Post the review with inline comments:
composio execute GITHUB_CREATE_A_REVIEW_FOR_A_PULL_REQUEST -d '{ "owner":"acme","repo":"app","pull_number":482, "event":"COMMENT", "body":"Overall LGTM with 2 blocking notes.", "comments":[ {"path":"src/auth.ts","line":42,"body":"Missing null check on session"}, {"path":"src/auth.ts","line":88,"body":"Token TTL is hardcoded; move to config"} ] }'
CI Auto-Fix Loop
- Find the red run:
composio execute GITHUB_LIST_WORKFLOW_RUNS_FOR_A_REPOSITORY \ -d '{"owner":"acme","repo":"app","branch":"feat/billing","status":"failure"}' - Pull logs:
composio execute GITHUB_DOWNLOAD_WORKFLOW_RUN_LOGS \ -d '{"owner":"acme","repo":"app","run_id":123456}' - Parse failure β patch locally (the agent writes the fix into the working tree).
- Commit + push via local
git, then re-poll step 1 untilconclusion=success. - Post a PR comment describing each fix commit so the human reviewer sees what changed.
One-Shot Workflow File
Save as scripts/review-and-fix.ts and run with composio run --file ./scripts/review-and-fix.ts -- --pr 482:
const pr = process.argv.includes("--pr")
? Number(process.argv[process.argv.indexOf("--pr") + 1])
: null;
const meta = await execute("GITHUB_GET_A_PULL_REQUEST", {
owner: "acme", repo: "app", pull_number: pr
});
const files = await execute("GITHUB_LIST_PULL_REQUESTS_FILES", {
owner: "acme", repo: "app", pull_number: pr
});
console.log(JSON.stringify({ meta, files }, null, 2));
GitLab Variant
Swap slugs and param names:
composio execute GITLAB_GET_SINGLE_MERGE_REQUEST \
-d '{"id":"acme/app","merge_request_iid":482}'
composio execute GITLAB_CREATE_NEW_MERGE_REQUEST_NOTE \
-d '{"id":"acme/app","merge_request_iid":482,"body":"CI fix pushed as commit deadbeef"}'
Troubleshooting
Connection required for githubβcomposio link github- Unknown input shape β
composio execute <SLUG> --get-schema - Log download huge β stream via
composio proxyagainst the raw API andgreplocally - Rate limits β serialize calls or lower poll frequency; avoid
--parallelfor the same repo
Full CLI reference: docs.composio.dev/docs/cli
FAQ
Does it work with GitLab as well?
Yes. The skill covers both GitHub and GitLab through the Composio tool.
Does the agent check tool names before using them?
Yes. It confirms each tool's schema before its first use.
Can I stop the loop?
Yes. You can stop the cycle at any point, and the agent will report where it left off.
Details
Original description by the author
Automated PR review and CI auto-fix for GitHub and GitLab using the Composio CLI. Pulls diffs, fetches failing job logs, posts review comments, and loops fix commits until checks go green.
Popularity
- GitHub stars
- 17k
- Ranking position
- #10758
- License
- β
- Updated
- 7/25/2026
Comments
- β¦
More skills from this repository
agent-deep-links
17kHelps your agent make clickable links that open a thread, file, folder or setting directly in an app like Codex or Cursor.
brand-guidelines
17kHelps your agent style an artifact with OpenAI-style brand colors and fonts so it matches the Codex look and feel.
codebase-migrate
17kHelps your agent plan and run large code migrations across hundreds of files, such as framework upgrades or API renames.
connect-apps
17kLets your agent take real actions in apps like Gmail, Slack and GitHub, such as sending an email or creating an issue.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.