بنقرة واحدة
pr-update
Update the title and body of an existing pull request
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Update the title and body of an existing pull request
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create a Claude Code rule, skill, or agent — global (~/.claude) or project-local (.claude)
Code review using OpenAI Codex CLI with project context (rules, diff, conventions)
Multi-perspective code review from base branch with 3 independent reviewer agents
Analyze working tree changes, map to existing commits, and create fixup commits for autosquash
Analyze working tree changes, plan logically minimal NEW atomic commits per hunk (no fixup), and execute them
Review every commit message since base branch and add reword fixups where the message needs improvement (non-interactive)
| name | pr-update |
| disable-model-invocation | true |
| allowed-tools | Bash(git branch:*), Bash(git log:*), Bash(git diff:*), Bash(gh pr:*) |
| argument-hint | [PR_NUMBER] Optional PR number to update |
| description | Update the title and body of an existing pull request |
The user invoking /pr-update IS the explicit intent to update the PR — do NOT ask for approval.
!git branch --show-current
!gh pr view --json number,title,body,baseRefName,headRefName --jq '"\(.number) \(.headRefName) -> \(.baseRefName)\nTitle: \(.title)\nBody:\n\(.body)"' 2>/dev/null || echo "No PR found for current branch"
Target PR:
gh pr viewLanguage: Match the language of the existing PR title and body. Default to English if unclear.
Scope: Use only origin/<base>..HEAD diff for analysis.
Title: Concise summary of all changes (imperative mood)
Body: Explain WHY these changes were made, not just WHAT changed. Preserve existing structure if the body already follows a consistent format.
Line breaks: Do NOT insert hard line breaks in the middle of a sentence or paragraph. Write each paragraph as a single continuous line and let the renderer wrap it. Only break between paragraphs (blank line), at list items, or at headings. Never hard-wrap to a fixed column width.
Identify PR - Determine target PR number:
gh pr view --json number --jq '.number' to get PR for current branchFetch Current PR - Get current title, body, and base branch:
gh pr view <number> --json title,body,baseRefName,headRefName
Analyze Changes - Review commits and diffs from base branch:
git log --oneline origin/<base>..HEAD
git diff --stat origin/<base>..HEAD
Detect Language - Check the language of the existing PR title/body
Draft Update - Create updated title and body:
Title: <concise summary>
## Summary
- <bullet points of changes>
## Why
<explanation of WHY these changes were made>
## Test Plan
- [ ] <test items>
Update - Execute immediately, without asking for approval (the /pr-update invocation is the explicit permission). Pass the body via a HEREDOC to preserve formatting:
gh pr edit <number> --title "<title>" --body "<body>"
Present the PR URL to the user.
Identify the target PR (from argument or current branch), fetch current title and body, analyze commits, draft updated content, and update the PR immediately. Do NOT ask for approval — the /pr-update invocation is the explicit permission.