with one click
pr-update-desc
Update the PR description for the current branch
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Update the PR description for the current branch
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | pr-update-desc |
| description | Update the PR description for the current branch |
Use this skill when the user asks to run the migrated command pr-update-desc or invokes $pr-update-desc.
Regenerate and update the GitHub PR description for the current branch based on all commits in the PR.
Invoke the pr-style skill to load formatting conventions for the PR body.
Run a single combined command:
remote=$(git remote | head -1)
branch=$(git branch --show-current)
default_branch=$(git symbolic-ref refs/remotes/${remote}/HEAD 2>/dev/null | sed "s|refs/remotes/${remote}/||" || echo "main")
echo "remote=${remote} branch=${branch} default=${default_branch}"
gh pr view --json number,url,title,body --jq '"\(.number)|\(.title)|\(.url)"'
If no PR exists for the current branch, stop and report: "No open PR found for branch ${branch}."
Get all commits on this branch since it diverged from the default branch:
git log --oneline ${default_branch}..HEAD
Also get the full diff stat for a high-level summary of what changed:
git diff --stat ${default_branch}...HEAD
Follow the pr-style skill for body template and guidelines.
gh pr edit --body "<generated description>"
Use a HEREDOC to pass the body to preserve formatting:
gh pr edit --body "$(cat <<'EOF'
<generated description>
EOF
)"
Output:
✅ Updated PR #<number> description
<pr_url>