Community研究&データ分析github.com

ComposioHQ/gh-fix-ci

ghを使ってGitHub PRのチェックを調査し、失敗しているGitHub Actionsのログを取得して失敗のコンテキストを要約し、ユーザーの承認後に修正計画を作成して実装します。ユーザーがGitHub Actions上のPR CI/CDチェックのデバッグや修正、計画とコード変更を依頼した場合に使用します。外部チェック(例:Buildkite)の場合は詳細URLを報告するのみとし、対象外としてマークします。

gh-fix-ci とは?

## aiSummary このスキルは、GitHub Actionsで失敗しているPRチェックを自動的に特定・分析し、修正計画を提案・実装するためのツールです。開発者は「このPRのCIが落ちている理由を調べて修正して」といったリクエストをエージェントに投げるだけで、失敗ログの取得、根本原因の要約、具体的なコード変更案の作成、承認後の自動適用までを一貫して実行できます。主にClaude CodeやCursorなどのAIエージェント環境で動作し、`gh` CLIと連携します。内部スクリプト`inspect_pr_checks.py`を利用することで、`gh`コマンドのバージョン違いによるフィールド名のずれにも対応し、確実にログを取得できます。GitHub Actions以外のCIプロバイダ(Buildkiteなど)は対象外とし、URLを報告するのみに留めることで、ワークフローを軽量に保ちます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/gh-fix-ci

Installed? Explore more 研究&データ分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Gh Pr Checks Plan Fix(gh PRチェック計画修正)

概要

github CLI(gh)を使って失敗しているPRチェックを特定し、GitHub Actionsのログを取得して失敗箇所のスニペットを要約し、修正計画を提案し、明示的な承認後に実装します。

  • 修正計画の草案作成と承認には plan スキルに依存します。

前提条件: gh が認証済みであることを確認します(例:一度 gh auth login を実行)。その後、エスカレーションされた権限(workflow/repoスコープを含む)で gh auth status を実行し、ghコマンドが成功するようにします。サンドボックスが gh auth status をブロックする場合は、sandbox_permissions=require_escalated を付けて再実行してください。

入力

  • repo: リポジトリ内のパス(デフォルトは .)
  • pr: PR番号またはURL(オプション。デフォルトは現在のブランチのPR)
  • リポジトリホストに対する gh 認証

クイックスタート

  • python "<スキルへのパス>/scripts/inspect_pr_checks.py" --repo "." --pr "<番号またはURL>"
  • 機械処理に適した出力を得るには --json を追加します。

ワークフロー

  1. gh認証を確認する
    • リポジトリ内で gh auth status をエスカレーションされたスコープ(workflow/repo)で実行します(事前に gh auth login を実行しておくこと)。
    • サンドボックス内で認証ステータスが失敗する場合は、sandbox_permissions=require_escalated を付けてコマンドを再実行し、ネットワーク/キーチェーンへのアクセスを許可します。
    • 未認証の場合は、ユーザーにログインを促してから続行します。
  2. PRを特定する
    • 現在のブランチのPRを優先します:gh pr view --json number,url
    • ユーザーがPR番号またはURLを指定した場合は、それを直接使用します。
  3. 失敗しているチェックを調査する(GitHub Actionsのみ)
    • 推奨:バンドルされたスクリプトを使用します(ghのフィールド名のずれやジョブログのフォールバックを自動処理):
      • python "<スキルへのパス>/scripts/inspect_pr_checks.py" --repo "." --pr "<番号またはURL>"
      • 機械処理に適した出力を得るには --json を追加します。
    • 手動フォールバック:
      • gh pr checks <pr> --json name,state,bucket,link,startedAt,completedAt,workflow
        • フィールドが拒否された場合は、gh が報告する利用可能なフィールドで再実行します。
      • 失敗している各チェックについて、detailsUrl からrun IDを抽出し、以下を実行:
        • gh run view <run_id> --json name,workflowName,conclusion,status,url,event,headBranch,headSha
        • gh run view <run_id> --log
      • 実行ログが「処理中」と表示する場合は、ジョブログを直接取得します:
        • gh api "/repos/<owner>/<repo>/actions/jobs/<job_id>/logs" > "<パス>"
  4. 非GitHub Actionsチェックのスコープを定義する
    • detailsUrl がGitHub Actionsの実行でない場合は、外部チェックとしてラベル付けし、URLのみを報告します。
    • Buildkiteやその他のプロバイダは扱わず、ワークフローを軽量に保ちます。
  5. 失敗をユーザーに要約する
    • 失敗したチェック名、実行URL(ある場合)、簡潔なログスニペットを提供します。
    • ログがない場合は明示的にその旨を伝えます。
  6. 計画を作成する
    • plan スキルを使用して簡潔な計画を草案し、承認を求めます。
  7. 承認後に実装する
    • 承認された計画を適用し、差分/テストを要約し、PRを開くかどうかを尋ねます。
  8. ステータスを再確認する
    • 変更後、関連するテストと gh pr checks を再実行して確認することを提案します。

バンドルリソース

scripts/inspect_pr_checks.py

失敗しているPRチェックを取得し、GitHub Actionsのログをプルし、失敗スニペットを抽出します。失敗が残っている場合は非ゼロで終了するため、自動化で使用できます。

使用例:

  • python "<スキルへのパス>/scripts/inspect_pr_checks.py" --repo "." --pr "123"
  • python "<スキルへのパス>/scripts/inspect_pr_checks.py" --repo "." --pr "https://github.com/org/repo/pull/123" --json
  • python "<スキルへのパス>/scripts/inspect_pr_checks.py" --repo "." --max-lines 200 --context 40

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

関連スキル