Local MCP Server
在Termux中运行本地MCP服务器,支持Ollama模型的文件读取与命令执行。
下载 11
通过 gh 命令行工具管理 GitHub 仓库、PR、Issue 和 CI 流水线。
openclaw skills install @chuangyinbot-boop/cool-github-cli命令、参数、文件名以原文为准
使用 gh CLI 与 GitHub 仓库、问题、拉取请求(PR)和 CI 进行交互。
✅ 请使用此技能当:
❌ 不要使用此技能当:
gitgit clonecoding-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: add feature" --body "Description"
# 合并 PR
gh pr merge 55 --squash --repo owner/repo# 列出问题
gh issue list --repo owner/repo --state open
# 创建问题
gh issue create --title "Bug: something broken" --body "Details..."
# 关闭问题
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 Summary"
gh pr view $PR --repo $REPO --json title,body,author,additions,deletions,changedFiles \
--jq '"**\(.title)** by @\(.author.login)\n\n\(.body)\n\n📊 +\(.additions) -\(.deletions) across \(.changedFiles) files"'
gh pr checks $PR --repo $REPO# 快速问题分类视图
gh issue list --repo owner/repo --state open --json number,title,labels,createdAt \
--jq '.[] | "[\(.number)] \(.title) - \([.labels[].name] | join(", ")) (\(.createdAt[:10]))"'--repo owner/repogh pr view https://github.com/owner/repo/pull/55gh api --cache 1h已收录 1 个 Skill