本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)16k · #10828

ci-triage

できること

このスキルは、GitHub Actionsの赤いビルドや失敗したワークフローを理解するよう支援します。失敗が自分のせいか、不安定なテストか、インフラの問題かを知りたい開発者向けです。

使う場面

  • ✓プルリクエストのチェックが赤くなり、その理由を知りたいとき。
  • ✓ワークフローが失敗し、ログの中の最初の本当のエラーを見つける必要があるとき。
  • ✓テストが不安定かもしれず、本当の失敗と区別したいとき。

スキルのリンク

https://github.com/ParadevAI/Paradev/blob/main/plugins/github/skills/ci-triage/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/ParadevAI/Paradev/blob/main/plugins/github/skills/ci-triage/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“プルリクエストのチェックが赤くなっています。どのジョブが失敗したのか、それは私のせいなのかを教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、実行内のジョブを一覧にし、最初に失敗したものを見つけ、そのログの最初のエラーを調べます。そのエラーを、本当の失敗、環境の問題、不安定なテスト、既に存在していた問題のいずれかに分類します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Diagnose a failing CI run

The goal is one sentence a human can act on: which job failed, on what, and whether it is this PR's fault. A screenshot of red checks is not a diagnosis.

1. Find the first failure, not the loudest one

List the run's jobs and take the earliest failing one. Later jobs usually fail because an earlier one did, and their logs are longer and more alarming — which is why people diagnose the wrong job.

Within that job, find the first error, not the last. Build tooling prints a summary at the end that names the last thing to fail; the first error is what actually broke.

Skip past the noise that always appears in failing logs: deprecation warnings, peer dependency notices, cache misses. None of them fail a build on their own.

2. Classify before investigating

Read the first error and put it in one of four buckets. They have different fixes and mixing them up wastes the most time.

Bucket Signal What to do
Real failure Assertion, type error, or compile error naming code this PR touched Report the file and line
Environment Network timeout, registry 5xx, disk full, runner image change Re-run; if it persists, it is infrastructure
Flake Timing, ordering, or concurrency; passes on re-run See step 4 — do not stop at "re-run passed"
Pre-existing Fails identically on the base branch Not this PR's problem; say so explicitly

Check pre-existing early. Fetch the most recent run on the base branch and compare the failing job. A PR blamed for a failure it inherited burns an afternoon.

3. Attribute it to a change

For a real failure, connect the error to a diff. Get the PR's changed files and check whether the failing test or module is among them, or imports something that is.

If the failing area is untouched by the PR, the likely causes in order are: a dependency that moved, a merge with a base that already broke, or a genuine action-at-a-distance bug — which is the most interesting outcome and worth saying out loud.

4. Do not launder a flake into a pass

A re-run that goes green proves the failure is intermittent. It does not prove the code is correct, and intermittent failures in CI are usually real race conditions that will also happen in production.

When you re-run and it passes, say that plainly, name the test, and check whether it has failed before on other PRs. A test that flakes on many PRs is a bug report about that test. Re-running until green and reporting success is how a real concurrency bug survives review.

5. Report

Give the requester, in this order: the job, the first error with its file and line, the bucket from step 2, and what you recommend. Link the specific failing step, not the run — the run page makes them hunt for what you already found.

If the fix is small and obvious, say what it is. If the failure is pre-existing or infrastructural, say who needs to know, since the PR author usually cannot fix it.

Anti-patterns

  • Pasting the whole log. If you could not find the relevant twenty lines, the diagnosis is not finished.
  • Reporting the last error in the file.
  • "CI is flaky" without naming the test.
  • Re-running more than twice without reading the log in between.
よくある質問

最後のエラーを見ないのはなぜですか?

後のジョブは、前のジョブが失敗したせいで失敗することが多いため、最初のエラーが本当の原因を示すからです。

不安定なテストとは何ですか?

タイミングや順序によって起きる失敗で、別の実行では通ることがあります。このスキルは、単純な再実行で済ませないとしています。

失敗を直しますか?

このスキルは診断に焦点を当てており、ジョブの名前、最初のエラー、それを壊したコミットを示すことを目指します。

詳細

作者による元の説明

Diagnose a failing GitHub Actions run — find the first real error in the logs, tell a flake apart from a genuine failure, and identify the commit that broke it. Use when checks are red on a PR, a workflow failed, the build is broken, CI is flaky, or the user asks why a run failed or whether a failure is real.

repo: ParadevAI/Paradev

人気

GitHubのスター
16k
ランキング
#10828
ライセンス
—
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル