github-pr-description

Generate pull request descriptions from git diffs and create PRs via GitHub CLI.

Updated Aug 19, 2026
One-click install
npx skills add https://github.com/swcstudiospace/aimeecodes --skill github-pr-description-swcstudiospace
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-pr-description
Source: https://github.com/swcstudiospace/aimeecodes/tree/main/crates/aimee_repo/src/skills/github-pr-description
Command: npx skills add https://github.com/swcstudiospace/aimeecodes --skill github-pr-description-swcstudiospace

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing thorough pull request descriptions is time-consuming, and reviewers often receive empty or vague PRs that slow down code review. This Skill analyzes your branch's commits and diff to produce a structured, reviewer-friendly description and creates the PR automatically. ## Core Features & Use Cases - Automated Change Analysis: Inspects commit history and git diff against the base branch to understand what changed and why. - Structured Description Generation: Produces descriptions with Summary, Context, Changes, Testing steps, and Links, classified by change type (fix, feature, performance, refactor, docs, test, chore). - One-Command PR Creation: Writes the description to a temp file and creates the PR using the pre-authenticated GitHub CLI (gh pr create). - Use Case: After finishing a feature branch with several commits, ask for a PR and receive a complete description with testing instructions and related issue links, submitted to GitHub in one step. ## Quick Start Create a pull request for my current branch with a full description of the changes.

Frequently Asked Questions about github-pr-description

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

FAQPage Schema
How do I create a GitHub pull request from the command line?▼

Use the GitHub CLI with `gh pr create --title "Title" --body-file description.md` after writing your description to a file. The gh CLI must be installed and authenticated, which this workflow assumes is already configured.

How to generate a PR description from git commits automatically?▼

Analyze the commits and diff between your branch and the base branch using `git log origin/main..HEAD` and `git diff origin/main..HEAD`, then classify the change type and structure the findings into summary, context, changes, and testing sections.

What should a good pull request description include?▼

A good PR description includes a one-sentence summary, context explaining why the change was needed, a high-level list of changes, and step-by-step testing instructions. Optional additions are implementation details, use cases, and links to related issues.

Does gh pr create work on the main branch?▼

No, you cannot create a PR from main or master, and there must be commits ahead of the base branch. The workflow verifies the current branch and commit count first and reports when there is nothing to submit.

How are large diffs handled when writing PR descriptions?▼

For large diffs, the approach samples key files rather than reading everything, focusing on the most meaningful changes. Descriptions stay high-level and avoid file-by-file breakdowns unless necessary.