Logo di 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.

Panoramica

Autoreericmjl
Repositoryskills
Nome della skilldebug-github-ci
Stelle
41
Fork
5
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da ericmjl su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Debug Github Ci in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/ericmjl/skills/tree/main/skills/debug-github-ci
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Debug Github Ci in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Debug Github Ci non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Debug Github Ci non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Debug Github Ci su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Debug Github Ci è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Debug Github Ci in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/ericmjl/skills/tree/main/skills/debug-github-ci. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Debug Github Ci?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Debug Github Ci?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Debug Github Ci: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Debug Github Ci è gratuita?

Sì. È pubblicata su GitHub da ericmjl con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇