[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-7cb1d316-dce5-4730-801d-27c401fb7033":3,"$ffuv-LS2MhnXgeC3gfuaHz45qgPI68NTQg4fWtry1lUQ":42},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":33},"7cb1d316-dce5-4730-801d-27c401fb7033","github","使用 `gh` 命令行界面进行问题、拉取请求、操作运行和 GitHub API 查询。","cat_coding_backend","mod_coding","sickn33,coding","---\nname: github\ndescription: \"Use the `gh` CLI for issues, pull requests, Actions runs, and GitHub API queries.\"\nrisk: safe\nsource: \"Dimillian\u002FSkills (MIT)\"\ndate_added: \"2026-03-25\"\n---\n\n# GitHub Skill\n\nUse the `gh` CLI to interact with GitHub. Always specify `--repo owner\u002Frepo` when not in a git directory, or use URLs directly.\n\n## When to Use\n- When the user asks about GitHub issues, pull requests, workflow runs, or CI failures.\n- When you need `gh issue`, `gh pr`, `gh run`, or `gh api` from the command line.\n\n## Pull Requests\n\nCheck CI status on a PR:\n```bash\ngh pr checks 55 --repo owner\u002Frepo\n```\n\nList recent workflow runs:\n```bash\ngh run list --repo owner\u002Frepo --limit 10\n```\n\nView a run and see which steps failed:\n```bash\ngh run view \u003Crun-id> --repo owner\u002Frepo\n```\n\nView logs for failed steps only:\n```bash\ngh run view \u003Crun-id> --repo owner\u002Frepo --log-failed\n```\n\n### Debugging a CI Failure\n\nFollow this sequence to investigate a failing CI run:\n\n1. **Check PR status** — identify which checks are failing:\n   ```bash\n   gh pr checks 55 --repo owner\u002Frepo\n   ```\n2. **List recent runs** — find the relevant run ID:\n   ```bash\n   gh run list --repo owner\u002Frepo --limit 10\n   ```\n3. **View the failed run** — see which jobs and steps failed:\n   ```bash\n   gh run view \u003Crun-id> --repo owner\u002Frepo\n   ```\n4. **Fetch failure logs** — get the detailed output for failed steps:\n   ```bash\n   gh run view \u003Crun-id> --repo owner\u002Frepo --log-failed\n   ```\n\n## API for Advanced Queries\n\nThe `gh api` command is useful for accessing data not available through other subcommands.\n\nGet PR with specific fields:\n```bash\ngh api repos\u002Fowner\u002Frepo\u002Fpulls\u002F55 --jq '.title, .state, .user.login'\n```\n\n## JSON Output\n\nMost commands support `--json` for structured output.  You can use `--jq` to filter:\n\n```bash\ngh issue list --repo owner\u002Frepo --json number,title --jq '.[] | \"\\(.number): \\(.title)\"'\n```\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,229,196,"2026-05-16 13:20:25",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"编程开发","coding","mdi-code-braces","代码生成、调试、审查，提升开发效率",2,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":25,"skillCount":32,"createdAt":26},"后端开发","backend","mdi-server","API、数据库、服务端架构",296,[34],{"id":35,"skillId":4,"version":36,"fileName":37,"fileSize":38,"filePath":39,"fileHash":40,"manifest":41,"createdAt":19},"6bee9186-69a2-4465-82e9-66d8c0d9db89","1.0.0","github.zip",1403,"uploads\u002Fskills\u002F7cb1d316-dce5-4730-801d-27c401fb7033\u002Fgithub.zip","bbf4f3b76735a4dd0703b35b96378ff1683bd936c4a52d435252d806598eee64","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":2218},{\"path\":\"agents\u002Fopenai.yaml\",\"isDirectory\":false,\"size\":190}]",{"code":43,"message":44,"data":45},200,"success",{"items":46,"stats":47,"page":50},[],{"averageRating":48,"totalRatings":48,"ratingCounts":49},0,[48,48,48,48,48],{"limit":51,"offset":48,"hasMore":52,"nextOffset":51,"ratedOnly":16},15,false]