본문으로 건너뛰기
cccskills
무료GitHub에 공개

gh-fix-ci

Investigate failed automated checks on GitHub pull requests using gh, GitHub’s command-line tool. Retrieve GitHub Actions logs, summarize failures, and propose a repair plan before implementing code changes with user approval.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Inspect GitHub PR checks with gh, pull failing GitHub Actions logs, summarize failure context, then create a fix plan and implement after user approval. Use when a user asks to debug or fix failing PR CI/CD checks on GitHub Actions and wants a plan + code changes; for external checks (e.g., Buildkite), only report the details URL and mark them out of scope.

연동 도구GitHub
설치 방법 보기

이럴 때 유용합니다

  • Investigate failed GitHub Actions checks on a pull request
  • Review failure logs and relevant excerpts
  • Approve a repair plan before code changes

포함된 파일(3)

  • SKILL.md3.8 KB
  • LICENSE.txt11.1 KB
  • scripts/inspect_pr_checks.py14.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Gh Pr Checks Plan Fix

Overview

Use gh to locate failing PR checks, fetch GitHub Actions logs for actionable failures, summarize the failure snippet, then propose a fix plan and implement after explicit approval.

  • Depends on the plan skill for drafting and approving the fix plan.

Prereq: ensure gh is authenticated (for example, run gh auth login once), then run gh auth status with escalated permissions (include workflow/repo scopes) so gh commands succeed. If sandboxing blocks gh auth status, rerun it with sandbox_permissions=require_escalated.

Inputs

  • repo: path inside the repo (default .)
  • pr: PR number or URL (optional; defaults to current branch PR)
  • gh authentication for the repo host

Quick start

  • python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number-or-url>"
  • Add --json if you want machine-friendly output for summarization.

Workflow

  1. Verify gh authentication.
    • Run gh auth status in the repo with escalated scopes (workflow/repo) after running gh auth login.
    • If sandboxed auth status fails, rerun the command with sandbox_permissions=require_escalated to allow network/keyring access.
    • If unauthenticated, ask the user to log in before proceeding.
  2. Resolve the PR.
    • Prefer the current branch PR: gh pr view --json number,url.
    • If the user provides a PR number or URL, use that directly.
  3. Inspect failing checks (GitHub Actions only).
    • Preferred: run the bundled script (handles gh field drift and job-log fallbacks):
      • python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number-or-url>"
      • Add --json for machine-friendly output.
    • Manual fallback:
      • gh pr checks <pr> --json name,state,bucket,link,startedAt,completedAt,workflow
        • If a field is rejected, rerun with the available fields reported by gh.
      • For each failing check, extract the run id from detailsUrl and run:
        • gh run view <run_id> --json name,workflowName,conclusion,status,url,event,headBranch,headSha
        • gh run view <run_id> --log
      • If the run log says it is still in progress, fetch job logs directly:
        • gh api "/repos/<owner>/<repo>/actions/jobs/<job_id>/logs" > "<path>"
  4. Scope non-GitHub Actions checks.
    • If detailsUrl is not a GitHub Actions run, label it as external and only report the URL.
    • Do not attempt Buildkite or other providers; keep the workflow lean.
  5. Summarize failures for the user.
    • Provide the failing check name, run URL (if any), and a concise log snippet.
    • Call out missing logs explicitly.
  6. Create a plan.
    • Use the plan skill to draft a concise plan and request approval.
  7. Implement after approval.
    • Apply the approved plan, summarize diffs/tests, and ask about opening a PR.
  8. Recheck status.
    • After changes, suggest re-running the relevant tests and gh pr checks to confirm.

Bundled Resources

scripts/inspect_pr_checks.py

Fetch failing PR checks, pull GitHub Actions logs, and extract a failure snippet. Exits non-zero when failures remain so it can be used in automation.

Usage examples:

  • python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "123"
  • python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "https://github.com/org/repo/pull/123" --json
  • python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --max-lines 200 --context 40

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Automate 21risk operations through Rube MCP, a connection for agent tools. The skill discovers available actions, checks the service connection, and uses current input requirements to carry out requested tasks.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Find available 21risk actions
  • Run tasks after checking the service connection
  • Process multiple operations in bulk
composio-community/awesome-codex-skills1.7만2026년 7월 26일 업데이트

Automate supported 2chat tasks through Rube MCP and Composio. The skill finds available tools, checks the service connection, and uses current input requirements to carry out the requested operations.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Find tools for a 2chat task
  • Check the 2chat connection before running tasks
  • Run multiple supported operations together
composio-community/awesome-codex-skills1.7만2026년 7월 26일 업데이트

Automate Ably operations through Rube MCP and Composio. The skill discovers tools for your task, checks current input requirements, verifies an active connection, and guides execution of single operations or batches.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Discover available tools for an Ably task
  • Check the Ably connection before execution
  • Run multiple Ably operations together
composio-community/awesome-codex-skills1.7만2026년 7월 26일 업데이트

Automate Abstract tasks using Rube MCP, a connection for agent tools. The skill searches for available operations, confirms an active service connection, and runs actions according to their current input requirements.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Discovering supported Abstract operations
  • Executing Abstract tasks through an agent
  • Fetching all pages of a tool response
composio-community/awesome-codex-skills1.7만2026년 7월 26일 업데이트

Automate Abuselpdb operations through Rube MCP, a connection for agent tools. Discover available actions and their required inputs, verify the service connection, and execute tasks using the current tool definitions.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Finding available Abuselpdb actions
  • Checking the connection before running tasks
  • Automating repeated Abuselpdb operations
composio-community/awesome-codex-skills1.7만2026년 7월 26일 업데이트

Automate Abyssale operations through Rube MCP, a connection for agent tools. The skill discovers available actions and their current input requirements, checks the service connection, and executes the tools returned by the search.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Discovering available Abyssale operations
  • Checking the Abyssale connection before execution
  • Running Abyssale operations through an agent
composio-community/awesome-codex-skills1.7만2026년 7월 26일 업데이트

composio-community의 스킬 모두 보기

이 스킬의 문제 신고