gha
できること
このスキルは、リンクから失敗したGitHub Actionsの実行を調べます。失敗の本当の原因を見つけたうえで、過去の実行を確認し、問題が繰り返し起きているかどうかを確かめます。失敗するビルドを何度も見ている開発者向けです。
使う場面
- ✓GitHub Actionsの実行が失敗し、その正確な原因を知りたいとき。
- ✓ワークフローのジョブが時々失敗し、どのくらいの頻度で起きるかを知りたいとき。
- ✓ジョブが失敗し始めた、最初のコミットを見つけたいとき。
スキルのリンク
https://github.com/ykdojo/claude-code-tips/blob/main/skills/gha/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“この失敗したGitHub Actionsの実行を見て、何が原因か、そして同じことが繰り返し起きているかを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、GitHubのコマンドラインツールを使って実行のログを読み、失敗の原因を特定します。その後、同じジョブの最近の実行を確認し、成功率と最後に成功した時期を調べます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Investigate this GitHub Actions URL: $ARGUMENTS
Use the gh CLI to analyze this workflow run. Your investigation should:
Get basic info & identify actual failure:
- What workflow/job failed, when, and on which commit?
- CRITICAL: Read the full logs carefully to find what SPECIFICALLY caused the exit code 1
- Distinguish between warnings/non-fatal errors vs actual failures
- Look for patterns like "failing:", "fatal:", or script logic that determines when to exit 1
- If you see both "non-fatal" and "fatal" errors, focus on what actually caused the failure
Check flakiness: Check the past 10-20 runs of THE EXACT SAME failing job:
- IMPORTANT: If a workflow has multiple jobs, you must check history for the SPECIFIC JOB that failed, not just the workflow
- Use
gh run list --workflow=<workflow-name>to get run IDs, thengh run view <run-id> --json jobsto check the specific job's status - Is this a one-time failure or recurring pattern for THIS SPECIFIC JOB?
- What's the success rate for THIS JOB recently?
- When did THIS JOB last pass?
Identify breaking commit (if there's a pattern of failures for the specific job):
- Find the first run where THIS SPECIFIC JOB failed and the last run where it passed
- Identify the commit that introduced the failure
- Verify by checking: does THIS JOB fail in ALL runs after that commit? Does it pass in ALL runs before?
- If verified, report the breaking commit with high confidence
Root cause: Based on logs, history, and any breaking commit, what's the likely cause?
- Focus on what ACTUALLY caused the failure (not just any errors you see)
- Verify your hypothesis against the logs and failure logic
Check for existing fix PRs: Search for open PRs that might already address this issue:
- Use
gh pr list --state open --search "<keywords>"with relevant error messages or file names - Check if any open PR modifies the failing file/workflow
- If a fix PR exists, note it in your report and skip the recommendation section
- Use
Write a final report with:
- Summary of failure (what specifically triggered the exit code 1)
- Flakiness assessment (one-time vs recurring, success rate)
- Breaking commit (if identified and verified)
- Root cause analysis (based on the ACTUAL failure trigger)
- Existing fix PR (if found - include PR number and link)
- Recommendation (skip if fix PR already exists)
よくある質問
GitHubへのアクセスが必要ですか?
はい。ghコマンドラインツールを使うため、そのリポジトリにアクセスできる状態でサインインしている必要があります。
ワークフローのすべてのジョブを確認しますか?
失敗した特定のジョブを確認します。ワークフロー全体だけを見るわけではないため、履歴は正しいジョブのものになります。
失敗を私の代わりに直しますか?
このスキルは、原因と、それを持ち込んだコミットを見つけることに重点を置きます。
詳細
人気
- GitHubのスター
- 10k
- ランキング
- #11898
- ライセンス
- —
- 更新日
- 2026/9/25
コメント
- …
このリポジトリの他のスキル
half-clone
10kエージェントが、長いチャットの後半を新しいセッションにコピーできるよう支援します。最近の作業を残しつつ、使用するトークンを減らせます。
handoff
10kエージェントが、新しいチャットがプロジェクトを、明確な目標、進捗、次のステップとともに引き継げるように、引き継ぎ文書を書けるよう支援します。
hn-summarize
10kエージェントが、公式のHacker Newsのデータを使い、人気の記事の上位、または指定した1つの記事とそのコメントを要約できるよう支援します。
private-github-search
10kエージェントが、ローカルのコピーと高速なテキスト検索を使って、非公開のものを含むすべてのGitHubリポジトリを検索できるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。