Gh fix ci

From seaworld008/Commonly-used-high-value-skills · View interactive version

Gh fix ci is an AI agent skill from the GitHub repository seaworld008/Commonly-used-high-value-skills. Use when inspecting and fixing failing GitHub Actions PR checks using gh CLI logs and focused validation, or reporting external check failures.

How to use this skill

Skill file

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 explain the focused fix and implement within the existing request.

Prereq: authenticate with the standard GitHub CLI once (for example, run gh auth login), then confirm with gh auth status (repo + workflow scopes are typically required).

Inputs

Quick start

Workflow

  1. Verify gh authentication.
  1. Resolve the PR.
  1. Inspect failing checks (GitHub Actions only).
  1. Scope non-GitHub Actions checks.
  1. Summarize failures for the user.
  1. Create a plan.
  1. Implement the requested fix.
  1. Recheck status.

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:

Example Command Sequence

gh auth status
gh pr view --json number,url
python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "123" --json
gh run view <run_id> --log
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.