i18n/skills/dev-tools/github/SKILL.md
通过 `gh` CLI 执行 GitHub 操作:管理 Issue、PR、CI 运行、代码审查、API 查询。适用于:(1) 检查 PR 状态或 CI 情况, (2) 创建或评论 Issue, (3) 列出/筛选 PR 或 Issue, (4) 查看运行日志。不适用于:需要手动浏览器操作的复杂 Web UI 交互(如果可用,请使用浏览器工具)、跨多个仓库的批量操作(使用 gh api 脚本),或者未配置 gh auth 的情况。
npx skillsauth add Jst-Well-Dan/Skill-Box githubInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
使用 gh CLI 与 GitHub 仓库、Issue、PR 和 CI 进行交互。
✅ 在以下情况下使用此技能:
❌ 在以下情况下不要使用此技能:
git。git clone。coding-agent 技能。coding-agent 或直接读取文件。# 身份验证(一次性设置)
gh auth login
# 验证状态
gh auth status
# 列出 PR
gh pr list --repo owner/repo
# 检查 CI 状态
gh pr checks 55 --repo owner/repo
# 查看 PR 详情
gh pr view 55 --repo owner/repo
# 创建 PR
gh pr create --title "feat: 添加功能" --body "描述内容"
# 合并 PR
gh pr merge 55 --squash --repo owner/repo
# 列出 Issue
gh issue list --repo owner/repo --state open
# 创建 Issue
gh issue create --title "Bug: 某些功能损坏" --body "详情描述..."
# 关闭 Issue
gh issue close 42 --repo owner/repo
# 列出最近的运行记录
gh run list --repo owner/repo --limit 10
# 查看特定运行记录
gh run view <run-id> --repo owner/repo
# 仅查看失败步骤的日志
gh run view <run-id> --repo owner/repo --log-failed
# 重新运行失败的作业
gh run rerun <run-id> --failed --repo owner/repo
# 获取带特定字段的 PR 信息
gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'
# 列出所有标签
gh api repos/owner/repo/labels --jq '.[].name'
# 获取仓库统计数据
gh api repos/owner/repo --jq '{stars: .stargazers_count, forks: .forks_count}'
大多数命令支持 --json 参数以获得结构化输出,配合 --jq 进行筛选:
gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'
gh pr list --json number,title,state,mergeable --jq '.[] | select(.mergeable == "MERGEABLE")'
# 获取 PR 概览用于审查
PR=55 REPO=owner/repo
echo "## PR #$PR 摘要"
gh pr view $PR --repo $REPO --json title,body,author,additions,deletions,changedFiles \
--jq '"**\(.title)** 由 @\(.author.login) 提交\n\n\(.body)\n\n📊 +\(.additions) -\(.deletions) 涉及 \(.changedFiles) 个文件"'
gh pr checks $PR --repo $REPO
# 快速 Issue 分类视图
gh issue list --repo owner/repo --state open --json number,title,labels,createdAt \
--jq '.[] | "[\(.number)] \(.title) - \([.labels[].name] | join(", ")) (\(.createdAt[:10]))"'
--repo owner/repo。gh pr view https://github.com/owner/repo/pull/55。gh api --cache 1h。tools
Extract frames or short clips from videos using ffmpeg.
tools
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
tools
Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".
development
Best practices for Remotion - Video creation in React