Gh fix ci

From davila7/claude-code-templates · View interactive version

Gh fix ci is an AI agent skill from the GitHub repository davila7/claude-code-templates. 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., Buildkit

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 propose a fix plan and implement after explicit approval.

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

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 after approval.
  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:

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.