open-pr

Open the current pull request in a browser using gh pr view --web.

114|29|Updated Nov 23, 2019
One-click install
npx skills add https://github.com/helderberto/dotfiles --skill open-pr-helderberto
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: open-pr
Source: https://github.com/helderberto/dotfiles/tree/main/claude/.claude/skills/open-pr
Command: npx skills add https://github.com/helderberto/dotfiles --skill open-pr-helderberto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a quick way to view the current pull request in a browser by leveraging the GitHub CLI.

Core Features & Use Cases

  • Open PR in browser: Uses gh pr view --web to open the current PR for the active branch.
  • GitHub-centered workflow: Requires a GitHub remote and an open PR.
  • Fast review: Allows reviewing changes in a browser without leaving your terminal.

Quick Start

gh pr view --web to open the current pull request in the default browser.

Frequently Asked Questions about open-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I open the current pull request in my browser from the terminal?▼

You can open the current pull request in your browser directly from the terminal using the gh pr view --web command. This requires a GitHub remote with an open PR for the current branch.

Do I need the GitHub CLI to open a PR in my web browser?▼

Yes, opening a PR in the web browser relies on the GitHub CLI. Specifically, it uses the gh pr view --web command to launch the active branch's pull request in your default browser.

Can I view the current GitHub PR in a browser without leaving the terminal?▼

Yes, you can view the current GitHub PR in a browser without leaving the terminal. The workflow executes gh pr view --web to quickly launch the active pull request for immediate review.

What's the best way to quickly review changes for an open PR on the current branch?▼

The best way to quickly review changes is opening the PR in a browser via the gh pr view --web command. This provides fast visual review of the active branch's pull request.

Why does opening a pull request in the browser fail when there is no open PR?▼

Opening a pull request in the browser fails because the command requires an open PR for the current branch. Without a GitHub remote containing an open pull request, the view command cannot launch a browser page.