Skip to content
Back to skills

Github Pr

ASecurity

Fetch, preview, merge, and test GitHub PRs locally. Great for trying upstream PRs before they're merged.

  • 665 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added February 7, 2026
toolsbashtestinggit

Works with

  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add openclaw/skills --skill github-pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github Pr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/openclaw-github-pr/badge)](https://www.skillsdirectory.com/skills/openclaw-github-pr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: github-pr
description: Fetch, preview, merge, and test GitHub PRs locally. Great for trying upstream PRs before they're merged.
homepage: https://cli.github.com
metadata:
  clawdhub:
    emoji: "🔀"
    requires:
      bins: ["gh", "git"]
---

# 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

- `gh` CLI authenticated (`gh auth login`)
- Git repository with remotes configured

## Commands

### Preview a PR
```bash
github-pr preview <owner/repo> <pr-number>
```
Shows PR title, author, status, files changed, CI status, and recent comments.

### Fetch PR branch locally
```bash
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
```bash
github-pr merge <owner/repo> <pr-number> [--no-install]
```
Fetches and merges the PR. Optionally runs install after merge.

### Full test cycle
```bash
github-pr test <owner/repo> <pr-number>
```
Fetches, merges, installs dependencies, and runs build + tests.

## Examples

```bash
# 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 `upstream` remote by default
- Use `--remote <name>` to specify a different remote
- Merge conflicts must be resolved manually
- The `test` command auto-detects package manager (npm/pnpm/yarn/bun)

Files in this skill

  • SKILL.md1.7 KB
  • _meta.json277 B
  • scripts/github-pr.py7.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.