Logo van Debug Github Ci

Debug Github Ci

Community
ericmjl
debug-github-ci

Debug GitHub Actions and CI failures using gh CLI: watch PR checks, fetch run logs, analyze failures, reproduce locally, and suggest fixes. Use when CI fails, when the user wants to watch or verify CI, or when debugging workflow runs.

Overzicht

Uitgeverericmjl
Repositoryskills
Skillnaamdebug-github-ci
Sterren
41
Forks
5
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door ericmjl op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Debug Github Ci in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/ericmjl/skills/tree/main/skills/debug-github-ci
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ericmjl/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/debug-github-ci .claude/skills/debug-github-ci
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Debug Github Ci in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Debug Github Ci automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Debug Github Ci niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Debug GitHub CI

This skill guides systematic debugging of GitHub Actions (and other CI) failures and gives a clear way to "pay attention to CI" using the GitHub CLI.

Usage

Use this skill when:

  • A GitHub Actions (or other CI) workflow has failed and the user wants to fix it
  • The user says they want to "watch CI," "make sure CI passes," or "pay attention to checks"
  • The user shares a workflow run URL or asks to debug a failed run

Inputs: the user may give a link to a failing job/run or a link to the PR. Also accepted: PR number, branch name, or run ID. Repo can be overridden with -R owner/repo when not in a git checkout.

Requirements

  • GitHub CLI (gh) installed and authenticated (gh auth status)
  • Optional: act for running workflows locally (brew install act)

What It Does

  1. Watch CI — When the user wants to pay attention to CI, run gh pr checks --watch so status updates in the terminal.
  2. Inspect failures — Fetch run metadata and logs for failed jobs.
  3. Analyze — Identify failed job(s), step, and root cause (deps, permissions, timeouts, etc.).
  4. Reproduce — Checkout the same commit, run the same commands (or use act), compare with CI.
  5. Fix — Suggest concrete changes, commands, and preventive steps.

How It Works

1. Watching CI (paying attention to checks)

When the user wants to ensure CI is working or to monitor checks (e.g. after pushing or opening a PR), run:

bash
gh pr checks --watch --interval 5

Run from the repo root. If the current branch is not a PR branch, use:

bash
gh pr checks <PR> --watch --interval 5

Tell the user you're watching CI so they know checks will be monitored. --interval is in seconds (default 10). Optional: --fail-fast to exit watch as soon as any check fails.

2. Handling the user's link

User gives a link to a failing job or run
  • URLs look like: .../actions/runs/<run-id> or .../actions/runs/<run-id>/jobs/<job-id>
  • Parse the URL to get run-id (and job-id if present)
  • Use them directly:
bash
gh run view <run-id> -R owner/repo
gh run view <run-id> --log-failed -R owner/repo
  • To fetch logs for one specific job:
bash
gh run view <run-id> --job <job-id> --log -R owner/repo
  • Omit -R owner/repo when already in that repo.
User gives a link to the PR
  • URL looks like: .../pull/<number> (e.g. .../pull/42)
  • Get the PR's head commit, then list runs for that commit to find the failed run:
bash
gh pr view <PR> -R owner/repo --json headRefOid -q .headRefOid
gh run list --commit <sha> -R owner/repo
  • Optionally filter to failed runs only: gh run list --commit <sha> --status failure -R owner/repo. Note the run ID from the output (first column), then fetch logs as below.
  • Then fetch logs as above: gh run view <run-id> --log-failed
  • To watch checks for this PR: gh pr checks <PR> --watch --interval 5

3. Extracting workflow information

From the run (and URL), identify: repository owner/name, run ID, workflow name, branch or commit that triggered the run.

4. Fetching logs with GitHub CLI

bash
gh run list --limit 20
gh run view <run-id>
gh run view <run-id> --log
gh run view <run-id> --log-failed

Use --log-failed to focus on failed job logs first.

5. Analyzing the failure

  • Which job(s) failed and at which step
  • Error messages, exit codes, stack traces
  • Common causes: dependency/version issues, permissions, timeouts, resource limits, env differences
  • Relevant workflow YAML (.github/workflows/*.yaml) and environment setup

6. Reproducing locally

  • Checkout the same commit or branch: git checkout <commit-sha> or git checkout <branch>
  • Read the workflow file to see exact commands and environment
  • Run the same sequence locally (e.g. same install and test commands: pixi install, pixi run test, npm ci && npm test)
  • Match environment versions (Python, Node, etc.) if specified in the workflow
  • Optionally use act for closer parity:
    • act -j <job-name> or act to run jobs locally
    • Note: act may not support every action or secret
  • Compare local vs CI output and note any environment differences

7. Providing fixes and follow-up

  • Explain what went wrong in plain terms
  • Suggest specific fixes: config changes, dependency updates, workflow edits
  • Give exact commands or code snippets where helpful
  • Recommend next steps (re-run, re-push, add checks) and how to avoid similar failures
  • Tailor advice to the project (e.g. Python/pixi vs Node/npm)

Quick reference

GoalCommand
User gave job/run URLParse run-id from URL → gh run view <run-id> --log-failed
User gave PR URLgh pr view <PR> --json headRefOid -q .headRefOidgh run list -c <sha> -s failure
Watch PR checksgh pr checks --watch --interval 5
Run summarygh run view <run-id>
Full logsgh run view <run-id> --log
Failed job logs onlygh run view <run-id> --log-failed
Single job loggh run view <run-id> --job <job-id> --log

Focus on actionable, specific solutions. When the user wants to "pay attention to CI," start with gh pr checks --watch --interval 5 and then continue with the rest of the workflow as needed.

Veelgestelde vragen

Wat doet de AI-skill Debug Github Ci?

Debug GitHub Actions and CI failures using gh CLI: watch PR checks, fetch run logs, analyze failures, reproduce locally, and suggest fixes. Use when CI fails, when the user wants to watch or verify CI, or when debugging workflow runs.

Waarom Debug Github Ci gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Debug Github Ci bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Debug Github Ci in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/ericmjl/skills/tree/main/skills/debug-github-ci. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Debug Github Ci gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Debug Github Ci gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Debug Github Ci ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Debug Github Ci gratis?

Ja. Deze skill is door ericmjl op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇