一键导入
create-or-update-pr
Update the existing PR for the current branch when one exists, otherwise create a draft PR from git diff
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update the existing PR for the current branch when one exists, otherwise create a draft PR from git diff
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | create-or-update-pr |
| description | Update the existing PR for the current branch when one exists, otherwise create a draft PR from git diff |
| argument-hint | Optional: say if unstaged changes should be included |
Use for PR metadata create/update. If current branch already has an open PR, update it. No duplicate PR.
git: inspect branch/remote/default branch, create or switch branch, diff, push current branchgh: detect PR, read PR body, create draft PR, update title/bodyRules:
rtk <cmd> via the bash tool, never raw command; git status = bad, rtk git status = good.Workflow:
origin if safefeat|fix|refactor|docs|chore|test|ci|perf/<slug> unless repo says otherwiseyes, create/switch, say committed changes are still required, then stopgit diff <remote>/<default-branch>...HEADMetadata:
## ChangesSummary, Testing, or other sections^(feat|fix|refactor|chore|docs|test|ci|perf)(\([a-z0-9._/-]+\))?: [a-z0-9][a-z0-9 -]{0,69}$## Changes with 3-8 bulletsDry Run:
Type 'continue' to apply, anything else to cancel.Apply:
Apply only if next reply is exactly continue:
git diff <remote>/<default-branch>...HEADgh.
Existing PR: If PR exists:
New PR: If PR does not exist:
Audit staged, unstaged, or file-scoped changes for bugs, risks, and minimal risk-reducing fixes
Generate and optionally apply a Conventional Commit from staged changes
Debug a bug from an entrypoint or symptom, prove root cause, propose a minimal patch
Propose minimal, safe code improvements without changing behavior
Group current changes into multiple commitlint-compliant commits and apply on confirmation