[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76VAZ44FKES1QF6GNRCRVFP":3,"skill-same:01M76VAZ44FKES1QF6GNRCRVFP":54},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":14,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":5,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M76VAZ44FKES1QF6GNRCRVFP","gh-fix-ci",null,"whz39coding\u002Fzh-awesome-codex-skills","whz39coding","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F150695239?v=4","01M75700F4ESSQA1A3D0PDMQHP","01M75700G9NXGCKBD4NVVQGW2R",7,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fgh-fix-ci\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fgh-fix-ci\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: gh-fix-ci\ndescription: 使用 gh 检查 GitHub PR checks，拉取失败的 GitHub Actions logs，汇总失败上下文，制定修复计划并在用户批准后实现。适用于调试或修复 GitHub Actions CI\u002FCD 失败。Keywords: GitHub Actions, CI failure, gh CLI.\nmetadata:\n  short-description: Fix failing Github CI actions\n---\n\n# Gh Pr Checks Plan Fix\n\n## Overview\n\nUse 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.\n- Depends on the `plan` skill for drafting and approving the fix plan.\n\nPrereq: ensure `gh` is authenticated (for example, run `gh auth login` once), then run `gh auth status` with escalated permissions (include workflow\u002Frepo scopes) so `gh` commands succeed. If sandboxing blocks `gh auth status`, rerun it with `sandbox_permissions=require_escalated`.\n\n## Inputs\n\n- `repo`: path inside the repo (default `.`)\n- `pr`: PR number or URL (optional; defaults to current branch PR)\n- `gh` authentication for the repo host\n\n## Quick start\n\n- `python \"\u003Cpath-to-skill>\u002Fscripts\u002Finspect_pr_checks.py\" --repo \".\" --pr \"\u003Cnumber-or-url>\"`\n- Add `--json` if you want machine-friendly output for summarization.\n\n## Workflow\n\n1. Verify gh authentication.\n   - Run `gh auth status` in the repo with escalated scopes (workflow\u002Frepo) after running `gh auth login`.\n   - If sandboxed auth status fails, rerun the command with `sandbox_permissions=require_escalated` to allow network\u002Fkeyring access.\n   - If unauthenticated, ask the user to log in before proceeding.\n2. Resolve the PR.\n   - Prefer the current branch PR: `gh pr view --json number,url`.\n   - If the user provides a PR number or URL, use that directly.\n3. Inspect failing checks (GitHub Actions only).\n   - Preferred: run the bundled script (handles gh field drift and job-log fallbacks):\n     - `python \"\u003Cpath-to-skill>\u002Fscripts\u002Finspect_pr_checks.py\" --repo \".\" --pr \"\u003Cnumber-or-url>\"`\n     - Add `--json` for machine-friendly output.\n   - Manual fallback:\n     - `gh pr checks \u003Cpr> --json name,state,bucket,link,startedAt,completedAt,workflow`\n       - If a field is rejected, rerun with the available fields reported by `gh`.\n     - For each failing check, extract the run id from `detailsUrl` and run:\n       - `gh run view \u003Crun_id> --json name,workflowName,conclusion,status,url,event,headBranch,headSha`\n       - `gh run view \u003Crun_id> --log`\n     - If the run log says it is still in progress, fetch job logs directly:\n       - `gh api \"\u002Frepos\u002F\u003Cowner>\u002F\u003Crepo>\u002Factions\u002Fjobs\u002F\u003Cjob_id>\u002Flogs\" > \"\u003Cpath>\"`\n4. Scope non-GitHub Actions checks.\n   - If `detailsUrl` is not a GitHub Actions run, label it as external and only report the URL.\n   - Do not attempt Buildkite or other providers; keep the workflow lean.\n5. Summarize failures for the user.\n   - Provide the failing check name, run URL (if any), and a concise log snippet.\n   - Call out missing logs explicitly.\n6. Create a plan.\n   - Use the `plan` skill to draft a concise plan and request approval.\n7. Implement after approval.\n   - Apply the approved plan, summarize diffs\u002Ftests, and ask about opening a PR.\n8. Recheck status.\n   - After changes, suggest re-running the relevant tests and `gh pr checks` to confirm.\n\n## Bundled Resources\n\n### scripts\u002Finspect_pr_checks.py\n\nFetch 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.\n\nUsage examples:\n- `python \"\u003Cpath-to-skill>\u002Fscripts\u002Finspect_pr_checks.py\" --repo \".\" --pr \"123\"`\n- `python \"\u003Cpath-to-skill>\u002Fscripts\u002Finspect_pr_checks.py\" --repo \".\" --pr \"https:\u002F\u002Fgithub.com\u002Forg\u002Frepo\u002Fpull\u002F123\" --json`\n- `python \"\u003Cpath-to-skill>\u002Fscripts\u002Finspect_pr_checks.py\" --repo \".\" --max-lines 200 --context 40`\n","# Gh Pr Checks Plan Fix\n\n## Overview\n\nUse 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.\n- Depends on the `plan` skill for drafting and approving the fix plan.\n\nPrereq: ensure `gh` is authenticated (for example, run `gh auth login` once), then run `gh auth status` with escalated permissions (include workflow\u002Frepo scopes) so `gh` commands succeed. If sandboxing blocks `gh auth status`, rerun it with `sandbox_permissions=require_escalated`.\n\n## Inputs\n\n- `repo`: path inside the repo (default `.`)\n- `pr`: PR number or URL (optional; defaults to current branch PR)\n- `gh` authentication for the repo host\n\n## Quick start\n\n- `python \"\u003Cpath-to-skill>\u002Fscripts\u002Finspect_pr_checks.py\" --repo \".\" --pr \"\u003Cnumber-or-url>\"`\n- Add `--json` if you want machine-friendly output for summarization.\n\n## Workflow\n\n1. Verify gh authentication.\n   - Run `gh auth status` in the repo with escalated scopes (workflow\u002Frepo) after running `gh auth login`.\n   - If sandboxed auth status fails, rerun the command with `sandbox_permissions=require_escalated` to allow network\u002Fkeyring access.\n   - If unauthenticated, ask the user to log in before proceeding.\n2. Resolve the PR.\n   - Prefer the current branch PR: `gh pr view --json number,url`.\n   - If the user provides a PR number or URL, use that directly.\n3. Inspect failing checks (GitHub Actions only).\n   - Preferred: run the bundled script (handles gh field drift and job-log fallbacks):\n     - `python \"\u003Cpath-to-skill>\u002Fscripts\u002Finspect_pr_checks.py\" --repo \".\" --pr \"\u003Cnumber-or-url>\"`\n     - Add `--json` for machine-friendly output.\n   - Manual fallback:\n     - `gh pr checks \u003Cpr> --json name,state,bucket,link,startedAt,completedAt,workflow`\n       - If a field is rejected, rerun with the available fields reported by `gh`.\n     - For each failing check, extract the run id from `detailsUrl` and run:\n       - `gh run view \u003Crun_id> --json name,workflowName,conclusion,status,url,event,headBranch,headSha`\n       - `gh run view \u003Crun_id> --log`\n     - If the run log says it is still in progress, fetch job logs directly:\n       - `gh api \"\u002Frepos\u002F\u003Cowner>\u002F\u003Crepo>\u002Factions\u002Fjobs\u002F\u003Cjob_id>\u002Flogs\" > \"\u003Cpath>\"`\n4. Scope non-GitHub Actions checks.\n   - If `detailsUrl` is not a GitHub Actions run, label it as external and only report the URL.\n   - Do not attempt Buildkite or other providers; keep the workflow lean.\n5. Summarize failures for the user.\n   - Provide the failing check name, run URL (if any), and a concise log snippet.\n   - Call out missing logs explicitly.\n6. Create a plan.\n   - Use the `plan` skill to draft a concise plan and request approval.\n7. Implement after approval.\n   - Apply the approved plan, summarize diffs\u002Ftests, and ask about opening a PR.\n8. Recheck status.\n   - After changes, suggest re-running the relevant tests and `gh pr checks` to confirm.\n\n## Bundled Resources\n\n### scripts\u002Finspect_pr_checks.py\n\nFetch 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.\n\nUsage examples:\n- `python \"\u003Cpath-to-skill>\u002Fscripts\u002Finspect_pr_checks.py\" --repo \".\" --pr \"123\"`\n- `python \"\u003Cpath-to-skill>\u002Fscripts\u002Finspect_pr_checks.py\" --repo \".\" --pr \"https:\u002F\u002Fgithub.com\u002Forg\u002Frepo\u002Fpull\u002F123\" --json`\n- `python \"\u003Cpath-to-skill>\u002Fscripts\u002Finspect_pr_checks.py\" --repo \".\" --max-lines 200 --context 40`\n",{},"master","d2a3feea872bb061f0758151f8ee52b18e809c74",2,"https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills","https:\u002F\u002Fgithub.com\u002Fwhz39coding","2026-06-02 11:03:05",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add whz39coding\u002Fzh-awesome-codex-skills --skill gh-fix-ci",{"tool":35,"command":36},"bunx","bunx skills add whz39coding\u002Fzh-awesome-codex-skills --skill gh-fix-ci",{"tool":38,"command":39},"pnpm","pnpm dlx skills add whz39coding\u002Fzh-awesome-codex-skills --skill gh-fix-ci","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fgh-fix-ci\u002FSKILL.md",true,[43,48],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":14},"LICENSE.txt","LICENSE","许可证",11357,{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"scripts\u002Finspect_pr_checks.py","SCRIPT","脚本",15071,"https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fgh-fix-ci\u002Fscripts\u002Finspect_pr_checks.py",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":58,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M76VCME09D0B0HTCCQHR9NTG","webapp-testing","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":65,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M76VCHF8MC0BTMGDP2TABZNQ","theme-factory","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Ftheme-factory\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":72,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M76VC9ZWT75WD547GAMDTTVP","slack-gif-creator","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fslack-gif-creator\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":79,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M76VC7EHZV0GHMSPESSDCY31","skill-installer","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fskill-installer\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fskill-installer\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M76VC3WBAQ5XZS17B3S52HVX","skill-creator","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fskill-creator\u002Flicense.txt","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M76VBYJVQ53GGNEX0R5JJRWP","paperjsx","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fpaperjsx\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwhz39coding\u002Fzh-awesome-codex-skills\u002Fblob\u002Fmaster\u002Fpaperjsx\u002FSKILL.md",[],[]]