openai/skills

GitHub Actions CI Fix

查找PR失败的GitHub Actions检查,提取相关运行日志并解释故障,再提出修复计划,按明确批准的方案实施。对于Buildkite等外部检查,这份Skill只报告详情地址。

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

GitHub Actions CI Fix 是什么?

查找PR失败的GitHub Actions检查,提取相关运行日志并解释故障,再提出修复计划,按明确批准的方案实施。对于Buildkite等外部检查,这份Skill只报告详情地址。

中文说明由本站依据来源整理;英文原文保留在页面下方。

来源已说明的能力

  • 读取GitHub Actions失败检查与日志
  • 给出修复计划,按源技能规定在确认后实施
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 gh-fix-ci,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 GitHub Actions CI Fix

请在 Codex 的当前工作环境中安装并检查 GitHub Actions CI Fix 这个 Skill。

项目身份:openai/skills / gh-fix-ci
来源:https://github.com/openai/skills/blob/49f948faa9258a0c61caceaf225e179651397431/skills/.curated/gh-fix-ci/SKILL.md
已定位的源文件:skills/.curated/gh-fix-ci/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 提供仓库目录与可选PR号或URL;未指定时用当前分支PR。gh需登录并有repo/workflow相关读取权限,保留scripts/inspect_pr_checks.py。

会得到什么

  • 失败原因线索、日志证据、修复计划与实际验证状态。

实际使用顺序

  1. 确认gh auth status并解析目标PR,优先用附带inspect_pr_checks.py收集失败项和日志。
  2. 说明失败检查、运行地址和关键错误片段;运行未结束时可取具体job日志,日志拿不到就明确缺失。
  3. 先形成可审阅修复计划,按批准范围改代码并跑相关检查;PR上的最终CI状态需另外读取,不能由本地通过推断。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:用gh-fix-ci调查当前PR的lint检查失败。用附带脚本读取对应GitHub Actions日志,区分类型错误、格式错误与基础设施失败,给修改计划。先不改代码,不重跑无关工作流,不处理外部CI。
预期结果

预期有针对实际失败日志的计划;本地结果和远端CI结果分开报告,本例未运行。

使用前先看这些限制

使用条件与边界

  • 脚本在仍有失败时会非零退出,这本身不代表脚本坏了。
  • 未拿到日志时不能猜出确定原因;外部CI不在该流程的深入排查范围。
  • 需要已认证的gh CLI与目标仓库访问权限。
  • 外部CI提供商只报告详情链接,不把本Skill写成所有CI的通用修复器。
  • 当前公开来源为openai/skills;旧OpenAI Plugins路径不可继续作为安装依据。
针对这个 Skill 的疑问

常见问题

本地测试通过就能把PR标绿吗?

不能。远端检查可能使用不同环境、密钥或任务,必须读取真实PR检查状态才能报告CI通过。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
历史复核日期
2026-10-11,不是本次抓取或安装测试的日期。
展开 SKILL.md 原文、章节与历史收录资料

skills/.curated/gh-fix-ci/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions; use `gh` to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treat external providers (for example Buildkite) as out of scope and report only the details URL.

查看源文件章节 / Source sections
  • 原文:Gh Pr Checks Plan Fix
  • 原文:Overview
  • 原文:Inputs
  • 快速开始 / Quick start
  • 工作流程 / Workflow
  • 原文:Bundled Resources
  • 原文:scripts/inspect_pr_checks.py
原文: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. - If a plan-oriented skill (for example `create-plan`) is available, use it; otherwise draft a concise plan inline and request approval before implementing. Prereq: authenticate with the standard GitHub CLI once (for example, run `gh auth login`), then confirm with `gh auth status` (repo + workflow scopes are typically required).

原文:Inputs

- `repo`: path inside the repo (default `.`) - `pr`: PR number or URL (optional; defaults to current branch PR) - `gh` authentication for the repo host

快速开始 / Quick start

- `python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number-or-url>"` - Add `--json` if you want machine-friendly output for summarization.

工作流程 / Workflow

1. Verify gh authentication. - Run `gh auth status` in the repo. - If unauthenticated, ask the user to run `gh auth login` (ensuring repo + workflow scopes) 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,conclusion,status,url,event,headBranch,headSha` - `gh run view <run_id> --log` - If the run log says it is still in progress, fetch job logs directly: - `gh api "/repos/<owner>/<repo>/actions/jobs/<job_id>/logs" > "<path>"` 4. Scope non-GitHub Actions checks. - If `detailsUrl` is not a GitHub Actions run, label it as external and only report the URL. - Do not attempt Buildkite or other providers; keep the workflow lean. 5. Summarize failures for the user. - Provide the failing check name, run URL (if any), and a concise log snippet. - Call out missing logs explicitly. 6. Create a plan. - Use the `create-plan` skill to draft a concise plan and request approval. 7. Implement after approval. - Apply the approved plan, summarize diffs/tests, and ask about opening a PR. 8. Recheck status. - After changes, suggest re-running the relevant tests and `gh pr checks` to confirm.

原文:scripts/inspect_pr_checks.py

Fetch failing PR checks, pull GitHub Actions logs, and extract a failure snippet. Exits non-zero when failures remain so it can be used in automation. Usage examples: - `python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "123"` - `python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "https://github.com/org/repo/pull/123" --json` - `python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --max-lines 200 --context 40`

文件 SHA256:7b326b4a2f0f5f85122144628ec02077e48841e0e0e82efce88b3415bcfb7c26

仓库许可证记录:未提供;not-established,查看来源。

本站对来源内容的摘要

使用GitHub CLI定位PR中失败的GitHub Actions检查,读取日志并在修复方案获准后实施修改。

查看历史简介来源

历史收录数据

来源仓库openai/skills
Skill标识gh-fix-ci

原资料输入

  • 当前仓库和 PR
  • 失败的检查与日志
  • 可接受的修改范围

原资料使用步骤

  • 确认仓库与PR、gh认证状态。
  • 读取失败检查和GitHub Actions日志,缺日志时明确列出。
  • 按源技能约定先给修复方案,获准后再改动,并重新检查结果。

原资料输出

  • 失败原因摘要
  • 经批准的代码修复与复验结果

当前源文件说明依赖gh和配套inspect_pr_checks.py。请从该Skill完整目录安装,不再寻找旧github插件路径。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源