composio-community/awesome-codex-skills

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.

First seen Apr 25, 2026

Installation

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

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from composio-community/awesome-codex-skills · top by installs.

npx skills add composio-community/awesome-codex-skills

Browse all from composio-community/awesome-codex-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 16.3K
Default branch master
Open issues 13
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

More metadata
short-description
Automated PR review + CI auto-fix across GitHub/GitLab

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,436 B
  • docs SUMMARY.md 209 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 437 installs

SKILL.md

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: COMPOSIOAPIKEY.

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:

  • GITHUBGETAPULLREQUEST
  • GITHUBLISTPULLREQUESTSFILES
  • GITHUBCREATEAREVIEWFORAPULL_REQUEST
  • GITHUBLISTWORKFLOWRUNSFORAREPOSITORY
  • GITHUBDOWNLOADWORKFLOWRUNLOGS
  • GITLABGETSINGLEMERGEREQUEST
  • GITLABLISTMERGEREQUESTDISCUSSIONS
  • GITLABCREATENEWMERGEREQUEST_NOTE

Always confirm via composio execute <SLUG> --get-schema before first use.

Review Workflow

  1. Pull the PR metadata + diff:

``bash composio execute GITHUBGETAPULLREQUEST \ -d '{"owner":"acme","repo":"app","pullnumber":482}' composio execute GITHUBLISTPULLREQUESTSFILES \ -d '{"owner":"acme","repo":"app","pullnumber":482}' ``

  1. Summarize risk areas (auth, migrations, public APIs, tests) into a review body.
  2. Post the review with inline comments:

``bash composio execute GITHUBCREATEAREVIEWFORAPULLREQUEST -d '{ "owner":"acme","repo":"app","pullnumber":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

  1. Find the red run:

``bash composio execute GITHUBLISTWORKFLOWRUNSFORAREPOSITORY \ -d '{"owner":"acme","repo":"app","branch":"feat/billing","status":"failure"}' ``

  1. Pull logs:

``bash composio execute GITHUBDOWNLOADWORKFLOWRUNLOGS \ -d '{"owner":"acme","repo":"app","run_id":123456}' ``

  1. Parse failure → patch locally (the agent writes the fix into the working tree).
  2. Commit + push via local git, then re-poll step 1 until conclusion=success.
  3. 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 githubcomposio link github
  • Unknown input shapecomposio 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