update-pr-body
Updates PR descriptions via GitHub REST API, avoiding CLI deprecation errors.
Install
mkdir -p .claude/skills/update-pr-body && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3007" && unzip -o skill.zip -d .claude/skills/update-pr-body && rm skill.zipInstalls to .claude/skills/update-pr-body
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Update the body of a GitHub pull request. Use when the user asks to update, edit, or modify a PR description/body.Key capabilities
- →Retrieve PR body content
- →Update PR body via REST API
- →Append content to existing descriptions
How it works
The skill uses the GitHub REST API to patch the PR body, bypassing GraphQL limitations associated with deprecated project features.
Inputs & outputs
When to use update-pr-body
- →Update PR description
- →Append test plans to PR
- →Edit release summaries in PRs
- →Sync PR body with latest changes
About this skill
Update GitHub PR Body
Important
Do NOT use gh pr edit --body - it fails with a GraphQL error about Projects (classic) deprecation. Always use the REST API approach below instead.
Instructions
When updating a GitHub PR body:
-
Get the current PR number (if not provided):
gh pr list --head "$(git branch --show-current)" --json number --jq '.[0].number' -
Get the current PR body to review existing content:
gh pr view <pr-number> --json body -q '.body' -
Update the PR body using the REST API:
gh api -X PATCH /repos/{owner}/{repo}/pulls/<pr-number> -f body="New PR body content here."
Examples
Get current PR number from branch:
gh pr list --head "$(git branch --show-current)" --json number,url --jq '.[0]'
View current PR body:
gh pr view 1372 --json body -q '.body'
Update PR body with new content:
gh api -X PATCH /repos/allenai/open-instruct/pulls/1372 -f body="## Summary
- Updated vllm to 0.13.0
- Fixed tool_grpo_fast.sh script
## Test Plan
- [x] Single GPU GRPO
- [x] Tool GRPO
- [x] Multi-node GRPO"
Add to existing body (read first, then append):
# Read the current PR body
CURRENT_BODY=$(gh pr view 1372 --json body -q '.body')
# Append new content
gh api -X PATCH /repos/allenai/open-instruct/pulls/1372 -f body="${CURRENT_BODY}
## Additional Notes
New content appended here."
When not to use it
- →Updating PRs using gh pr edit
- →Tasks unrelated to GitHub PR management
Prerequisites
Limitations
- →Requires appropriate GitHub permissions
- →Must use REST API instead of gh pr edit
How it compares
It uses a direct REST API call to avoid common GraphQL errors encountered with standard CLI tools.
Compared to similar skills
update-pr-body side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| update-pr-body (this skill) | 1 | 6mo | Review | Beginner |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| dependency-upgrade | 26 | 5mo | Review | Intermediate |
| git-commits | 21 | 4mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by allenai
View all by allenai →You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
git-commits
bonny
Create well-structured git commits in logical chunks following best practices
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
github-multi-repo
ruvnet
Multi-repository coordination, synchronization, and architecture management with AI swarm orchestration
git-workflow-enforcer
CrazyDubya
Ensures commits follow conventional commits, branch naming conventions, and PR templates. Use when creating commits, branches, or PRs, or when user mentions git workflow.