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

github-triage

यह क्या करती है

किसी GitHub रिपॉज़िटरी के खुले इश्यू और पुल रिक्वेस्ट छाँटती है, हल हो चुके इश्यू ढूँढती है और इश्यू को उनके फ़िक्स से जोड़ती है। यह उन मेंटेनर्स के लिए है जो इश्यू की बैकलॉग साफ़ करना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब कोई मेंटेनर रिपॉज़िटरी के खुले इश्यू और पुल रिक्वेस्ट व्यवस्थित करना चाहता है।
  • ✓जब मेंटेनर को ऐसे फ़िक्स मिलें जो आ तो गए, पर इश्यू बंद नहीं हुए।
  • ✓जब मेंटेनर के पास तैयार पुल रिक्वेस्ट जमा हों और वह उन्हें रिव्यू या मर्ज करवाना चाहता है।

Skill का लिंक

https://github.com/trailofbits/skills/blob/main/plugins/github-triage/skills/github-triage/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

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

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

AI से क्या माँगें: उदाहरण

“मेरी रिपॉज़िटरी के खुले इश्यू और पुल रिक्वेस्ट देखकर बताइए कि किन्हें बंद या मर्ज किया जा सकता है।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह स्किल gh टूल से खुली चीज़ें जाँचती है, जो इश्यू पहले से ठीक हो चुके हैं उन्हें ढूँढती है, और इश्यू को लंबित फ़िक्स से जोड़ती है। यह स्थानीय प्राथमिकता और आकार का अनुमान देती है, और हर मर्ज या बंद करने का प्रस्ताव आपकी मंज़ूरी के लिए रखती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

GitHub Triage

Triage a repository's open GitHub issues and pull requests. Optionally clear ready PRs first (merge passing bot PRs and maintainer-approved PRs, review never-reviewed ones), then close issues that are already resolved (with a comment citing the PR or commit that resolved them), make sure issues and the pending PRs that fix them reference each other, and assign a local-only priority and change-size estimate to every issue that is still outstanding.

When to Use

  • When the user runs /github-triage to groom or review a repository's open issues and pull requests.
  • When an issue backlog has drifted: resolved work left open, fixes landed without closing their issues, or PRs in flight that never linked their issue.
  • When ready PRs have piled up (passing dependency bumps, approved-and-green PRs) or PRs are sitting unreviewed.

When NOT to Use

  • Do not invoke automatically. This skill performs irreversible GitHub writes (merging PRs, closing issues, posting comments) and runs only on explicit invocation.
  • Do not use to apply priority/effort labels on GitHub. Priority and size are presented locally only and are never posted (see Safety Rules).
  • Do not use as a substitute for a human's final merge decision — every merge is proposed for explicit approval, never performed autonomously.

Core Principles

  1. Writes are gated. Compute the full triage first, present every proposed write — merges included — for review, and execute nothing until the user approves.
  2. Evidence before closing. Never close an issue without a concrete, cited reason (a merged PR or a commit on the default branch). When evidence is weak or ambiguous, leave the issue outstanding and flag it for review.
  3. Priority and size stay local. They are an internal planning aid for the user, never written to GitHub.

Workflow

Phase 0: Select the target repository

gh auth status                       # confirm gh is authenticated
git rev-parse --is-inside-work-tree  # is PWD a git repository?
git remote -v                        # enumerate remotes

Determine the set of distinct GitHub-hosted repositories among the remotes. A remote is GitHub-hosted when its URL host is github.com, in any of these forms:

  • https://github.com/OWNER/REPO(.git)
  • git@github.com:OWNER/REPO(.git)
  • ssh://git@github.com/OWNER/REPO(.git)

Normalize each to OWNER/REPO and de-duplicate (a fork setup may have origin and upstream pointing at different GitHub repos; multiple remotes pointing at the same OWNER/REPO count once).

Selection rule:

Situation Action
Exactly one distinct GitHub repo Use it as the default — do not prompt.
Not a git repo, or zero GitHub remotes Ask the user for the OWNER/REPO to triage.
More than one distinct GitHub repo Use AskUserQuestion to let the user pick which OWNER/REPO.

GitHub Enterprise hosts cannot be auto-detected reliably. If the user works on a GHE instance, ask for OWNER/REPO and have them set GH_HOST / use gh's configured host. Confirm the resolved repo back to the user before continuing.

Store the result as REPO="OWNER/REPO" and pass -R "$REPO" to every gh call. Validate it against ^[A-Za-z0-9._-]+/[A-Za-z0-9._-]+$ before use, so a malformed or hostile remote URL never flows into a command.

Phase 1: Gather issues and context

# Open issues (gh issue list excludes PRs by default)
gh issue list -R "$REPO" --state open --limit 1000 \
  --json number,title,body,labels,assignees,comments,reactionGroups,createdAt,updatedAt,url

# Open PRs — candidates for "pending fix" (issue phase) and PR triage (Phase 2)
gh pr list -R "$REPO" --state open --limit 1000 \
  --json number,title,body,author,isDraft,reviewDecision,latestReviews,\
mergeable,mergeStateStatus,statusCheckRollup,labels,createdAt,headRefName,url,closingIssuesReferences

# Recently merged PRs — candidates for "already resolved"
gh pr list -R "$REPO" --state merged --limit 300 \
  --json number,title,body,mergedAt,url,closingIssuesReferences

closingIssuesReferences lists the issues a PR is linked to close — populated by any of GitHub's closing keywords (close/closes/closed, fix/fixes/fixed, resolve/resolves/resolved) in the PR body, or by a manual UI link. It is the strongest available signal. For issues it does not cover, also search commit messages on the default branch. Re

अक्सर पूछे जाने वाले सवाल

क्या यह खुद कुछ मर्ज या बंद कर देगी?

नहीं। मर्ज और बंद करने के प्रस्ताव साफ़ मंज़ूरी के लिए रखे जाते हैं, और स्किल इन्हें अपने-आप नहीं चलाती।

क्या प्राथमिकता के लेबल GitHub पर लगाए जाते हैं?

नहीं। प्राथमिकता और आकार के अनुमान सिर्फ़ स्थानीय रूप से दिखते हैं और कभी पोस्ट नहीं होते।

क्या यह अपने-आप चलती है?

नहीं। यह तभी चलती है जब आप इसे बुलाते हैं, क्योंकि यह GitHub पर ऐसे बदलाव करती है जो वापस नहीं हो सकते।

जानकारी

लेखक का मूल विवरण

Triages a repository's open GitHub issues and pull requests via the gh CLI. Optionally reviews and merges ready PRs — incrementally merging passing automated/bot PRs and maintainer-approved ones, and spawning review subagents for never-reviewed ones — then closes already-resolved issues with comments citing the resolving PR or commit, cross-links issues with their pending fix PRs, and assigns local-only priority and change-size estimates for everything outstanding. Use when triaging, grooming, or reviewing a repository's open issues and PRs.

repo: trailofbits/skills

लोकप्रियता

GitHub स्टार
8.0k
रैंकिंग में स्थान
#12681
लाइसेंस
CC-BY-SA-4.0
अपडेट की गई
2/11/2026

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

0

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

कमेंट

  • …

इस repository की और skills

audit-context-building

8.0k

यह आपके एजेंट को सुरक्षा जाँच से पहले किसी अनजान कोड को समझने में मदद करती है, हर फ़ंक्शन की मान्यताएँ और निर्भरताएँ नक्शे में दिखाकर।

कोडिंगसिक्योरिटी

algorand-vulnerability-scanner

8.0k

यह आपके एजेंट को Algorand कॉन्ट्रैक्ट्स में 11 आम सुरक्षा समस्याएँ जाँचने में मदद करती है, जैसे रीकीइंग हमले और बिना जाँची फ़ीस।

कोडिंगसिक्योरिटी

audit-prep-assistant

8.0k

यह आपके एजेंट को बाहरी सुरक्षा समीक्षा के लिए कोड तैयार करने में मदद करती है, जैसे स्टैटिक एनालिसिस, टेस्ट कवरेज और दस्तावेज़ीकरण।

कोडिंगसिक्योरिटी

cairo-vulnerability-scanner

8.0k

यह आपके एजेंट को StarkNet के Cairo कॉन्ट्रैक्ट्स में 6 गंभीर समस्याएँ जाँचने में मदद करती है, जैसे ओवरफ़्लो और सिग्नेचर रीप्ले।

कोडिंगसिक्योरिटी

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