gh-fix-ci

Solid

Use when the user asks to debug or fix failing CI checks on a GitHub pull request.

AI & Automation 33 stars 0 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 86/100

Stars 20%
51
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Gh Pr Checks Plan Fix ## Overview Use gh to locate failing PR checks, fetch GitHub Actions logs for actionable failures, summarize the failure snippet, then propose a fix plan and implement after explicit approval. ## Inputs - `repo`: path inside the repo (default `.`) - `pr`: PR number or URL (optional; defaults to current branch PR) - `gh` authentication for the repo host ## Workflow 1. Verify gh authentication. - Run `gh auth status` in the repo with escalated scopes (workflow/repo) after running `gh auth login`. - If sandboxed auth status fails, rerun the command with `sandbox_permissions=require_escalated` to allow network/keyring access. - If unauthenticated, ask the user to log in before proceeding. 2. Resolve the PR. - Prefer the current branch PR: `gh pr view --json number,url`. - If the user provides a PR number or URL, use that directly. 3. Inspect failing checks (GitHub Actions only). - Preferred: run the bundled script (handles gh field drift and job-log fallbacks): - `python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number-or-url>"` - Add `--json` for machine-friendly output. - Manual fallback: - `gh pr checks <pr> --json name,state,bucket,link,startedAt,completedAt,workflow` - If a field is rejected, rerun with the available fields reported by `gh`. - For each failing check, extract the run id from `detailsUrl` and run: - `gh run view <run_id> --json name,workflowName,conclusi...

Details

Author
OutlineDriven
Repository
OutlineDriven/odin-claude-plugin
Created
8 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category