npx skills add https://github.com/steipete/clawdis --skill github使用 gh CLI 与 GitHub 仓库、议题、PR 和 CI 进行交互。
✅ 在以下情况使用此技能:
❌ 在以下情况不要使用此技能:
gitgit clonecoding-agent 技能coding-agent 或直接读取文件# 认证(一次性操作)
gh auth login
# 验证
gh auth status
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
# 列出 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每周安装次数
467
仓库
GitHub 星标数
336.0K
首次出现
2026年1月24日
安全审计
已安装于
codex435
opencode435
gemini-cli434
github-copilot430
kimi-cli428
amp427
Use the gh CLI to interact with GitHub repositories, issues, PRs, and CI.
✅ USE this skill when:
❌ DON'T use this skill when:
git directlygit clonecoding-agent skillcoding-agent or read files directly# Authenticate (one-time)
gh auth login
# Verify
gh auth status
# List PRs
gh pr list --repo owner/repo
# Check CI status
gh pr checks 55 --repo owner/repo
# View PR details
gh pr view 55 --repo owner/repo
# Create PR
gh pr create --title "feat: add feature" --body "Description"
# Merge PR
gh pr merge 55 --squash --repo owner/repo
# List issues
gh issue list --repo owner/repo --state open
# Create issue
gh issue create --title "Bug: something broken" --body "Details..."
# Close issue
gh issue close 42 --repo owner/repo
# List recent runs
gh run list --repo owner/repo --limit 10
# View specific run
gh run view <run-id> --repo owner/repo
# View failed step logs only
gh run view <run-id> --repo owner/repo --log-failed
# Re-run failed jobs
gh run rerun <run-id> --failed --repo owner/repo
# Get PR with specific fields
gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'
# List all labels
gh api repos/owner/repo/labels --jq '.[].name'
# Get repo stats
gh api repos/owner/repo --jq '{stars: .stargazers_count, forks: .forks_count}'
Most commands support --json for structured output with --jq filtering:
gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'
gh pr list --json number,title,state,mergeable --jq '.[] | select(.mergeable == "MERGEABLE")'
# Get PR overview for review
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
# Quick issue triage view
gh issue list --repo owner/repo --state open --json number,title,labels,createdAt \
--jq '.[] | "[\(.number)] \(.title) - \([.labels[].name] | join(", ")) (\(.createdAt[:10]))"'
--repo owner/repo when not in a git directorygh pr view https://github.com/owner/repo/pull/55gh api --cache 1h for repeated queriesWeekly Installs
467
Repository
GitHub Stars
336.0K
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex435
opencode435
gemini-cli434
github-copilot430
kimi-cli428
amp427
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
136,300 周安装
Defuddle 网页内容提取工具 - 一键去除广告侧边栏,输出干净 Markdown
931 周安装
前端设计技能:告别通用AI UI,打造独特、生产级、令人难忘的界面
961 周安装
Medusa 管理面板自定义开发指南:使用 Admin SDK 和 UI 组件构建扩展
990 周安装
Tailwind CSS v4 最佳实践:Vite插件、@theme指令、OKLCH颜色格式详解
446 周安装
Base44 JavaScript SDK 使用指南 - 在 Base44 平台构建应用程序
958 周安装
Vitest 测试框架:Vite 原生单元测试工具,兼容 Jest API,支持 Vue/React/Svelte
985 周安装