better-github-skill
यह क्या करती है
यह AI एजेंट को pull request की स्थिति, समीक्षा थ्रेड और विफल CI चेक के लिए तीन तैयार सहायक देती है। यह उन डेवलपर्स के लिए है जिन्हें pull request के बारे में जल्दी जवाब चाहिए।
कब इस्तेमाल करें
- ✓जब आपको pull request की चेक और समीक्षा समेत पूरी स्थिति रिपोर्ट चाहिए।
- ✓जब आपको समीक्षा की बातचीत पढ़नी हो, जिसमें अभी न सुलझी टिप्पणियाँ भी शामिल हों।
- ✓जब कोई CI बिल्ड विफल हो गया हो और आप जानना चाहते हैं कि कौन-सा चरण टूटा और क्यों।
Skill का लिंक
https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/better-github-skill/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे pull request पर CI चेक क्यों विफल हुए, और समीक्षकों ने क्या कहा?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट छोटी स्क्रिप्ट चलाता है जो pull request का विवरण, समीक्षा थ्रेड या विफल जॉब के लॉग एक बार में इकट्ठा करती हैं। बाकी सब के लिए वह सामान्य GitHub कमांड-लाइन टूल इस्तेमाल करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
better-github-skill
Use these scripts only for the three flows listed below. Otherwise use raw
gh. Scripts run TypeScript with Bun and have no dependencies.
Scripts
| script | use for |
|---|---|
bun run scripts/pr-snapshot.ts [pr] [-R o/r] |
full PR state in one call: meta, mergeability, checks, files, reviews, comments, thread counts. Use instead of hand-assembling pr view --json field sets or chaining view/checks/comments calls. |
bun run scripts/pr-threads.ts [pr] [-R o/r] [--all] [--author X] [--since ISO] |
the full review conversation: review bodies, issue comments, and unresolved inline threads (resolution state porcelain gh cannot get). Resolved/outdated threads are hidden by default, counted in the header; --all includes them. Read-only: never reply to or resolve threads unless explicitly told to. |
bun run scripts/ci-failures.ts [run-id] [--pr N] [--list] [-R o/r] |
failing checks → failing jobs/steps → log snippet each; full logs saved to files (paths printed); rg those instead of re-fetching. --list [--workflow W] [-L n] shows recent runs with conclusions; use it to find the failing run id instead of gh run list --json field sets. |
Rule of thumb: pr-snapshot answers "what's the state of this PR", pr-threads answers "what did reviewers write". Neither replaces the other.
All scripts: --json for structured output, --help for usage (includes the
--json shape). Omit the PR number to use the current branch's PR. Default
output is sized for context; pass --full only when a truncation marker
([…+N chars]) hides something you need. They exit 0 when the report
succeeds even if CI is red or threads are unresolved.
Gotchas (each one burned real sessions repeatedly)
- Never pipe gh into
head: SIGPIPE can kill gh mid-write (spurious nonzero exit, shell-dependent) or silently truncate large output. Redirect to a file and read that, or trim with--jq '.[0:20]'. gh pr diffhas no--statand no positive pathspec (--name-onlyand-e/--excludeglobs exist in gh ≥ 2.95). Per-file stats:gh api 'repos/{owner}/{repo}/pulls/N/files' --jq '.[]|[.filename,.additions,.deletions]|@tsv'Full diff:gh pr diff N > "$TMPDIR/pr.diff"once, then rg/sed the file.gh pr checksexits 1 = failing, 8 = pending by design; append|| true, read the table.- File at any ref, no base64 dance:
gh api 'repos/{owner}/{repo}/contents/PATH?ref=SHA' -H 'Accept: application/vnd.github.raw' gh apifills{owner}/{repo}from the cwd repo (GH_REPO=o/roverrides). Quote any api path containing?(zsh globs it), or use-X GET -F per_page=100(any-f/-Fsilently flips the request to POST without-X GET).--paginateon any list endpoint (/comments,/files,/reviews);--jqalready runs per page; don't add--slurp.- PR/comment bodies:
--body-file file.mdor a quoted heredoc. Never inline--body "..."containing backticks. - Field cheat-sheet: CI status on a PR =
statusCheckRollup(pr view); steps live undergh run view N --json jobs;gh search prsfields ≠gh pr viewfields. - gh has no
-C; pass-R owner/repoto every command, or cd first. - Branch rules live at
gh api 'repos/{owner}/{repo}/rulesets'on modern repos;/branches/main/protection404s unless classic protection is on AND you have admin ("Branch not protected" or plain "Not Found" both mean check rulesets; neither is a path error). - Branch drift:
gh api 'repos/{owner}/{repo}/compare/BASE...HEAD' --jq '{ahead_by,behind_by}' - jq beyond one line: write the program to a file and
jq -f prog.jq; inline zsh quoting breaks. - Don't sleep-poll runs or checks;
gh run watch IDandgh pr checks N --watch --fail-fastexist; let the harness background them.
अक्सर पूछे जाने वाले सवाल
क्या इसके लिए खास सॉफ़्टवेयर चाहिए?
हाँ। स्क्रिप्ट Bun के साथ चलती हैं, जो एक JavaScript रनटाइम है, और वे GitHub कमांड-लाइन टूल के साथ काम करती हैं।
क्या यह समीक्षा टिप्पणियों का जवाब दे सकती है या उन्हें resolve कर सकती है?
नहीं। समीक्षा थ्रेड स्क्रिप्ट केवल पढ़ने वाली है, इसलिए जब तक आप साफ़ न कहें, एजेंट थ्रेड का जवाब नहीं देता या उन्हें resolve नहीं करता।
यह सामान्य GitHub कमांड से कैसे अलग है?
यह एक ही कॉल में कई तरह की जानकारी इकट्ठा करती है और पूरे CI लॉग फ़ाइलों में सहेजती है, इसलिए एजेंट को कई कमांड जोड़ने नहीं पड़ते।
जानकारी
लेखक का मूल विवरण
Use for 1) inspecting PR state, 2) reading review threads, or 3) debugging CI failures. Otherwise use the gh CLI.
repo: humanlayer/humanlayer
लोकप्रियता
- GitHub स्टार
- 13k
- रैंकिंग में स्थान
- #11381
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
asd-ste100
13kउलझे हुए अंग्रेज़ी टेक्स्ट को छोटे, एक-अर्थ वाले वाक्यों में बदलना सिखाती है, जो लोगों और दूसरे सॉफ़्टवेयर दोनों के लिए पढ़ने में आसान हों।
calldiff
13kकोड समीक्षा में बदलाव का असर देखने के लिए, दो git संस्करणों के बीच कोड में फ़ंक्शन कॉल की श्रृंखलाओं की तुलना करने में मदद करती है।
chrome-devtools-cli
13kआपके एजेंट को टर्मिनल से Chrome चलाने देती है, ताकि वह पेज खोल सके, क्लिक कर सके, फ़ॉर्म भर सके और ब्राउज़र ऑटोमेशन व टेस्टिंग के लिए पेज का स्नैपशॉट ले सके।
effect-program-design
13kउत्पादन के लिए Effect v4 प्रोग्राम डिज़ाइन और टेस्ट करने में मदद करती है, जिसमें साफ़ सर्विस, टाइप्ड एरर, लेयर और संसाधनों का सुरक्षित इस्तेमाल हो।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।