一键导入
update-pr
Update the current PR description based on the latest changes in context.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update the current PR description based on the latest changes in context.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Autonomously create a plan, consult Gemini and Codex for improvements, apply feedback, and implement. No user interaction - uses best judgment throughout.
Turn an idea into a concrete design through structured dialogue.
Gemini and Codex collaboratively brainstorm solutions, building on each other's ideas across rounds. Agent synthesizes the best ideas into a plan.
Claude brainstorms with an opponent LLM (Gemini or Codex) in alternating turns, building on each other's ideas. Synthesizes the best ideas into a plan.
Commit the staged changes. If there are no staged changes, stage all changes first.
Consult Gemini and Codex for high-level planning, synthesize into a detailed plan, implement, then get final review. No user interaction.
| name | update-pr |
| description | Update the current PR description based on the latest changes in context. |
| allowed-tools | Read, Bash, Glob, Grep, Edit |
| disable-model-invocation | true |
Update the current PR description to reflect the latest changes made in this session.
Get the current PR body and write to a temp file, stripping Windows line endings:
gh pr view --json body --jq '.body' | tr -d '\r' | tee /tmp/pr-body.md > /dev/null
NOTE: Use tee instead of > to avoid zsh noclobber errors when the
file already exists. The >| operator also doesn't work in the Bash tool's
eval context.
Gather context about recent changes:
git diff origin/main...HEADgit log origin/main...HEAD --format="%s"Use the Edit tool to make incremental changes to the temp file:
Update the PR with the edited description:
gh pr edit --body-file /tmp/pr-body.md
IMPORTANT: Use the context of the current conversation to inform the updates. The discussion, decisions, and work done in this session provide valuable context for explaining what changed and why.
IMPORTANT: Preserve the existing PR template structure. Only update the content within the sections, don't remove or restructure sections unless specifically asked.
CRITICAL: Always use the Edit tool to make changes to the PR description file. Never rewrite the entire file - make incremental edits so the user can see diffs.