bms:draft-pr

Create draft pull requests with summaries and PR templates via GitHub CLI.

68|14|Updated Dec 21, 2017
One-click install
npx skills add https://github.com/benmatselby/dotfiles --skill bms-draft-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bms:draft-pr
Source: https://github.com/benmatselby/dotfiles/tree/main/agents/skills/draft-pr
Command: npx skills add https://github.com/benmatselby/dotfiles --skill bms-draft-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Draft pull requests for the current branch can be tedious and error-prone; this Skill automates creating a draft PR with a clear summary and proper PR template.

Core Features & Use Cases

  • Drafts a PR: Generates a descriptive, well-formatted draft PR body.
  • Template alignment: Fills in any PR templates if present in the repository.
  • Use Case: On a feature branch with multiple commits, this Skill creates a draft PR ready for review.

Quick Start

Propose a draft PR by invoking the Skill on your current feature branch to produce a draft ready-to-push.

Frequently Asked Questions about bms:draft-pr

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

FAQPage Schema
How do I automatically create a draft pull request with a completed PR template?

To create a draft pull request automatically, this Skill gathers your branch diffs and commit messages, detects any existing PR template, and uses the GitHub CLI to generate a well-structured draft PR body ready for review.

How does draft pull request automation work with existing GitHub PR templates?

Draft pull request automation works by scanning your repository for an existing PR template and structuring the generated summary body to fill in that template, ensuring the automated draft PR aligns with your project's formatting requirements.

What are the prerequisites for automating draft PR creation on a feature branch?

The prerequisites for automating draft PR creation are a non-main feature branch with commits ahead of the base branch and the GitHub CLI installed, as the Skill checks for these conditions before generating the draft pull request.

Can I use the GitHub CLI to generate a draft PR summary from multiple commits?

Yes, you can use this Skill with the GitHub CLI to generate a draft PR summary from multiple commits; it gathers all commit messages and diffs ahead of the base branch to produce a descriptive draft pull request body.

Why is my automated draft pull request not generating on the main branch?

Your automated draft pull request is not generating on the main branch because the Skill implements prerequisite checks that restrict draft PR creation to non-main feature branches with commits ahead of the base branch.

What is the best way to automate drafting a pull request from a feature branch?

The best way to automate drafting a pull request from a feature branch is using this Skill, which checks prerequisites, gathers branch diffs, detects PR templates, and uses the GitHub CLI to create the draft PR.