pr

Create pull requests from the current Git branch using GitHub CLI.

Updated Dec 12, 2024
One-click install
npx skills add https://github.com/kingmacth/lobe-chat --skill pr-kingmacth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr
Source: https://github.com/kingmacth/lobe-chat/tree/main/.agents/skills/pr
Command: npx skills add https://github.com/kingmacth/lobe-chat --skill pr-kingmacth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of pull requests from the current working branch, eliminating the manual steps required to open a PR.

Core Features & Use Cases

  • Streamlines GitHub workflows by generating a pull request from the active branch, including base branch guidance (canary or main).
  • Gathers context such as current branch, status, and unpushed commits to inform PR creation and minimize mistakes.
  • Supports optional PR linking and search for related issues to attach context to the PR.

Quick Start

Tell me to create a pull request for the current branch.

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 from the current Git branch automatically?

To create a pull request from the current branch, this automation gathers your branch status and unpushed commits, pushes if needed, and opens the PR in your browser. It requires Git and the GitHub CLI to interact with remotes.

What's the best way to handle uncommitted changes before creating a PR?

When creating a PR, the tool gathers context like current branch status and handles uncommitted changes to prevent mistakes. It ensures your working directory is managed properly before pushing commits and opening the pull request.

Can I search for related GitHub issues to link when opening a pull request?

Yes, you can search for related issues to attach context to your pull request. The automation supports optional PR linking and searches your GitHub repository to find relevant issues to include with the PR creation.

Do I need the GitHub CLI to automate pull request creation?

Yes, you need the GitHub CLI installed to automate pull request creation. The Skill works within Git workflows and requires the GitHub CLI and network access to interact with your GitHub remotes and open the PR in a browser.

How does base branch guidance work when generating a pull request?

Base branch guidance helps you target the correct branch, such as canary or main, when generating a pull request. The automation streamlines your GitHub workflow by determining the appropriate base branch for your active branch's PR.