Token导航 LogoToken导航

Agent Skill · 开发

gh-fix-ci(gh 修复 ci)

gh-fix-ci 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

gh-fix-ci 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,暂无第三方扫描结果,按安装量在开发类的 21,746 个 Skill 里排第 19,805。

总安装 256周安装 11GitHub Stars 6下载 90核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gh-fix-ci(gh 修复 ci)
来源仓库:https://github.com/akiojin/skills
仓库路径:skills/gh-fix-ci
安装命令:
npx skills add https://github.com/akiojin/skills --skill gh-fix-ci
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/akiojin/skills --skill gh-fix-ci

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库和原始 README 核验具体用法,建议确认权限范围和命令执行边界。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

gh-fix-ci 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/gh-fix-ci

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/akiojin/skills --skill gh-fix-ci;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

gh-fix-ci 怎么安装?

在终端执行 npx skills add https://github.com/akiojin/skills --skill gh-fix-ci。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

gh-fix-ci 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

gh-fix-ci 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

gh-fix-ci 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

gh-fix-ci 用的人多吗?

公开数据是累计安装 256 次,近一周安装 11 次,下载 90 次,GitHub 6 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

gh-fix-ci 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
gh-fix-ci

gh 修复 ci · 本页

2566需要联网MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

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, reply to every reviewer comment (with action taken or reason for not addressing), resolve all 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.

Comment Response Policy

No reviewer comment may be left unanswered.
  • Every unresolved review thread MUST receive a reply before being resolved.
  • If the feedback was addressed: reply with what was done (e.g., "Fixed: refactored as suggested.").
  • If the feedback was intentionally not addressed: reply with the reason (e.g., "Not addressed: this is intentional because the API contract requires this format.").
  • The --reply-and-resolve argument enforces this by requiring a reply entry for every unresolved thread and rejecting empty bodies.

Issue/PR Comment Formatting (must follow)

  • Final comment text must not contain escaped newline literals such as \n.
  • Use real line breaks in comment bodies. Do not rely on escaped sequences for formatting.
  • Before posting (--add-comment or manual gh issue/pr comment), verify the final body does not accidentally include escaped control sequences (\n, \t).
  • If a raw escape sequence must be shown for explanation, include it only inside a fenced code block and clarify it is intentional.

Issue Progress Comment Template (required for issue-based work)

When work is tracked in GitHub Issues, progress updates must use this template:

Progress
- ...

Done
- ...

Next
- ...
  • Post updates at least when starting work, after meaningful progress, and when blocked/unblocked.
  • In Next, explicitly state blockers or the immediate next action.

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)
  • required-only: limit CI checks to required checks only (uses gh pr checks --required)
  • gh authentication for the repo host

Quick start

# Inspect all (CI, conflicts, reviews) - default mode
python3 "${CLAUDE_PLUGIN_ROOT}/github/skills/gh-fix-ci/scripts/inspect_pr_checks.py" --repo "." --pr "<number>"

# CI checks only
python3 "${CLAUDE_PLUGIN_ROOT}/github/skills/gh-fix-ci/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --mode checks

# Conflicts only
python3 "${CLAUDE_PLUGIN_ROOT}/github/skills/gh-fix-ci/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --mode conflicts

# Reviews only (Change Requests + Unresolved Threads)
python3 "${CLAUDE_PLUGIN_ROOT}/github/skills/gh-fix-ci/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --mode reviews

# JSON output
python3 "${CLAUDE_PLUGIN_ROOT}/github/skills/gh-fix-ci/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --json

# Required checks only (if gh supports --required)
python3 "${CLAUDE_PLUGIN_ROOT}/github/skills/gh-fix-ci/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --mode checks --required-only

# Reply to all unresolved threads and resolve them
python3 "${CLAUDE_PLUGIN_ROOT}/github/skills/gh-fix-ci/scripts/inspect_pr_checks.py" --repo "." --pr "<number>" --reply-and-resolve '[
  {"threadId":"PRRT_xxx123","body":"Fixed: refactored the method as suggested."},
  {"threadId":"PRRT_xxx456","body":"Not addressed: this is intentional because the API requires this format."}
]'

# Add a comment to notify reviewers
python3 "${CLAUDE_PLUGIN_ROOT}/github/skills/gh-fix-ci/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.

  1. 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.

  1. Inspect based on mode: Conflicts Mode (--mode conflicts): Reviews Mode (--mode reviews): Checks Mode (--mode checks): All Mode (--mode all):

- 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. - Fetch reviews with CHANGES_REQUESTED state. - Fetch unresolved review threads using GraphQL. - Fetch ALL reviewer comments (review summaries, inline review comments, issue comments) without truncation. - Display reviewer, comment body (full text), file path, and line number. - Decide if reviewer feedback requires action (any change request, unresolved thread, or reviewer comment). - 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. - Run all inspections above.

  1. Summarize issues for the user.

- Provide clear summary of all detected issues. - Call out conflicts, change requests, unresolved threads, and CI failures.

  1. Create a plan.

- Use the plan skill to draft a fix plan and request approval.

  1. Implement after approval.

- Apply the approved plan, summarize diffs/tests. - After implementing fixes, proceed to step 7 to reply and resolve ALL threads.

  1. Reply to ALL reviewer comments and resolve threads (mandatory).

- CRITICAL: Every unresolved review thread MUST receive a reply before resolution. No thread may be silently resolved or left unaddressed. - For each unresolved thread, prepare a reply: - If addressed: describe what was done (e.g., "Fixed: refactored the method as suggested in commit abc1234.") - If intentionally not addressed: explain the reason (e.g., "Not addressed: this is by design because...") - Use --reply-and-resolve with a JSON array covering ALL unresolved threads. - The script validates completeness and rejects the operation if any thread is missing a reply. - Requires Repository Permissions > Contents: Read and Write.

  1. Notify reviewers (optional).

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

  1. 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
--required-onlyfalseLimit CI checks to required checks only
--jsonfalseEmit JSON output
--reply-and-resolve(none)JSON array of {threadId, body} to reply and resolve ALL threads
--add-comment(none)Add a comment to the PR

Exit codes:

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

--reply-and-resolve JSON format:

[
  {"threadId": "PRRT_xxx123", "body": "Fixed: refactored the method as suggested."},
  {"threadId": "PRRT_xxx456", "body": "Not addressed: this is intentional because ..."}
]

Validation rules:

  • Every currently unresolved thread MUST have a corresponding entry.
  • Every entry MUST have a non-empty body.
  • If any unresolved thread is missing, the script prints the missing thread details and exits with error.

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 ALL reviewer feedback without truncation:

  • Review summaries with full comment bodies
  • Inline review comments (file/line) with full comment bodies
  • PR issue comments with full comment bodies
  • 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 reply and resolution)
  • Comment author and full body
  • Outdated status

Reply and Resolve

Use --reply-and-resolve to reply to every unresolved thread and resolve them.

  • Uses GraphQL addPullRequestReviewThreadReply to post a reply.
  • Uses GraphQL resolveReviewThread to mark the thread as resolved.
  • Validates that ALL unresolved threads are covered (no thread left behind).
  • Rejects empty reply bodies.

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

PR #123: Comprehensive Check Results
============================================================

MERGE STATUS
------------------------------------------------------------
Mergeable: CONFLICTING
Merge State: DIRTY
Base: main <- Head: feature/my-branch
Action Required: Resolve conflicts before merging

CHANGE REQUESTS
------------------------------------------------------------
From @reviewer1 (2025-01-15):
  "Please fix these issues..."

UNRESOLVED REVIEW THREADS
------------------------------------------------------------
[1] src/main.ts:42
    Thread ID: PRRT_xxx123
    @reviewer1: This needs refactoring because the current
    implementation violates the single responsibility principle.

[2] src/utils.ts:15
    Thread ID: PRRT_xxx456
    @reviewer2: Consider using a more descriptive variable name here.

CI FAILURES
------------------------------------------------------------
Check: build
Details: https://github.com/...
Failure snippet:
  Error: TypeScript compilation failed
  ...
============================================================

Reply and Resolve Output

OK: PRRT_xxx123 (src/main.ts:42)
OK: PRRT_xxx456 (src/utils.ts:15)

Result: 2 resolved, 0 failed, 2 total

JSON Output

{
  "pr": "123",
  "conflicts": {
    "hasConflicts": true,
    "mergeable": "CONFLICTING",
    "mergeStateStatus": "DIRTY",
    "baseRefName": "main",
    "headRefName": "feature/my-branch"
  },
  "changeRequests": [
    {
      "id": 123456,
      "reviewer": "reviewer1",
      "body": "Please fix these issues...",
      "submittedAt": "2025-01-15T12:00:00Z"
    }
  ],
  "unresolvedThreads": [
    {
      "id": "PRRT_xxx123",
      "path": "src/main.ts",
      "line": 42,
      "comments": [
        {"author": "reviewer1", "body": "This needs refactoring because..."}
      ]
    }
  ],
  "ciFailures": [
    {
      "name": "build",
      "status": "ok",
      "logSnippet": "..."
    }
  ]
}

平台分布

Codex

90.91%
按下载量换算82

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills