pr

Create a GitHub pull request targeting the canary branch with issue linking.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kingheu0818-sketch/lobehub_yu --skill pr-kingheu0818-sketch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr
Source: https://github.com/kingheu0818-sketch/lobehub_yu/tree/main/.agents/skills/pr
Command: npx skills add https://github.com/kingheu0818-sketch/lobehub_yu --skill pr-kingheu0818-sketch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you create a correct GitHub pull request from your current changes without forgetting to push a branch, avoiding duplicates, and properly linking related issues.

Core Features & Use Cases

  • PR creation from the right branch: Targets canary and avoids creating PRs directly to main.
  • Pre-flight context gathering: Collects current branch, working tree status, unpushed commits, and change summaries before creating the PR.
  • Issue linking support: Searches GitHub issues by keywords and links matching issues to the PR.

Quick Start

Tell the assistant: "pr".

Frequently Asked Questions about pr

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

FAQPage Schema
How do I create a GitHub pull request and link related issues automatically?

To create a GitHub pull request and link related issues, this Skill pushes your current branch changes, searches GitHub issues by keywords, and attaches matching issues to the PR body for proper context tracking.

How do I check for duplicate pull requests before submitting to an upstream branch?

To check for duplicate pull requests before submitting, this Skill detects existing PRs for your current branch during pre-flight context gathering, ensuring you avoid creating redundant requests against the upstream branch.

Can I use this to open a pull request targeting the canary branch instead of main?

Yes, you can use this to open a pull request targeting the canary branch instead of main. It specifically routes your PR to canary to maintain structured release workflows and protect the main branch.

Do I need GitHub CLI and git installed to generate a pull request from my branch?

Yes, you need both git and GitHub CLI (gh) installed. The Skill requires these command-line tools to collect working tree status, gather diff context, and execute the underlying commands to push and create the pull request.

What is the best way to ensure unpushed commits are included when creating a pull request?

The best way to ensure unpushed commits are included is to use a pre-flight context gathering step. This Skill collects your unpushed commits and automatically pushes your branch changes before generating the pull request.

How does this pull request workflow handle repository PR templates?

This pull request workflow applies your repository PR template by collecting diff context and branch status, then generating a compliant PR title and body that aligns with your project's required formatting and documentation standards.