New advertisers: 50% off your first month with code FIRSTMONTHSee slots
warpdotdev avatar

Diagnose Ci Failures

Structured CI failure triage for a PR using the GitHub CLI, covering status, logs, and fix planning.

skills.sh installs
28.7K
GitHub stars
721
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the full triage flow: locate the PR for the current branch, check CI status, and pull logs for failed checks
  • Extracts failure logs with gh run view --log-failed and groups errors into formatting, linting, compilation, test, and platform-specific categories
  • Produces a plan document with problem statement, proposed changes, and validation steps, never code changes, for review before execution
  • Designed for developers who need to triage PR build failures and defers detailed error fixes to the fix-errors skill

Install

$ npx -y skills add warpdotdev/common-skills --skill diagnose-ci-failures -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

diagnose-ci-failures

Programmatically diagnose CI failures for a PR and generate a plan to fix them.

Overview

This skill provides a deterministic workflow to check CI status for a PR, extract failure logs, analyze errors, and create a plan (not code changes) to resolve issues. The output is always a plan document that can be reviewed before execution.

Workflow

1. Verify PR exists for current branch

Get the current branch and check if a PR exists:

# Get current branch
git branch --show-current

# Check for PR
GH_PAGER=cat gh pr view <branch-name> --json number,title,url,state

If no PR exists, inform the user and offer to create one using the create-pr skill.

2. Check CI status

Fetch the status of all CI checks:

GH_PAGER=cat gh pr view <branch-name> --json statusCheckRollup

Parse the output to identify:

  • Completed checks vs. in-progress checks
  • Successful checks
  • Failed checks with their names and details URLs

If CI is still running, inform the user which checks have already failed or passed, highlight the checks that are still running, and suggest waiting for completion before diagnosis.

3. Extract failure logs

Details

Repository
github.com/warpdotdev/common-skills
Categories
DevOps & Cloud, Debugging, Git & Releases
First seen
May 16, 2026

More from warpdotdev/common-skills

All 23

Similar to Diagnose Ci Failures

More DevOps & Cloud