
Diagnose Ci Failures
- 16.1k installs
- 148 repo stars
- Updated July 24, 2026
- warpdotdev/common-skills
A structured plan document categorizing CI failures by error type with specific fixes needed for each category.
About
This skill diagnoses CI failures for pull requests by querying GitHub CLI to fetch PR status, extract error logs from failed checks, categorize errors by type (formatting, linting, compilation, tests, platform-specific), and generate a structured plan document for review. Developers use it when CI checks fail to quickly understand what broke and prioritize fixes without making changes directly. The workflow verifies a PR exists, polls check status, pulls logs from failed runs, groups errors by category, and outputs a plan referencing the fix-errors skill for resolution guidance.
- Deterministic workflow: verify PR, check status, extract logs, categorize errors, generate plan
- Parses GitHub Actions logs to identify error types: formatting, linting, compilation, tests, platform-specific
- Uses gh CLI to fetch statusCheckRollup and run logs with --log-failed flag
- Always outputs a plan document for user review before any code changes
- Cross-references fix-errors skill for detailed error resolution strategies per category
Diagnose Ci Failures by the numbers
- 16,106 all-time installs (skills.sh)
- +1,937 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #36 of 2,184 Testing & QA skills by installs in the Skillselion catalog
- Security screen: MEDIUM risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
diagnose-ci-failures capabilities & compatibility
- Capabilities
- verify pr exists for current branch · fetch ci check status rollup · extract failure logs from github actions runs · categorize errors by type · generate structured fix plan
- Works with
- github
- Use cases
- testing · debugging · ci cd
- Platforms
- macOS · Linux · Windows · WSL
- Runs
- Runs locally
- Pricing
- Free
What diagnose-ci-failures says it does
Programmatically diagnose CI failures for a PR and generate a plan to fix them.
gh pr view <branch-name> --json statusCheckRollup
npx skills add https://github.com/warpdotdev/common-skills --skill diagnose-ci-failuresAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 16.1k |
|---|---|
| repo stars | ★ 148 |
| Security audit | 2 / 3 scanners passed |
| Last updated | July 24, 2026 |
| Repository | warpdotdev/common-skills ↗ |
What it does
Extract and analyze CI check failures from GitHub Actions runs to create a fix plan for a PR.
Who is it for?
Triaging PR build failures, understanding multi-platform CI issues, planning error fixes before execution.
Skip if: Applying fixes directly, creating PRs, deploying code, automating CI fix execution without review.
When should I use this skill?
User asks to check CI status, pull CI issues, triage test failures, or investigate PR build failures.
What you get
Developer reviews a categorized plan of CI failures (formatting, linting, compilation, tests, platform-specific) with references to resolution strategies.
- plan document with error categorization
- failure summary by check
- proposed fixes grouped by error type
By the numbers
- Identifies 5 error categories: formatting, linting, compilation, tests, platform-specific
- Supports common CI check names including macOS, Linux, Windows, WASM variants
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 --no-pager pr view <branch-name> --json number,title,url,stateIf 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 pr view <branch-name> --json statusCheckRollupParse 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
For each failed check, pull the logs using the run ID from the status check:
gh run view <run-id> --log-failedFocus on extracting:
- Error messages and their locations (file paths, line numbers)
- Compilation errors (unused imports, type mismatches, etc.)
- Linting/clippy errors with specific lint names
- Test failure messages and stack traces
- Build failures and their root causes
4. Categorize errors
Group errors by type:
- Formatting issues:
cargo fmtfailures - Linting issues:
cargo clippywarnings/errors - Compilation errors: Type errors, missing imports, signature mismatches
- Test failures: Failing tests with their names and failure reasons
- Platform-specific issues: WASM, Linux, macOS, Windows-specific failures
5. Generate fix plan
Create a plan document (using create_plan tool) with:
- Problem Statement: Summary of failing checks
- Current State: What errors were found and where
- Proposed Changes: Specific fixes needed for each error category
- Validation Steps: Commands to verify fixes (fmt, clippy, tests, presubmit)
The plan should reference the fix-errors skill for detailed guidance on resolving specific error types.
Important Notes
- Always create a plan first: Never make code changes directly. Generate a plan for user review
- Check test status in CI: Even if tests fail locally, verify they passed in CI before flagging as issues
- Unrelated test failures: If tests passed in CI but fail locally, they may be environment-specific or flaky
- Multiple error types: Fix one category at a time (e.g., all clippy errors before tests)
- Cross-reference fix-errors skill: For detailed error resolution strategies, use the
fix-errorsskill
Common CI Check Names
Formatting + Clippy (MacOS)Formatting + Clippy (Linux)Run MacOS testsRun Linux testsRun Windows testsCheck CI results(summary check)WASM build
Example Commands
Get PR status with details:
gh --no-pager pr view --json number,title,state,statusCheckRollupGet logs from specific failed run:
gh run view 12345678 --log-failedCheck for specific error in logs:
gh run view 12345678 --log-failed 2>&1 | grep -A 5 "error:"Related skills
How it compares
Use diagnose-ci-failures for GitHub PR CI triage; use fix-errors when presubmit failures are local and pre-PR.
FAQ
Does this skill make code changes to fix CI failures?
No. This skill only generates a plan document for user review. The fix-errors skill provides detailed guidance for applying fixes.
What error categories does the skill identify?
Formatting issues, linting/clippy errors, compilation errors, test failures, and platform-specific issues (WASM, Linux, macOS, Windows).
What if CI checks are still running?
The skill reports which checks have passed/failed so far and recommends waiting for completion before full diagnosis.
Is Diagnose Ci Failures safe to install?
skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.