帮助排查并修复 GitHub Actions 的 PR 检查失败,先分析日志再经批准实施修改。
该技能本质上是开源的提示型工作流说明,来源可信度较高,整体风险偏低。主要注意点是其工作流依赖本地已登录的 GitHub CLI 凭证,并会访问 GitHub 仓库与 Actions 日志,但材料未显示向不明第三方外发数据或申请异常权限。
材料虽写“无”环境变量/密钥,但 README 明确要求先通过 `gh auth login` 完成 GitHub CLI 认证,且通常需要 repo 与 workflow scopes;因此会使用本地 GitHub 凭证,存在常规的令牌权限与误用面,但未见要求提供额外第三方密钥或明显凭证窃取迹象。
工作流会通过 `gh`/`gh api` 访问 GitHub 仓库、PR、Checks 与 Actions 日志,属于与声明功能直接相关的正常网络通信;文档还明确将 Buildkite 等外部提供方排除在外,仅报告 details URL,未见向不明或无关端点外发数据的红旗。
客观检查项表明其为 prompt-only;材料包含运行 `gh` 与 Python 脚本的操作说明,但该技能本身更像审查/修复流程指引,不自带不可审计的闭源二进制或隐式执行逻辑。基于现有材料,未见超出其描述用途的本机代码执行红旗。
按文档流程会读取当前仓库、PR 信息、检查结果与 GitHub Actions 日志,必要时还会在获批后实施修复;这些访问范围与“诊断 CI 失败”目标一致,未见索取系统级广泛文件权限或无关数据源,但应注意日志与仓库内容可能包含敏感信息。
来源为 GitHub 上的 `openai/skills` 开源仓库,且社区采用度高(约 22k stars),这些都是明显的降风险因素;许可证未声明、维护状态未知值得留意,但在未发现闭源外发、可疑安装脚本或来源失真的情况下,供应链维度整体偏低风险。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "gh-fix-ci" 技能: 1. 下载 https://raw.githubusercontent.com/openai/skills/main/skills/.curated/gh-fix-ci/SKILL.md 2. 保存为 ~/.claude/skills/gh-fix-ci/SKILL.md 3. 装好后重载技能,告诉我可以用了
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.
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).
repo: path inside the repo (default .)pr: PR number or URL (optional; defaults to current branch PR)gh authentication for the repo hostpython "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number-or-url>"--json if you want machine-friendly output for summarization.gh auth status in the repo.gh auth login (ensuring repo + workflow scopes) before proceeding.gh pr view --json number,url.python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number-or-url>"--json for machine-friendly output.gh pr checks <pr> --json name,state,bucket,link,startedAt,completedAt,workflow
gh.detailsUrl and run:
gh run view <run_id> --json name,workflowName,conclusion,status,url,event,headBranch,headShagh run view <run_id> --loggh api "/repos/<owner>/<repo>/actions/jobs/<job_id>/logs" > "<path>"detailsUrl is not a GitHub Actions run, label it as external and only report the URL.create-plan skill to draft a concise plan and request approval.gh pr checks to confirm.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" --jsonpython "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --max-lines 200 --context 40帮助你构建、评审与重构 ASP.NET Core Web 应用及架构方案
用于构建、脚手架生成、重构并排查 ChatGPT Apps SDK 应用问题。
帮助你基于接口文档或脚本快速生成可组合的命令行工具
为项目代码库生成定制化设计系统规则,统一 Figma 到代码协作规范。
一键创建新的 Figma 设计或 FigJam 空白文件,便于快速开始协作创作。
帮助用户用 Netlify CLI 部署、发布并关联网站项目到 Netlify。
帮助你定位并修复拉取请求中的 CI 检查失败问题
帮助你用 gh CLI 处理当前分支 GitHub PR 的评审与问题评论。
帮助用户检测并安装 GitHub CLI,快速完成命令行开发环境准备。
帮助你在 ChatGPT 中审查 GitHub 拉取请求、评论变更并给出审批意见
通过 GitHub CLI 管理议题、PR、日志、发布与仓库查询等开发协作任务
在推送代码或触发 CI 前检查常见问题,提前发现格式、变更集与策略风险。