When a GitHub PR's CI checks blow up, this skill automates the tedious dance of running gh commands to figure out what failed and why. It pulls GitHub Actions logs, extracts the relevant failure snippet, then uses the plan skill to draft a fix and waits for your approval before implementing. The bundled Python script handles the common annoyances like field drift in gh's JSON output and jobs that are still running. It explicitly scopes out external CI like Buildkite rather than pretending it can handle everything. Honest take: this is the kind of automation that saves you from scrolling through 3,000 line logs in the GitHub UI at 11pm when a test flakes.

skills.sh installs
325
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill gh-fix-ci --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
DevOps & CI/CD, Git & Pull Requests, Debugging, Productivity & Planning
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1jezweb avatarclaude-apijezweb/claude-skillsBuild with Claude Messages API using structured outputs for guaranteed JSON schema validation. Covers prompt caching (90% savings), streaming SSE, tool use, and325skills.sh installs
2bobmatnyc avatarspring-bootbobmatnyc/claude-mpm-skillsSpring Boot 3.x - Java framework for production-ready applications with dependency injection, REST APIs, data access, security, and actuator monitoring319skills.sh installs
3customerio avatarciocustomerio/cliCustomer.io CLI - use for Customer.io, Journeys, CDP Pipelines, builder onboarding, sandbox testing, app integration, SDK setup, transactional messaging, billin319skills.sh installs
4syncfusion avatarsyncfusion-angular-pivot-tablesyncfusion/angular-ui-components-skillsUse this skill when users ask how to build or customize Syncfusion PivotView pivot tables in Angular. Trigger for Angular pivot grid/OLAP, aggregation, data bin319skills.sh installs
5syncfusion avatarsyncfusion-angular-diagramsyncfusion/angular-ui-components-skillsBuild and configure Syncfusion EJ2 Angular Diagram for flowcharts, org charts, process diagrams, and data-visualization. Trigger when users ask to create nodes/318skills.sh installs
6hairyf avatarreact-native-expohairyf/skillsBuild and maintain React Native apps with Expo SDK, EAS Build, EAS Update, and Continuous Native Generation. Use when configuring Expo projects, adding native m316skills.sh installs