一键导入
create-pr
Create PR — commit, push, PR, wait for merge.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create PR — commit, push, PR, wait for merge.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when cataloging a repository's externally observable capabilities as end-to-end scenarios and driving them through test, fix, and re-test until verified
Use when explicitly asked to "handoff", "인수인계", or "write a handoff" to preserve context for the next session.
Use when setting up Claude Code global configuration on a new machine — CLAUDE.md, settings.json, statusline.sh, worktree configuration
Use Jira through a slim Atlassian MCP facade for issue lookup, triage, creation, comments, and lightweight status reporting.
Use when writing, reviewing, or improving PRDs, product requirements documents, product specs, feature requirements, launch requirements, or product discovery writeups before product or engineering work begins.
Use when writing, reviewing, or improving RFCs, requests for comments, technical design docs, architecture proposals, engineering decision records, API proposals, migration plans, or cross-team technical decisions.
| name | create-pr |
| description | Create PR — commit, push, PR, wait for merge. |
Execute each line literally (scripts MUST be run, not reimplemented):
S="${CLAUDE_PLUGIN_ROOT}/skills/create-pr/scripts"
# If on main/master: checkout -b <type>/<short> first
"$S/preflight-check.sh" # syncs if behind base
git add <files> && git commit -m "type(scope): msg"
git push -u origin HEAD
gh pr create --title "$(git log -1 --pretty=%s)" --body "<body>"
# Auto merge: only if user explicitly requests it
# gh pr merge --auto --squash
# REQUIRED: invoke via Monitor tool — streams per-check events + terminal event.
# Monitor({command: "\"$S/wait-for-merge.sh\"", description: "PR checks", timeout_ms: 1800000, persistent: false})
If user requests auto merge: gh pr merge --auto --squash → invoke "$S/wait-for-merge.sh"
via the Monitor tool. Each check: <name>: <bucket> line streams as a notification; the
terminal event has one of these prefixes — branch on it:
MERGED: → doneAWAITING_REVIEW: → CI green, needs reviewerCI_FAILED: <url> run-id=<id> → gh run view <run-id> --log-failed → fix the failure once →
re-enable gh pr merge --auto --squash → re-invoke Monitor. Stop if unclear or still failing.CLOSED: → stop.PR body: fill PR template if exists, else summary+changes+tests.