
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
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-failedand 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-errorsskill
Install
$ npx -y skills add warpdotdev/common-skills --skill diagnose-ci-failures -yInstalls 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- Pr Walkthrough28.4K
- Brandalf28.4K
- Council28.2K
- Check Impl Against Spec27.3K
- Reproduce Bug Report27.1K
- Respond To Pr Comments In Blocklist25.4K
- Validate Changes Match Specs25.4K
- Cross Critique22.3K
- Research22.1K
- Saga20.9K
- Write Feature Docs19.5K
- Scan New Specs19.4K
- Readout17.8K
- Review Pr29.2K
- Spec Driven Implementation29K
- Write Product Spec29K
- Write Tech Spec28.9K
- Resolve Merge Conflicts28.9K
- Fix Errors28.8K
- Implement Specs28.8K
- Create Pr28.8K
- Update Skill28.7K
Similar to Diagnose Ci Failures
More DevOps & Cloud
gh-fix-ciSkilldavila7/claude-code-templates325 installsInspect failing GitHub PR checks, pull Actions logs, then plan and implement fixes after approval.
ci-fixSkillwarpdotdev/oz-skills207 installsDiagnose and fix failing GitHub Actions runs by pushing minimal fixes to a dedicated branch.
openai-gh-fix-ciPlugintrailofbits/skills-curated537 starsUse when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions; use `gh` to inspect checks and logs, summarize failure context, draft
ci-triageMCP serverwjddidi-1Triage red GitHub Actions runs by root cause, separating real regressions from flaky failures.
debugging-and-error-recoverySkilladdyosmani/agent-skills77K installsGuided root-cause debugging that triages failures, localizes the layer, and fixes the cause rather than the symptom.
fix-ciSkillcursor/plugins2.6K installsFocused CI repair loop that inspects failing PR checks and applies one minimal fix per iteration.