AGENT SKILL
github-pr
Fetch, preview, merge, and test GitHub PRs locally. Great for trying upstream PRs before they're merged.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 5
- Forks
- 1
01 前言 Front Matter
- name
- github-pr
- homepage
- https://cli.github.com
- metadata
- { "clawdhub": { "emoji": "?", "requires": { "bins": [ "gh", "git" ] } } }
- description
- Fetch, preview, merge, and test GitHub PRs locally. Great for trying upstream PRs before they're merged.
- disable-model-invocation
- true
02 资源文件 1
- 脚本scripts/github-pr.py7.9 KB
03 SKILL.md 正文
GitHub PR Tool
Fetch and merge GitHub pull requests into your local branch. Perfect for:
- Trying upstream PRs before they're merged
- Incorporating features from open PRs into your fork
- Testing PR compatibility locally
Prerequisites
ghCLI authenticated (gh auth login)- Git repository with remotes configured
Commands
Preview a PR
github-pr preview <owner/repo> <pr-number>
Shows PR title, author, status, files changed, CI status, and recent comments.
Fetch PR branch locally
github-pr fetch <owner/repo> <pr-number> [--branch <name>]
Fetches the PR head into a local branch (default: pr/<number>).
Merge PR into current branch
github-pr merge <owner/repo> <pr-number> [--no-install]
Fetches and merges the PR. Optionally runs install after merge.
Full test cycle
github-pr test <owner/repo> <pr-number>
Fetches, merges, installs dependencies, and runs build + tests.
Examples
# Preview MS Teams PR from clawdbot
github-pr preview clawdbot/clawdbot 404
# Fetch it locally
github-pr fetch clawdbot/clawdbot 404
# Merge into your current branch
github-pr merge clawdbot/clawdbot 404
# Or do the full test cycle
github-pr test clawdbot/clawdbot 404
Notes
- PRs are fetched from the
upstreamremote by default - Use
--remote <name>to specify a different remote - Merge conflicts must be resolved manually
- The
testcommand auto-detects package manager (npm/pnpm/yarn/bun)
04 同仓库更多 Skills
worktree-isolation
Creates an isolated git worktree.
★ 5
test-runner
Runs the targeted test suite.
★ 5
subagent-driven-dev
Meta toolkit for dispatching subagents.
★ 5
security-review
Read-only security review of pending changes.
★ 5
revenue-check
Reads production revenue dashboards.
★ 5
prompt-optimizer
Optimizes a prompt template.
★ 5