一键导入
merge-pr
Workflow for rebasing and merging a local branch to main via a GitHub Pull Request.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Workflow for rebasing and merging a local branch to main via a GitHub Pull Request.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run comprehensive Rust code quality checks including compilation, linting, documentation, and tests. Use after completing code changes and before creating commits.
Enforce the "Clean Imports over Inline Absolute Paths" rule by removing inline crate:: prefixes and adding proper use statements.
Rules and guidelines for creating well-formatted commit messages, including 72-char limits, scope prefixes, and trailer blocks for tasks, PR closing, and attribution.
Zero-allocation string building strategies. Use when formatting strings, generating ANSI codes, or writing hot loops to avoid heap allocations and Formatter state machine overhead.
Run clippy linting, enforce comment punctuation rules, format code with cargo fmt, and verify module organization patterns. Use after code changes and before creating commits.
Standard for writing structured tracing logs behind debug flags.
| name | merge-pr |
| description | Workflow for rebasing and merging a local branch to main via a GitHub Pull Request. |
This skill codifies the workflow for taking a completed local task branch, pushing it to GitHub, creating a Pull Request, and merging it via rebase.
Use this skill when the user asks to "close the pr by rebasing and merging to main" or explicitly invokes /merge-pr.
git push -f origin HEAD. We use -f because local commits are frequently amended during code reviews.gh pr merge --rebase --delete-branch.git checkout main.git pull.git fetch --prune.git branch -D <branch-name>.