update-pr
Update current branch's PR with appropriate title, description, and labels.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Update current branch's PR with appropriate title, description, and labels.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | update-pr |
| description | Update current branch's PR with appropriate title, description, and labels. |
Analyze a pull request and update it with appropriate title, description, and labels.
<owner/repo> - Repository in owner/repo format (e.g., lifeistech/dtp-career-journey-backend)<pr-number> - PR number (e.g., 87)Examples:
/update-pr - Update current branch's PR/update-pr 87 - Update PR #87 in current repo/update-pr lifeistech/dtp-career-journey-backend 87 - Update PR #87 in specified repoCheck if arguments were provided:
owner/repo, second is PR numberSet variables:
REPO_FLAG: empty or -R <owner/repo>PR_NUMBER: empty (for current branch) or the specified numberRun these commands to understand the PR context:
If using current branch (no PR number specified):
git branch --show-current
gh pr view --json number,title,body,labels,baseRefName,headRefName
If PR number is specified:
gh pr view <PR_NUMBER> $REPO_FLAG --json number,title,body,labels,baseRefName,headRefName
Then get the diff:
gh pr diff <PR_NUMBER> $REPO_FLAG
Based on the gathered information:
<type>: <concise description>
Types:
feat: New featurefix: Bug fixdocs: Documentation changesstyle: Code style/formatting changesrefactor: Code refactoringperf: Performance improvementstest: Test additions or modificationschore: Build/tooling changesRules for title:
## Summary
<Brief 1-2 sentence overview of what this PR does>
## Changes
- <Bullet points of key changes>
- <Be specific about what was modified/added/removed>
## Test Plan
- <How to verify these changes work>
- <Any manual testing steps if applicable>
Select appropriate labels based on the changes. Common labels:
enhancement - New features or improvementsbug - Bug fixesdocumentation - Documentation updatesrefactor - Code refactoringbreaking-change - Breaking changesdependencies - Dependency updatesUse the gh CLI to update the PR:
If using current branch:
gh pr edit --title "<new title>" --body "<new body>"
gh pr edit --add-label "<label1>,<label2>"
If PR number is specified:
gh pr edit <PR_NUMBER> $REPO_FLAG --title "<new title>" --body "<new body>"
gh pr edit <PR_NUMBER> $REPO_FLAG --add-label "<label1>,<label2>"
After updating, display:
If the PR update fails (e.g., no PR exists for current branch), inform the user and suggest creating a PR first with gh pr create.
Review the current branch's PR diff using a separate Claude Code agent and post inline comments via GitHub API. Optionally auto-fix findings.
Set up Cloudflare Turnstile end-to-end in a project — scan the codebase, create the widget via the Cloudflare API, deploy the managed siteverify Worker, write the frontend snippets, validate, and persist the skill. Load this when a user asks to add Turnstile, set up CAPTCHA, protect a form from bots, or fix a Turnstile integration. Mirrors developers.cloudflare.com/turnstile/spin.
Address code review comments from Copilot and other bots on the current branch's PR. Implements fixes if needed, commits, pushes, and replies to each comment.
Bundle dependabot PRs into a single PR and create a PR to master.
Generate commit message in Japanese from git diff.
Generate commit message in English from git diff.