create-pr-with-template

Create a GitHub pull request with a repository template and branch validation.

Updated May 28, 2026
One-click install
npx skills add https://github.com/haryelramalho/skills --skill create-pr-with-template
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr-with-template
Source: https://github.com/haryelramalho/skills/tree/main/skills/mine/create-pr-with-template
Command: npx skills add https://github.com/haryelramalho/skills --skill create-pr-with-template

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction of creating GitHub pull requests by handling branch checks, template discovery, and body formatting in one reliable workflow.

Core Features & Use Cases

  • Template-Aware PR Creation: Finds repository pull request templates and applies the correct one automatically.
  • Branch and Remote Validation: Checks branch status, upstream tracking, and push readiness before opening the PR.
  • Clear PR Output: Builds a concise title and body from branch context and returns the final PR URL.
  • Use Case: When you finish a feature branch and need to open a PR that matches the repository’s standards, this Skill prepares everything and creates it with gh.

Quick Start

Use this skill to create a pull request for the current branch, using the repository’s preferred template if one exists.

Frequently Asked Questions about create-pr-with-template

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

FAQPage Schema
How do I create a pull request using a GitHub PR template automatically?

This Skill automates pull request creation by discovering repository-specific PR templates, validating branch tracking, and using GitHub CLI to open the PR with the correct base and head refs. It returns the final PR URL.

What's the best way to apply a pull request template when opening a PR from a feature branch?

Applying a PR template is handled by a template-aware workflow that inspects your current branch and diff, discovers the repository template, and formats the body automatically to ensure compliance with repository standards.

Do I need GitHub CLI authentication to open a pull request with a template?

Yes, GitHub CLI authentication is required to open a pull request with a template. The workflow depends on gh CLI to handle upstream branch tracking, template discovery, and the final PR creation with correct head refs.

How does branch validation work before creating a pull request?

Branch validation checks the current branch status, upstream tracking, and push readiness before creating a pull request. It inspects the branch and diff to ensure your local development workflow is ready for PR creation.

Can I generate a concise PR body from branch context without manual formatting?

Yes, you can generate a concise PR body from branch context without manual formatting. The Skill builds the title and body automatically by applying template-aware formatting to your branch changes and diff.

Why does my pull request workflow fail when the upstream branch is not tracked?

Your pull request workflow fails because upstream branch handling requires proper tracking validation. The Skill checks upstream tracking and push readiness before attempting PR creation to prevent branch management errors.