‹ 首页

github

@qianleigood · 收录于 昨天 · 上游提交 1 个月前

Use when inspecting or changing GitHub repository data with gh or gh api, including PRs, issues, comments, checks, workflow runs, releases, or repo metadata.

适合你,如果经常需要在命令行操作 GitHub 仓库

/ 通过 npx 安装 校验哈希
npx oh-my-skill add qianleigood/crawclaw/github
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- qianleigood/crawclaw/github
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify qianleigood/crawclaw/github
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
30GitHub stars
~425上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 f27e175 · 表述以原文为准
它做什么

装上后,Claude 可以运行 gh 命令来检查或修改 GitHub 仓库的数据,比如列出拉取请求、查看工作流运行、创建或评论 issue 等。

什么时候触发

当你询问或要求操作 GitHub 仓库数据时触发,例如查看 PR 状态、创建工作流运行、创建 issue 等。

装好后可以这样说
Claude 会运行 gh pr view 命令。
Claude 会使用 gh run list 命令。
技能原文 SKILL.md作者撰写 · MIT · f27e175

GitHub Skill

Use the gh CLI to interact with GitHub repositories, issues, PRs, and workflow runs.

Use it for
  • checking PR status, reviews, or merge readiness
  • viewing workflow runs and logs
  • creating or commenting on issues and PRs
  • running gh api queries for repository data
Do not use it for
  • local git operations
  • non-GitHub remotes
  • cloning repos
  • code review itself; use a coding skill for that
Common commands
# Pull requests
gh pr list --repo owner/repo
gh pr view 55 --repo owner/repo
gh pr checks 55 --repo owner/repo
gh pr create --title "feat: add feature" --body "Description"
gh pr merge 55 --squash --repo owner/repo

# Issues
gh issue list --repo owner/repo --state open
gh issue create --title "Bug: something broken" --body "Details..."
gh issue close 42 --repo owner/repo

# Workflow runs
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

# API
gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'
Notes
  • Always specify --repo owner/repo when not in a git directory.
  • You can pass a full PR URL directly to many gh pr commands.
  • Prefer --json plus --jq when you need structured output.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。