pr

Create, update, and synchronize pull requests for the current branch via gh CLI.

3|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/harlan-zw/harlan-claude-code --skill pr-harlan-zw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr
Source: https://github.com/harlan-zw/harlan-claude-code/tree/main/harlan-claude-code/skills/pr
Command: npx skills add https://github.com/harlan-zw/harlan-claude-code --skill pr-harlan-zw

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Create, update, and sync pull requests for the current branch to streamline code review and merging without leaving the terminal. It offers guardrails and idempotent operations so you can run it at any stage without risking broken histories.

Core Features & Use Cases

  • Create a PR for the current branch to initiate review and CI checks.
  • Update an existing PR with new commits or describe changes, preserving context.
  • Synchronize local work with remote PR state, including title/body synchronization and branch status.
  • Use in collaborative workflows where fast PR turnaround and consistent PR metadata are required.

Quick Start

Open a PR for the current branch and let the tool handle the rest.

Frequently Asked Questions about pr

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

FAQPage Schema
How do I create a pull request for the current git branch from the terminal?

To create a pull request for the current git branch, this Skill automates PR creation using gh CLI and git commands. It detects the active branch, checks for existing PRs, generates the title and body, and pushes updates to initiate code review.

Can I update an existing pull request with new commits without losing context?

Yes, you can update an existing pull request with new commits while preserving context. This Skill synchronizes local work with the remote PR state, pushing new commits and updating the PR title and body via gh CLI without risking broken histories.

What is the best way to automate branch management and PR synchronization?

Automating branch management and PR synchronization is best handled through idempotent operations with built-in guardrails. This Skill detects branches, verifies PR existence, and executes push and update operations via gh CLI and git commands to ensure consistent PR metadata.

Do I need gh CLI installed to automate pull request workflows?

Yes, gh CLI is required to automate pull request workflows. This Skill relies on gh CLI alongside git commands and wt worktrees to handle branch detection, PR creation, body generation, and synchronization operations within your collaborative coding workflow.

Will running pull request automation commands accidentally rewrite git history?

Running pull request automation commands will not accidentally rewrite git history because this Skill provides idempotent operations and guardrails. You can safely create, update, and sync PRs at any stage of your workflow without risking broken histories or losing existing context.

How does branch detection work when opening a pull request?

Branch detection when opening a pull request works by automatically identifying your current active git branch. The Skill then checks if a PR already exists for that branch, generating or updating the PR body and title accordingly to streamline code review.