update-pr-description

Solid

Generate a PR description from the current branch's changes against a GitHub PR, using the gh CLI. Use when writing, drafting, or updating pull request descriptions, PR summaries, or PR bodies. Does not review code or post review comments — use code-review for local review or post-code-review-to-pr for posting a review to GitHub.

Code & Development 126 stars 13 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
70
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

## Pre-requisites - gh CLI: !`which gh 2>/dev/null || echo "not installed"` **If the gh CLI is not found:** - Inform the user that it needs to be installed and configured before this skill can be used - **Immediately stop** execution of this skill, as it cannot be executed ## Project Context - current branch: !`git branch --show-current 2>/dev/null || echo unknown` - default branch: !`git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null || echo unknown` - branch summary: !`git log origin/HEAD..HEAD --oneline 2>/dev/null || echo unknown` - branch stats: !`git diff origin/HEAD...HEAD --stat 2>/dev/null || echo unknown` - branch changes: !`git diff origin/HEAD...HEAD 2>/dev/null || echo unknown` ## Step 1: Validate Branch State Before generating a PR description, verify the branch has content to describe: 1. **If `default branch` is empty or `unknown`** — `origin/HEAD` is not set. Use `AskUserQuestion` to ask the user for the default branch name (e.g., `main`, `master`, `develop`). Use that branch as the base for all git commands in subsequent steps, and recompute `branch summary`, `branch stats`, and `branch changes` against it — their Project Context values may read `unknown` because they were derived from the unset `origin/HEAD`. 2. **If `branch summary` is empty** — there are no commits on this branch relative to the default branch. Inform the user and stop. 3. **If `branch stats` is empty** — there are no file changes despite having commits (e.g., empty co...

Details

Author
testdouble
Repository
testdouble/han
Created
2 months ago
Last Updated
2 days ago
Language
Shell
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category