Debug Github Ci logo

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.

Overview

Publisherericmjl
Repositoryskills
Skill namedebug-github-ci
Stars
41
Forks
5
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ericmjl on GitHub. Read the source before you install it.

Installation

Install the Debug Github Ci AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ericmjl/skills/tree/main/skills/debug-github-ci
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Debug Github Ci in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Debug Github Ci on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Debug Github Ci is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Frequently asked questions

What does the Debug Github Ci AI skill do?

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.

Why use Debug Github Ci on TypingMind?

Because you install it once and use it with any model. Debug Github Ci is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Debug Github Ci in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ericmjl/skills/tree/main/skills/debug-github-ci. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Debug Github Ci?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Debug Github Ci?

As many as you like. As long as a model supports skills, you can use Debug Github Ci with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Debug Github Ci AI skill free?

Yes. It is published on GitHub by ericmjl under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇