pr-review-ci-fix
यह क्या करती है
यह स्किल AI एजेंट को pull request की समीक्षा करने, फ़ेल होने वाले build लॉग पढ़ने और सुधार सुझाने या करने में मदद करती है। यह उन डेवलपर्स के लिए है जो समीक्षा और continuous integration के बीच तेज़ चक्र चाहते हैं।
कब इस्तेमाल करें
- ✓जब किसी pull request को खास पंक्तियों पर टिप्पणियों के साथ संरचित समीक्षा चाहिए।
- ✓जब continuous integration जाँचें लाल हों और आप चाहते हैं कि एजेंट लॉग पढ़कर कारण ढूँढे।
- ✓जब आप चाहते हैं कि एजेंट सुधार, push और दोबारा जाँच का चक्र तब तक दोहराए जब तक जाँचें हरी न हों।
Skill का लिंक
https://github.com/composio-community/awesome-codex-skills/blob/master/pr-review-ci-fix/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस pull request पर हमारा CI फ़ेल हो रहा है। क्या आप लॉग पढ़कर गलती ठीक कर सकते हैं और फिर से जाँच सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट Composio टूल के ज़रिए pull request का diff और फ़ेल हुए job के लॉग लाता है। वह बदलावों की समीक्षा करता है, सुधार सुझाता है, commits push करता है और जाँचें तब तक दोबारा चलाता है जब तक वे पास न हों या उसे आपकी ज़रूरत न पड़े।
तकनीकी सामग्री (मूल 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 दोनों को कवर करती है।
क्या एजेंट इस्तेमाल से पहले tool नाम जाँचता है?
हाँ। पहली बार इस्तेमाल से पहले वह हर tool की schema की पुष्टि करता है।
क्या मैं यह चक्र रोक सकता हूँ?
हाँ। आप किसी भी समय चक्र रोक सकते हैं, और एजेंट बताएगा कि वह कहाँ तक पहुँचा था।
जानकारी
लेखक का मूल विवरण
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
- लाइसेंस
- —
- अपडेट की गई
- 25/7/2026
कमेंट
- …
इस repository की और skills
agent-deep-links
17kआपके एजेंट को ऐसे क्लिक करने योग्य लिंक बनाने में मदद करती है जो Codex या Cursor जैसे ऐप में थ्रेड, फ़ाइल, फ़ोल्डर या सेटिंग सीधे खोलें।
brand-guidelines
17kआपके एजेंट को किसी आर्टिफ़ैक्ट को OpenAI-शैली के ब्रांड रंगों और फ़ॉन्ट में सजाने में मदद करती है, ताकि वह Codex जैसा दिखे।
codebase-migrate
17kआपके एजेंट को सैकड़ों फ़ाइलों में बड़े कोड माइग्रेशन की योजना बनाने और चलाने में मदद करती है, जैसे फ़्रेमवर्क अपग्रेड या API नाम बदलना।
connect-apps
17kआपके एजेंट को Gmail, Slack और GitHub जैसे ऐप में असली काम करने देती है, जैसे ईमेल भेजना या issue बनाना।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।