gh-fix-ci — community gh-fix-ci, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for GitHub-centric AI Agents needing automated PR inspection and CI fix planning capabilities. Distributed LLM router with load balancing and automatic model distribution

akiojin akiojin
[0]
[0]
Updated: 2/28/2026

Agent Capability Analysis

The gh-fix-ci skill by akiojin is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Ideal for GitHub-centric AI Agents needing automated PR inspection and CI fix planning capabilities.

Core Value

Empowers agents to inspect PRs for failing CI checks, merge conflicts, and unresolved review threads, leveraging GitHub Actions and proposing fix plans using the `plan` skill, while optionally resolving threads and notifying reviewers via GitHub APIs and protocols.

Capabilities Granted for gh-fix-ci

Automating PR checks for failing CI builds
Debugging merge conflicts in GitHub repositories
Streamlining reviewer comment integration and change request management

! Prerequisites & Limits

  • Depends on the `plan` skill for fix plan drafting and approval
  • Requires GitHub API access and authentication
  • Limited to GitHub repositories with GitHub Actions CI/CD
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

gh-fix-ci

Install gh-fix-ci, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Gh PR Checks Plan Fix

Overview

Use gh to inspect PRs for:

  • Failing CI checks (GitHub Actions)
  • Merge conflicts
  • Update Branch requirements (base branch advanced)
  • Reviewer comments (review summaries, inline comments, issue comments)
  • Change Requests from reviewers
  • Unresolved review threads

Then propose a fix plan, implement after explicit approval, and optionally resolve threads and notify reviewers.

  • Depends on the plan skill for drafting and approving the fix plan.

Prereq: ensure gh is authenticated (for example, run gh auth login once), then run gh auth status with escalated permissions (include workflow/repo scopes) so gh commands succeed.

Inputs

  • repo: path inside the repo (default .)
  • pr: PR number or URL (optional; defaults to current branch PR)
  • mode: inspection mode (checks, conflicts, reviews, all)
  • max-review-comments: max reviewer comments to list per category
  • required-only: limit CI checks to required checks only (uses gh pr checks --required)
  • gh authentication for the repo host

Quick start

bash
1# Inspect all (CI, conflicts, reviews) - default mode 2python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" 3 4# CI checks only 5python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --mode checks 6 7# Conflicts only 8python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --mode conflicts 9 10# Reviews only (Change Requests + Unresolved Threads) 11python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --mode reviews 12 13# JSON output 14python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --json 15 16# Required checks only (if gh supports --required) 17python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --mode checks --required-only 18 19# Limit review comment output 20python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --max-review-comments 30 21 22# Resolve all unresolved threads after fixing 23python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --resolve-threads 24 25# Add a comment to notify reviewers 26python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --add-comment "Fixed all issues. Please re-review."

Workflow

  1. Verify gh authentication.

    • Run gh auth status in the repo with escalated scopes (workflow/repo).
    • 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 based on mode:

    Conflicts Mode (--mode conflicts):

    • Check mergeable and mergeStateStatus fields.
    • If CONFLICTING or DIRTY, report conflict details.
    • If BEHIND, report that the base branch advanced and an Update Branch is required.
    • Suggest resolution steps: fetch base branch, merge/rebase, resolve conflicts.

    Reviews Mode (--mode reviews):

    • Fetch reviews with CHANGES_REQUESTED state.
    • Fetch unresolved review threads using GraphQL.
    • Fetch reviewer comments (review summaries, inline review comments, issue comments).
    • Display reviewer, comment body, file path, and line number.
    • Decide if reviewer feedback requires action (any change request, unresolved thread, or reviewer comment).

    Checks Mode (--mode checks):

    • Run bundled script to inspect failing CI checks.
    • Add --required-only to limit output to required checks when supported.
    • Fetch GitHub Actions logs and extract failure snippets.
    • For external checks (Buildkite, etc.), report URL only.

    All Mode (--mode all):

    • Run all inspections above.
  4. Summarize issues for the user.

    • Provide clear summary of all detected issues.
    • Call out conflicts, change requests, unresolved threads, and CI failures.
  5. Create a plan.

    • Use the plan skill to draft a fix plan and request approval.
  6. Implement after approval.

    • Apply the approved plan, summarize diffs/tests.
  7. Resolve review threads (optional).

    • With --resolve-threads, resolve all unresolved threads via GraphQL mutation.
    • Requires Repository Permissions > Contents: Read and Write.
  8. Notify reviewers (optional).

    • With --add-comment "message", post a comment to the PR.
    • Useful for notifying reviewers that issues have been addressed.
  9. Recheck status.

    • After changes, suggest re-running gh pr checks to confirm.

Bundled Resources

scripts/inspect_pr_checks.py

Comprehensive PR inspection tool. Exits non-zero when issues remain.

Arguments:

ArgumentDefaultDescription
--repo.Path inside the target Git repository
--pr(current)PR number or URL
--modeallInspection mode: checks, conflicts, reviews, all
--max-lines160Max lines for log snippets
--context30Context lines around failure markers
--max-review-comments50Max reviewer comments to list per category
--required-onlyfalseLimit CI checks to required checks only
--jsonfalseEmit JSON output
--resolve-threadsfalseResolve unresolved review threads
--add-comment(none)Add a comment to the PR

Exit codes:

  • 0: No issues found
  • 1: Issues detected or error occurred

New Features

Conflict Detection

Detects merge conflicts via mergeable and mergeStateStatus fields.

  • CONFLICTING / DIRTY: Conflict detected
  • BEHIND: Base branch advanced; Update Branch required
  • MERGEABLE / CLEAN: No conflicts

Change Request Handling

Fetches reviews with state == "CHANGES_REQUESTED" and displays:

  • Reviewer name
  • Review body
  • Submission timestamp

Reviewer Comments

Fetches reviewer feedback beyond change requests:

  • Review summaries with comment bodies
  • Inline review comments (file/line)
  • PR issue comments
  • Marks review action required if any reviewer feedback exists

Unresolved Review Threads

Uses GraphQL to fetch threads where isResolved == false:

  • File path and line number
  • Thread ID (for resolution)
  • Comment author and body
  • Outdated status

Resolve Conversation

Use --resolve-threads to mark threads as resolved via GraphQL mutation resolveReviewThread.

Required permissions:

  • Fine-grained PAT: Pull requests + Contents: Read and Write
  • Classic PAT: repo scope

Reviewer Notification

Use --add-comment "message" to post a summary comment to the PR after fixes.

Output Examples

Text Output

text
1PR #123: Comprehensive Check Results 2============================================================ 3 4MERGE STATUS 5------------------------------------------------------------ 6Mergeable: CONFLICTING 7Merge State: DIRTY 8Base: main <- Head: feature/my-branch 9Action Required: Resolve conflicts before merging 10 11CHANGE REQUESTS 12------------------------------------------------------------ 13From @reviewer1 (2025-01-15): 14 "Please fix these issues..." 15 16UNRESOLVED REVIEW THREADS 17------------------------------------------------------------ 18[1] src/main.ts:42 19 Thread ID: PRRT_xxx123 20 @reviewer1: This needs refactoring... 21 22CI FAILURES 23------------------------------------------------------------ 24Check: build 25Details: https://github.com/... 26Failure snippet: 27 Error: TypeScript compilation failed 28 ... 29============================================================

JSON Output

json
1{ 2 "pr": "123", 3 "conflicts": { 4 "hasConflicts": true, 5 "mergeable": "CONFLICTING", 6 "mergeStateStatus": "DIRTY", 7 "baseRefName": "main", 8 "headRefName": "feature/my-branch" 9 }, 10 "changeRequests": [ 11 { 12 "id": 123456, 13 "reviewer": "reviewer1", 14 "body": "Please fix these issues...", 15 "submittedAt": "2025-01-15T12:00:00Z" 16 } 17 ], 18 "unresolvedThreads": [ 19 { 20 "id": "PRRT_xxx123", 21 "path": "src/main.ts", 22 "line": 42, 23 "comments": [ 24 {"author": "reviewer1", "body": "This needs refactoring"} 25 ] 26 } 27 ], 28 "ciFailures": [ 29 { 30 "name": "build", 31 "status": "ok", 32 "logSnippet": "..." 33 } 34 ] 35}

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is gh-fix-ci?

Ideal for GitHub-centric AI Agents needing automated PR inspection and CI fix planning capabilities. Distributed LLM router with load balancing and automatic model distribution

How do I install gh-fix-ci?

Run the command: npx killer-skills add akiojin/llmlb. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for gh-fix-ci?

Key use cases include: Automating PR checks for failing CI builds, Debugging merge conflicts in GitHub repositories, Streamlining reviewer comment integration and change request management.

Which IDEs are compatible with gh-fix-ci?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for gh-fix-ci?

Depends on the `plan` skill for fix plan drafting and approval. Requires GitHub API access and authentication. Limited to GitHub repositories with GitHub Actions CI/CD.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add akiojin/llmlb. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use gh-fix-ci immediately in the current project.

Related Skills

Looking for an alternative to gh-fix-ci or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI