pr-review-ci-fix
できること
このスキルは、AIエージェントがプルリクエストをレビューし、失敗したビルドのログを読み、修正を提案または実施するよう支援します。レビューと継続的インテグレーションの間を、素早く回したい開発者向けです。
使う場面
- ✓プルリクエストについて、特定の行にコメントを付けた体系的なレビューが必要なとき。
- ✓CIのチェックが赤くなり、エージェントにログを読ませて原因を見つけてほしいとき。
- ✓チェックが緑になるか、あなたの判断が必要になるまで、修正、プッシュ、再確認を繰り返してほしいとき。
スキルのリンク
https://github.com/composio-community/awesome-codex-skills/blob/master/pr-review-ci-fix/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このプルリクエストでCIが失敗しています。ログを読み、問題を修正して、もう一度確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、Composioツールを通じて、プルリクエストの差分と失敗したジョブのログを取得します。変更を確認し、修正を提案してコミットをプッシュし、チェックが通るか、あなたの入力が必要になるまで再実行します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
GitLabでも使えますか?
はい。このスキルは、Composioツールを通じてGitHubとGitLabの両方に対応しています。
エージェントはツール名を使う前に確認しますか?
はい。各ツールを初めて使う前に、そのスキーマを確認します。
ループを止めることはできますか?
はい。いつでもサイクルを止められ、エージェントはどこまで進んだかを報告します。
詳細
作者による元の説明
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.
人気
- GitHubのスター
- 17k
- ランキング
- #10758
- ライセンス
- —
- 更新日
- 2026/7/25
コメント
- …
このリポジトリの他のスキル
agent-deep-links
17kエージェントが、CodexやCursorなどのアプリで、スレッド、ファイル、フォルダー、設定を直接開くクリック可能なリンクを作れるよう支援します。
brand-guidelines
17kエージェントが、Codexの見た目に合わせて、OpenAI風のブランドカラーとフォントでアーティファクトを整えられるよう支援します。
codebase-migrate
17kエージェントが、フレームワークのアップグレードやAPI名の変更など、数百のファイルにまたがる大きなコード移行を計画し、実行できるよう支援します。
connect-apps
17kエージェントが、Gmail、Slack、GitHubなどのアプリで、メールの送信やIssueの作成といった実際の操作を行えるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。