draft-pr

Create a pull request with Problem and Solution sections using git and GitHub CLI.

2|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/Integralist/agent-skills --skill draft-pr-integralist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: draft-pr
Source: https://github.com/Integralist/agent-skills/tree/main/.agents/skills/draft-pr
Command: npx skills add https://github.com/Integralist/agent-skills --skill draft-pr-integralist

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation of clear, direct pull requests by guiding users through a structured format that includes a Problem and Solution section.

Core Features & Use Cases

  • Structured PR Description: Guides users to create PR descriptions that detail the Problem and Solution, ensuring clarity and completeness.
  • Automated Branch Checks: Checks if the user is in a valid git branch and if an open PR already exists for the branch.
  • Base Branch Determination: Automatically determines the base branch for the PR, with options for manual confirmation.
  • PR Creation: Automates the process of creating the PR with the specified title and description.
  • Use Case: Ideal for developers who want to quickly draft a PR with a clear purpose and avoid common mistakes in PR descriptions.

Quick Start

Use the draft-pr skill to create a new pull request with a concise Problem and Solution for the current branch.

Frequently Asked Questions about draft-pr

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

FAQPage Schema
How do I create a GitHub pull request with a structured Problem and Solution description?

To create a GitHub pull request with a structured Problem and Solution description, this Skill automates branch validation, determines the base branch, and uses the GitHub CLI to draft the PR. It ensures your PR clearly defines the problem and its solution.

What is the best way to automate pull request creation from the command line?

Automating pull request creation from the command line is handled by this Skill using git and GitHub CLI commands. It checks your current branch, determines the base branch, and generates a concise PR with a structured description.

Do I need the GitHub CLI installed to draft a pull request with this tool?

Yes, you need both git and the GitHub CLI installed to draft a pull request with this tool. The Skill relies on these dependencies to validate your branch, determine the base branch, and create the PR using GitHub API commands.

How does this approach handle existing open pull requests for the current branch?

Handling existing open pull requests for the current branch is built into the process. The Skill performs automated branch checks to determine if an open PR already exists before attempting to create a new one, preventing duplicates.

Can I manually confirm the base branch when creating a pull request?

Yes, you can manually confirm the base branch when creating a pull request. While the Skill automatically determines the base branch for your PR, it provides options for manual confirmation to ensure accuracy before submission.