gha
यह क्या करती है
यह स्किल विफल GitHub Actions रन को उसके लिंक से जाँचती है। यह विफलता का असली कारण ढूँढती है, फिर पुराने रनों से देखती है कि समस्या बार-बार तो नहीं आ रही। यह उन डेवलपरों के लिए है जो बार-बार बिल्ड विफल होते देखते हैं।
कब इस्तेमाल करें
- ✓जब GitHub Actions रन विफल हो गया हो और आपको उसका सही कारण जानना हो।
- ✓जब आपके वर्कफ़्लो का कोई जॉब कभी-कभी विफल होता है और आप जानना चाहते हैं कि कितनी बार होता है।
- ✓जब आप वह कमिट ढूँढना चाहते हैं जिससे कोई जॉब पहली बार विफल होने लगा।
Skill का लिंक
https://github.com/ykdojo/claude-code-tips/blob/main/skills/gha/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस विफल GitHub Actions रन को देखिए और बताइए कि उसका कारण क्या था और क्या यह बार-बार हो रहा है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल GitHub कमांड-लाइन टूल से रन के लॉग पढ़ती है और विफलता का कारण खोजती है। फिर उसी जॉब के हाल के रन देखती है, ताकि उसकी सफलता दर और आखिरी बार सफल होने का समय पता चले।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Investigate this GitHub Actions URL: $ARGUMENTS
Use the gh CLI to analyze this workflow run. Your investigation should:
Get basic info & identify actual failure:
- What workflow/job failed, when, and on which commit?
- CRITICAL: Read the full logs carefully to find what SPECIFICALLY caused the exit code 1
- Distinguish between warnings/non-fatal errors vs actual failures
- Look for patterns like "failing:", "fatal:", or script logic that determines when to exit 1
- If you see both "non-fatal" and "fatal" errors, focus on what actually caused the failure
Check flakiness: Check the past 10-20 runs of THE EXACT SAME failing job:
- IMPORTANT: If a workflow has multiple jobs, you must check history for the SPECIFIC JOB that failed, not just the workflow
- Use
gh run list --workflow=<workflow-name>to get run IDs, thengh run view <run-id> --json jobsto check the specific job's status - Is this a one-time failure or recurring pattern for THIS SPECIFIC JOB?
- What's the success rate for THIS JOB recently?
- When did THIS JOB last pass?
Identify breaking commit (if there's a pattern of failures for the specific job):
- Find the first run where THIS SPECIFIC JOB failed and the last run where it passed
- Identify the commit that introduced the failure
- Verify by checking: does THIS JOB fail in ALL runs after that commit? Does it pass in ALL runs before?
- If verified, report the breaking commit with high confidence
Root cause: Based on logs, history, and any breaking commit, what's the likely cause?
- Focus on what ACTUALLY caused the failure (not just any errors you see)
- Verify your hypothesis against the logs and failure logic
Check for existing fix PRs: Search for open PRs that might already address this issue:
- Use
gh pr list --state open --search "<keywords>"with relevant error messages or file names - Check if any open PR modifies the failing file/workflow
- If a fix PR exists, note it in your report and skip the recommendation section
- Use
Write a final report with:
- Summary of failure (what specifically triggered the exit code 1)
- Flakiness assessment (one-time vs recurring, success rate)
- Breaking commit (if identified and verified)
- Root cause analysis (based on the ACTUAL failure trigger)
- Existing fix PR (if found - include PR number and link)
- Recommendation (skip if fix PR already exists)
अक्सर पूछे जाने वाले सवाल
क्या इसके लिए GitHub की पहुँच चाहिए?
हाँ। यह gh कमांड-लाइन टूल इस्तेमाल करती है, इसलिए आपको उस रिपॉज़िटरी की पहुँच के साथ साइन इन होना होगा।
क्या यह वर्कफ़्लो के हर जॉब की जाँच करती है?
यह सिर्फ़ विफल हुए खास जॉब की जाँच करती है, ताकि इतिहास सही जॉब का हो।
क्या यह विफलता खुद ठीक कर देती है?
स्किल का ध्यान कारण ढूँढने और उस कमिट को पहचानने पर है जिसने समस्या शुरू की।
जानकारी
लेखक का मूल विवरण
Analyze GitHub Actions failures and identify root causes
repo: ykdojo/claude-code-tips
लोकप्रियता
- GitHub स्टार
- 10k
- रैंकिंग में स्थान
- #11898
- लाइसेंस
- —
- अपडेट की गई
- 25/9/2026
कमेंट
- …
इस repository की और skills
half-clone
10kआपके एजेंट को लंबी चैट का बाद वाला आधा हिस्सा नए सेशन में कॉपी करने में मदद करती है, ताकि कम टोकन लगें और हाल का काम बचा रहे।
handoff
10kआपके एजेंट को HANDOFF.md दस्तावेज़ लिखने में मदद करती है, ताकि नई चैट लक्ष्य, प्रगति और अगले कदमों के साथ प्रोजेक्ट को आगे बढ़ा सके।
hn-summarize
10kआपके एजेंट को Hacker News की टॉप स्टोरी, या किसी एक स्टोरी और उसकी टिप्पणियों का सार बनाने में मदद करती है, आधिकारिक डेटा से।
private-github-search
10kआपके एजेंट को आपकी सभी GitHub रिपॉज़िटरी में, निजी वाली भी, स्थानीय कॉपी और तेज़ टेक्स्ट खोज से खोजने में मदद करती है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।