github-pr

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

533 stars

Best use case

github-pr is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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

Teams using github-pr should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/github-pr/SKILL.md --create-dirs "https://raw.githubusercontent.com/sundial-org/awesome-openclaw-skills/main/skills/github-pr/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/github-pr/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How github-pr Compares

Feature / Agentgithub-prStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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)

Related Skills

github

533
from sundial-org/awesome-openclaw-skills

Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.

github-kb

533
from sundial-org/awesome-openclaw-skills

Manage a local GitHub knowledge base and provide GitHub search capabilities via gh CLI. Use when users ask about repos, PRs, issues, request to clone GitHub repositories, explore codebases, or need information about GitHub projects. Supports searching GitHub via gh CLI and managing local KB with GITHUB_KB.md catalog. Configure via GITHUB_TOKEN and GITHUB_KB_PATH environment variables.

github-action-gen

533
from sundial-org/awesome-openclaw-skills

Generate GitHub Actions workflows from plain English. Use when setting up CI.

portfolio-watcher

533
from sundial-org/awesome-openclaw-skills

Monitor stock/crypto holdings, get price alerts, track portfolio performance

portainer

533
from sundial-org/awesome-openclaw-skills

Control Docker containers and stacks via Portainer API. List containers, start/stop/restart, view logs, and redeploy stacks from git.

portable-tools

533
from sundial-org/awesome-openclaw-skills

Build cross-device tools without hardcoding paths or account names

polymarket

533
from sundial-org/awesome-openclaw-skills

Trade prediction markets on Polymarket. Analyze odds, place bets, track positions, automate alerts, and maximize returns from event outcomes. Covers sports, politics, entertainment, and more.

polymarket-traiding-bot

533
from sundial-org/awesome-openclaw-skills

No description provided.

polymarket-analysis

533
from sundial-org/awesome-openclaw-skills

Analyze Polymarket prediction markets for trading edges. Pair Cost arbitrage, whale tracking, sentiment analysis, momentum signals, user profile tracking. No execution.

polymarket-agent

533
from sundial-org/awesome-openclaw-skills

Autonomous prediction market agent - analyzes markets, researches news, and identifies trading opportunities

polymarket-5

533
from sundial-org/awesome-openclaw-skills

Query Polymarket prediction markets. Use for questions about prediction markets, betting odds, market prices, event probabilities, or when user asks about Polymarket data.

polymarket-4

533
from sundial-org/awesome-openclaw-skills

Query Polymarket prediction markets. Use for questions about prediction markets, betting odds, market prices, event probabilities, or when user asks about Polymarket data.