pr

Generate structured GitHub pull requests from branch diffs and commit history.

2|1|Updated Jan 10, 2024
One-click install
npx skills add https://github.com/phalanx-hk/dotfiles --skill pr-phalanx-hk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr
Source: https://github.com/phalanx-hk/dotfiles/tree/main/config/agent/skills/pr
Command: npx skills add https://github.com/phalanx-hk/dotfiles --skill pr-phalanx-hk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Automates the process of generating well-structured pull requests from feature branches, reducing manual effort and ensuring consistent communication.

Core Features & Use Cases

  • Branch Analysis: Checks current branch status, verifies branch naming conventions, and identifies uncommitted changes.
  • Diff and Commit Review: Analyzes commits and diffs to determine change scope and impact, assisting in drafting meaningful PR titles and descriptions.
  • PR Creation Automation: Generates PR titles and bodies based on conventional commit standards, and optionally creates draft PRs for incomplete features.
  • Use Case: A developer completes a feature on a feature branch and wants to open a clear, standardized PR for review and merging.

Quick Start

Use the pr skill to automatically generate a pull request for your current feature branch on GitHub.

Frequently Asked Questions about pr

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

FAQPage Schema
How do I automate GitHub pull request creation from a Git branch?

Automating GitHub pull request creation involves analyzing branch differences and commit history to generate structured PRs. This ensures consistent titles and descriptions based on conventional commit standards, streamlining code review workflows.

How does branch analysis help draft a better pull request?

Branch analysis improves pull requests by checking branch status, verifying naming conventions, and identifying uncommitted changes. Reviewing diffs and commits determines the change scope, assisting in drafting meaningful PR titles and descriptions for efficient collaboration.

Can I create a draft PR for an incomplete feature branch?

You can create a draft PR for incomplete features by automating PR creation with a draft option. This allows developers to open clear, standardized PRs for early review while signaling that the feature branch still requires further development before merging.

Does this PR automation tool work with conventional commit standards?

PR automation works directly with conventional commit standards by analyzing commit history and diffs. It automatically generates standardized PR titles and bodies based on these conventions, ensuring consistent communication and well-structured pull requests for code reviews.

What's the best way to ensure consistent PR titles and descriptions for code reviews?

Ensuring consistent PR titles and descriptions for code reviews is best achieved by automating PR creation from Git branches. Analyzing branch differences and commit history generates standardized content based on conventional commit standards, reducing manual effort and standardizing communication.