npx skills add ...
npx skills add warpdotdev/common-skills --skill diagnose-ci-failures
Diagnose CI failures for a PR using the GitHub CLI, extract error logs, and generate a plan to fix them. Use when the user asks to check CI status, pull CI issues, triage test failures, or investigate PR build failures.
npx skills add warpdotdev/common-skills --skill diagnose-ci-failures
Programmatically diagnose CI failures for a PR and generate a plan to fix them.
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.
Get the current branch and check if a PR exists:
If no PR exists, inform the user and offer to create one using the create-pr skill.
Fetch the status of all CI checks:
Parse the output to identify:
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.
For each failed check, pull the logs using the run ID from the status check:
Focus on extracting:
Group errors by type:
cargo fmt failurescargo clippy warnings/errorsCreate a plan document (using create_plan tool) with:
The plan should reference the fix-errors skill for detailed guidance on resolving specific error types.
GH_PAGER=cat on every gh invocation. The GitHub CLI does not support --no-pager as a global option; GH_PAGER and PAGER are its documented paging controlsfix-errors skillFormatting + Clippy (MacOS)Formatting + Clippy (Linux)Run MacOS testsRun Linux testsRun Windows testsCheck CI results (summary check)WASM buildGet PR status with details:
Get logs from specific failed run:
Check for specific error in logs: