b4-pull-request

Create GitHub pull requests from the current branch using a template.

6|Updated Jun 14, 2026
One-click install
npx skills add https://github.com/jporre/sveltekit-verticalslices --skill b4-pull-request
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: b4-pull-request
Source: https://github.com/jporre/sveltekit-verticalslices/tree/main/skills/b4-pull-request
Command: npx skills add https://github.com/jporre/sveltekit-verticalslices --skill b4-pull-request

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of creating a GitHub pull request from the current branch, using the repository's template.

Core Features & Use Cases

  • Automated PR Creation: Create a pull request directly from the current branch with the repository's PR template.
  • PR Draft Creation: Option to create the PR as a draft.
  • Custom Body: Allow specifying a custom body file for the PR.
  • Issue Closuring: Close an associated GitHub issue when the PR is created.
  • Label Application: Add labels to the PR via the --label flag.

Quick Start

Use the b4-pull-request skill to create a pull request for the current branch with the --draft flag and add the 'auto-pr-bot' label.

Frequently Asked Questions about b4-pull-request

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

FAQPage Schema
How do I automate GitHub pull request creation from my current branch?

Automating GitHub pull request creation uses a predefined repo template to generate PRs from the current branch. It automatically populates the PR body using the repository template, streamlining the submission process.

Can I create a draft pull request and apply labels using GitHub CLI?

Yes, you can create a draft pull request and apply labels using GitHub CLI. The automation supports the --draft flag for draft PRs and the --label flag to automatically assign labels during PR creation.

How do I automatically close a GitHub issue when creating a pull request?

You can automatically close a GitHub issue when creating a pull request by configuring the PR automation. The tool includes an issue closure feature that links and closes the associated issue upon PR creation.

Do I need GitHub CLI to create a pull request from a forked repository?

Yes, you need GitHub CLI installed to create a pull request from a forked repository. The PR creation automation relies on the gh CLI tool to interact with GitHub and requires access to the repository's default branch.

Can I specify a custom body file instead of the default PR template?

Yes, you can specify a custom body file instead of the default PR template. The PR automation allows you to provide a custom body file, overriding the repository template when creating the pull request.

What is the best way to automate PR creation for a forked repository?

Automating PR creation for a forked repository is best handled by using the default repository template to generate the PR. This approach ensures consistency by automatically applying the repo template to the current branch.