मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)13k · #11381

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 पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/better-github-skill/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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 diff has no --stat and no positive pathspec (--name-only and -e/--exclude globs 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 checks exits 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 api fills {owner}/{repo} from the cwd repo (GH_REPO=o/r overrides). Quote any api path containing ? (zsh globs it), or use -X GET -F per_page=100 (any -f/-F silently flips the request to POST without -X GET).
  • --paginate on any list endpoint (/comments, /files, /reviews); --jq already runs per page; don't add --slurp.
  • PR/comment bodies: --body-file file.md or a quoted heredoc. Never inline --body "..." containing backticks.
  • Field cheat-sheet: CI status on a PR = statusCheckRollup (pr view); steps live under gh run view N --json jobs; gh search prs fields ≠ gh pr view fields.
  • gh has no -C; pass -R owner/repo to every command, or cd first.
  • Branch rules live at gh api 'repos/{owner}/{repo}/rulesets' on modern repos; /branches/main/protection 404s 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 ID and gh pr checks N --watch --fail-fast exist; 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

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

asd-ste100

13k

उलझे हुए अंग्रेज़ी टेक्स्ट को छोटे, एक-अर्थ वाले वाक्यों में बदलना सिखाती है, जो लोगों और दूसरे सॉफ़्टवेयर दोनों के लिए पढ़ने में आसान हों।

लेखन और डॉक्यूमेंटलेखन

calldiff

13k

कोड समीक्षा में बदलाव का असर देखने के लिए, दो git संस्करणों के बीच कोड में फ़ंक्शन कॉल की श्रृंखलाओं की तुलना करने में मदद करती है।

कोडिंगसामान्य कोडिंग

chrome-devtools-cli

13k

आपके एजेंट को टर्मिनल से Chrome चलाने देती है, ताकि वह पेज खोल सके, क्लिक कर सके, फ़ॉर्म भर सके और ब्राउज़र ऑटोमेशन व टेस्टिंग के लिए पेज का स्नैपशॉट ले सके।

कोडिंगटेस्टिंग

effect-program-design

13k

उत्पादन के लिए Effect v4 प्रोग्राम डिज़ाइन और टेस्ट करने में मदद करती है, जिसमें साफ़ सर्विस, टाइप्ड एरर, लेयर और संसाधनों का सुरक्षित इस्तेमाल हो।

कोडिंगAPI और सर्वर (backend)

मिलती-जुलती skills