Debug Github Ciのロゴ

Debug Github Ci

コミュニティ
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.

概要

公開者ericmjl
リポジトリskills
スキル名debug-github-ci
スター
41
フォーク
5
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    ericmjlがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルDebug Github CiをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/ericmjl/skills/tree/main/skills/debug-github-ci
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDebug Github Ciを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にDebug Github Ciを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Debug Github Ciは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「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.

TypingMindでDebug Github Ciを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Debug Github Ciはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDebug Github Ciをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/ericmjl/skills/tree/main/skills/debug-github-ciを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Debug Github Ciを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Debug Github Ciは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDebug Github Ciを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Debug Github Ci」は無料ですか?

はい。ericmjlがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇