gh-fix-ci by openai/skills
npx skills add https://github.com/openai/skills --skill gh-fix-ci使用 gh 定位失败的 PR 检查,获取 GitHub Actions 日志以分析可操作的失败,总结失败片段,然后提出修复计划并在明确批准后实施。
create-plan),则使用它;否则,内联草拟一个简洁的计划,并在实施前请求批准。前提条件:使用标准 GitHub CLI 进行一次身份验证(例如,运行 gh auth login),然后使用 gh auth status 确认(通常需要 repo + workflow 权限)。
repo:仓库内的路径(默认为 .)pr:PR 编号或 URL(可选;默认为当前分支的 PR)gh 身份验证广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number-or-url>"--json。gh auth status。gh auth login(确保包含 repo + workflow 权限)。gh pr view --json number,url。python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number-or-url>"--json 以获取机器友好的输出。gh pr checks <pr> --json name,state,bucket,link,startedAt,completedAt,workflow
gh 报告的可用字段重新运行。detailsUrl 中提取运行 ID 并运行:
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 不是 GitHub Actions 运行,则将其标记为外部检查,仅报告 URL。create-plan 技能草拟一个简洁的计划并请求批准。gh pr checks 以确认。获取失败的 PR 检查,拉取 GitHub Actions 日志,并提取失败片段。当失败仍然存在时以非零状态退出,以便在自动化中使用。
使用示例:
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 40604
15.1K
2026年1月20日
codex526
opencode503
gemini-cli479
amp429
kimi-cli422
github-copilot420
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
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 40Weekly Installs
604
Repository
GitHub Stars
15.1K
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex526
opencode503
gemini-cli479
amp429
kimi-cli422
github-copilot420
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.