pr-review-ci-fix

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.

By composio-community · 440 installs

npx skills add composio-community/awesome-codex-skills --skill pr-review-ci-fix

Source repository · Upstream listing

PR Review + CI Auto Fix Drive GitHub/GitLab PR reviews and CI triage from the shell using the [Composio CLI](https://docs.composio.dev/docs/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 Optional env for non interactive runs: COMPOSIO API KEY . Core Toolkits Discover slugs with search, then pin them for reuse: Common slugs you'll reuse: GITHUB GET A PULL REQUEST GITHUB LIST PULL REQUESTS FILES GITHUB CREATE A REVIEW FOR A PULL REQUEST GITHUB LIST WORKFLOW RUNS FOR A REPOSITORY GITHUB DOWNLOAD WORKFLOW RUN LOGS GITLAB GET SINGLE MERGE REQUEST GITLAB LIST MERGE REQUEST DISCUSSIONS GITLAB CREATE NEW MERGE REQUEST NOTE Always confirm via composio execute <SLUG get schema before first use. Review Workflow 1. Pull the PR metadata + diff: 2. Summarize risk areas (auth, migrations, public APIs, tests) into a review body. 3. Post the review with inline comments: CI Auto Fix Loop 1. Find the red run: 2. Pull logs: 3. Parse failure → patch locally (the agent writes the fix into the working tree). 4. Commit + push via local git , then re poll step 1 until conclusion=success . 5. 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 : GitLab Variant Swap slugs and param names: Troubleshooting Connection required for github → composio link github Unknown input shape → composio execute <SLUG get schema Log download huge → stream via composio proxy against the raw API and grep locally Rate limits → serialize calls or lower poll frequency; avoid parallel for the same repo Full CLI reference: [docs.composio.dev/docs/cli](https://docs.composio.dev/docs/cli)