by openai
Debug and fix failing GitHub PR checks by inspecting GitHub Actions logs, summarizing failure context, drafting fix plans, and implementing fixes after approval.
npx @qaskills/cli add gh-fix-ciAuto-detects your AI agent and installs the skill. Works with Claude Code, Cursor, Copilot, and more.
Use gh CLI to locate failing PR checks, fetch GitHub Actions logs for actionable failures, summarize the failure, propose a fix plan, and implement after explicit approval.
Authenticate with the GitHub CLI:
gh auth login # Ensure repo + workflow scopes
gh auth status # Verify authentication
gh auth status
If unauthenticated, ask the user to run gh auth login with repo + workflow scopes.
# Current branch PR
gh pr view --json number,url
# Or use a specific PR number
gh pr checks <pr-number>
# List all PR checks with status
gh pr checks <pr> --json name,state,bucket,link,startedAt,completedAt,workflow
# For each failing check, get the run details
gh run view <run_id> --json name,workflowName,conclusion,status,url
# Fetch the logs
gh run view <run_id> --log
detailsUrl is not a GitHub Actions run, label it as externalFor each failing check, provide:
Draft a concise plan including:
# After fixes, verify checks pass
gh pr checks <pr>
- name: Install QA Skills
run: npx @qaskills/cli add gh-fix-ci10 of 29 agents supported