pr-review-ci-fix
Skill này làm gì
Skill này giúp agent AI rà soát một pull request, đọc log build lỗi và đề xuất hoặc thực hiện sửa lỗi. Skill dành cho lập trình viên muốn vòng lặp giữa rà soát và tích hợp liên tục nhanh hơn.
Khi nào nên dùng
- ✓Khi một pull request cần được rà soát có cấu trúc với nhận xét ở các dòng cụ thể.
- ✓Khi các kiểm tra tích hợp liên tục (CI) báo đỏ và bạn muốn agent đọc log và tìm nguyên nhân.
- ✓Khi bạn muốn agent lặp lại chu trình sửa, đẩy lên và kiểm tra lại cho đến khi các kiểm tra chuyển sang xanh.
Liên kết skill
https://github.com/composio-community/awesome-codex-skills/blob/master/pr-review-ci-fix/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“CI của chúng tôi đang lỗi ở pull request này. Bạn có thể đọc log, sửa những gì sai và kiểm tra lại không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent lấy diff của pull request và log công việc lỗi qua công cụ Composio. Nó rà soát thay đổi, đề xuất sửa lỗi, đẩy commit và chạy lại các kiểm tra cho đến khi chúng đạt hoặc cần bạn xác nhận.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có hoạt động với GitLab không?
Có. Skill bao gồm cả GitHub và GitLab thông qua công cụ Composio.
Agent có kiểm tra tên công cụ trước khi dùng không?
Có. Nó xác nhận schema của từng công cụ trước lần dùng đầu tiên.
Tôi có thể dừng vòng lặp không?
Có. Bạn có thể dừng chu trình bất cứ lúc nào, và agent sẽ báo cáo nó đã dừng ở đâu.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 17k
- Vị trí xếp hạng
- #10758
- Giấy phép
- —
- Cập nhật
- 25/7/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-deep-links
17kGiúp agent của bạn tạo liên kết có thể nhấp để mở trực tiếp một chuỗi, file, thư mục hoặc cài đặt trong ứng dụng như Codex hoặc Cursor.
brand-guidelines
17kGiúp agent của bạn định dạng sản phẩm với màu sắc và phông chữ theo phong cách OpenAI, để khớp với giao diện của Codex.
codebase-migrate
17kGiúp agent của bạn lập kế hoạch và chạy các đợt di chuyển mã lớn qua hàng trăm file, như nâng cấp framework hoặc đổi tên API.
connect-apps
17kCho phép agent của bạn thực hiện hành động thật trong các ứng dụng như Gmail, Slack và GitHub, chẳng hạn gửi email hoặc tạo issue.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.