Use when a user asks to create or update a GitHub pull request; detect existing PR for the branch, generate a dense structured PR body from branch changes, and apply it via gh.
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Use when a user asks to create or update a GitHub pull request; detect existing PR for the branch, generate a dense structured PR body from branch changes, and apply it via gh.
metadata
{"short-description":"Create or update GitHub PRs with structured descriptions"}
Create or Update PR
Create or update a pull request with the GitHub CLI (gh).
Inputs
repo: repository path (default .)
base: base branch for comparison (default master, fallback main if needed)
optional title/body hints from user
Quick start
Capture the branch diff and diff stat.
git diff <base>...HEAD --stat > /tmp/pr.diffstat
git diff <base>...HEAD > /tmp/pr.diff
Use the installed summarizer helper when you need compact structure instead of raw diff context.
gh-manage-pr-summarize /tmp/pr.diffstat
Run the summarizer and use the JSON output plus assets/pr-body-template.md to draft the PR body.
gh-manage-pr-summarize /tmp/pr.diffstat
Workflow
Resolve PR context.
Check whether a PR already exists for the current branch: