generate-pr-description

Installation
SKILL.md

Generate PR Description

Generate a concise pull request description by analyzing git changes and using the project's PR template.

Language: Always generate PR titles and descriptions in English, regardless of the user's language or the language of commit messages.

Workflow

  1. Identify parent branch

    • Check current branch: git rev-parse --abbrev-ref HEAD
    • Determine parent (usually main or master): git show-branch | grep '*' | grep -v "$(git rev-parse --abbrev-ref HEAD)" | head -1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//'
    • Or use: git merge-base HEAD main to find common ancestor
  2. Analyze changes

    • Get diff stats: git diff --stat <parent-branch>..HEAD
    • Get commit messages: git log --oneline <parent-branch>..HEAD
    • Get file changes: git diff --name-status <parent-branch>..HEAD
  3. Generate semantic commit title

Related skills
Installs
28
First Seen
Feb 24, 2026