pr-body

Generate GitHub pull request body content from gh commands and diff analysis.

1|Updated Jan 2, 2013
One-click install
npx skills add https://github.com/mkiken/SettingFiles --skill pr-body-mkiken
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-body
Source: https://github.com/mkiken/SettingFiles/tree/main/ai/claude/skills/pr-body
Command: npx skills add https://github.com/mkiken/SettingFiles --skill pr-body-mkiken

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of comprehensive PR body content, significantly reducing the time and effort required to craft detailed pull request messages.

Core Features & Use Cases

  • Automated PR Body Creation: Generates PR body content using GitHub commands and analysis of the pull request.
  • GitHub Integration: Uses gh commands to interact with GitHub repositories and pull requests.
  • Use Case: For a developer working on a pull request, this Skill automates the generation of a complete PR body by fetching the existing body and URL, analyzing the diff, and writing a new body in a structured format.

Quick Start

Generate a PR body for PR number 123 with the pr-body skill.

Frequently Asked Questions about pr-body

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

FAQPage Schema
How do I generate a GitHub pull request body automatically?

To generate a GitHub pull request body automatically, this Skill uses gh commands to fetch existing PR details and analyzes the diff to compose a structured PR body. It fetches the existing body and URL, analyzes the changes, and writes a new structured message.

How does code review automation work with GitHub API and diff analysis?

Code review automation using the GitHub API works by executing gh commands to retrieve pull request details and analyzing the code diff to extract meaningful changes. This process automates the extraction of relevant information to compose a comprehensive PR body.

Do I need the gh CLI tool installed to automate PR body creation?

Yes, you need the gh command-line tool installed and configured to automate PR body creation. The Skill requires access to the GitHub API through gh commands to interact with repositories, fetch pull request details, and analyze diffs.

Can I use this to write a structured PR body for an existing pull request?

Yes, you can use this to write a structured PR body for an existing pull request. It fetches the current body and URL using GitHub commands, analyzes the diff, and overwrites the existing content with a newly generated, structured PR body.

What's the best way to streamline pull request message composition for GitHub?

The best way to streamline pull request message composition for GitHub is to automate the generation using gh commands and diff analysis. This approach fetches PR details directly from the repository and formats them into a complete, structured message, significantly reducing manual effort.

Are there limitations when using gh commands to fetch PR details and analyze diffs?

Limitations when using gh commands to fetch PR details include requiring proper GitHub API authentication and access to the repository. The diff analysis relies on the output of these commands, so any API rate limits or access restrictions will impact the PR body generation process.