Zum Inhalt springen
Skillpedia
Deployment & Cloud (DevOps)10k · #11898

gha

Was er macht

Dieser Skill untersucht einen fehlgeschlagenen GitHub-Actions-Lauf anhand seines Links. Er findet die eigentliche Ursache und prüft frühere Läufe, ob das Problem wiederkehrt. Er ist für Entwickler gedacht, die immer wieder fehlschlagende Builds sehen.

Wann du ihn nutzt

  • ✓Wenn ein GitHub-Actions-Lauf fehlgeschlagen ist und du die genaue Ursache wissen willst.
  • ✓Wenn ein Job in deinem Workflow manchmal fehlschlägt und du wissen willst, wie oft.
  • ✓Wenn du den Commit finden willst, der einen Job erstmals fehlschlagen ließ.

Link zum Skill

https://github.com/ykdojo/claude-code-tips/blob/main/skills/gha/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/ykdojo/claude-code-tips/blob/main/skills/gha/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Schau dir diesen fehlgeschlagenen GitHub-Actions-Lauf an und sag mir, was ihn verursacht hat und ob es immer wieder passiert.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill nutzt das Kommandozeilenwerkzeug gh, um die Protokolle des Laufs zu lesen und die Ursache zu finden. Danach prüft er die letzten Läufe desselben Jobs, um Erfolgsquote und letzten erfolgreichen Lauf zu ermitteln.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Investigate this GitHub Actions URL: $ARGUMENTS

Use the gh CLI to analyze this workflow run. Your investigation should:

  1. 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
  2. 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, then gh run view <run-id> --json jobs to 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?
  3. 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
  4. 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
  5. 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

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)
Häufige Fragen

Braucht er Zugriff auf GitHub?

Ja. Er nutzt das Werkzeug gh, du musst also angemeldet sein und Zugriff auf das Repository haben.

Prüft er jeden Job eines Workflows?

Er prüft den konkret fehlgeschlagenen Job, nicht nur den Workflow, damit der Verlauf zum richtigen Job gehört.

Behebt er den Fehler für mich?

Der Skill konzentriert sich darauf, die Ursache und den Commit zu finden, der sie eingeführt hat.

Details

Originalbeschreibung des Autors

Analyze GitHub Actions failures and identify root causes

repo: ykdojo/claude-code-tips

Beliebtheit

GitHub-Sterne
10k
Platz im Ranking
#11898
Lizenz
—
Aktualisiert
25.9.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills