github-pr
Fetch, preview, merge, and test GitHub PRs locally. Great for trying upstream PRs before they're merged.
Why use this skill?
Seamlessly fetch, preview, merge, and test GitHub pull requests directly in your development environment using the OpenClaw github-pr skill.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/dbhurley/github-prWhat This Skill Does
The github-pr skill for OpenClaw is a powerful command-line utility designed to streamline the integration of external code from GitHub into your local development environment. Acting as an intelligent wrapper around the gh CLI and git, this skill enables developers to preview, fetch, merge, and test pull requests without the manual overhead of checking out remote branches or configuring complex git remotes manually. It bridges the gap between remote collaboration and local validation, ensuring that you can verify the impact of proposed changes on your local codebase seamlessly.
Installation
To install this skill, use the ClawHub package manager. Before proceeding, ensure that you have the GitHub CLI installed and authenticated via gh auth login. Once authenticated, execute the following command in your terminal:
clawhub install openclaw/skills/skills/dbhurley/github-pr
Ensure your local environment is configured with the appropriate git remotes, as the skill relies on these to identify and interact with the relevant repositories.
Use Cases
This tool is specifically designed for developers, maintainers, and open-source contributors. Key use cases include:
- Validating Upstream Changes: Quickly test a feature or bug fix from a contributor's PR before deciding whether to approve and merge it.
- Collaborative Debugging: Fetch a branch from a team member's repository to reproduce a specific issue locally without needing to manually add new remotes.
- Compatibility Testing: Verify that a proposed PR does not break your current local build by running a full test cycle including dependency installation and unit testing.
- Feature Stacking: Merge active PRs into your own feature branch to build upon ongoing work-in-progress.
Example Prompts
- "Preview the pull request #404 from clawdbot/clawdbot and summarize the main changes for me."
- "Please fetch the code from PR #123 on the open-source-repo repository into a new local branch named feature-testing."
- "Run a full test cycle on PR #555 for the main-project repository to see if it passes all existing integration tests."
Tips & Limitations
- Safety First: Always perform these operations in a clean branch. Because this tool performs automated merges, it can introduce conflicts. If conflicts occur, you must resolve them manually using your preferred git merge tool.
- Auto-Detection: The
testcommand is highly capable and will automatically detect whether your project uses npm, pnpm, yarn, or bun, saving you configuration time. - Remote Context: By default, the tool assumes an
upstreamremote. If your remotes are named differently, always use the--remoteflag to ensure the skill points to the correct GitHub organization or repository. - Environment Dependency: This skill is strictly local-first. It does not perform any actions on the GitHub server itself beyond fetching data; all merges happen strictly within your local file system.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-dbhurley-github-pr": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, external-api, code-execution
Related Skills
daily-recap
Generate a daily recap image with your agent holding a posterboard of accomplishments. Cron-driven, weather-aware, customizable to any agent identity.
plex
Control Plex Media Server - browse libraries, search, play media, manage playback.
cloudflare
Cloudflare CLI - manage DNS records, purge cache, and control Workers routes.
grocery-list
Standalone grocery lists, recipes, and meal planning with local storage. No external service required.
otter
Otter.ai transcription CLI - list, search, download, and sync meeting transcripts to CRM.