一键导入
github-create-pr
Creates a pull request on GitHub with proper labels, branch naming, and description formatting. Use when changes are ready to be submitted as a PR.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Creates a pull request on GitHub with proper labels, branch naming, and description formatting. Use when changes are ready to be submitted as a PR.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Create a well-formed git commit from current changes using session history for rationale and summary; use when asked to commit, prepare a commit message, or finalize staged work.
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/PRD asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".
Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions; use `gh` to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treat external providers (for example Buildkite) as out of scope and report only the details URL.
Land a PR by monitoring conflicts, resolving them, waiting for checks, and squash-merging when green; use when asked to land, merge, or shepherd a PR to completion.
| name | github-create-pr |
| description | Creates a pull request on GitHub with proper labels, branch naming, and description formatting. Use when changes are ready to be submitted as a PR. |
Critical constraints:
gh pr createSame convention as commit subjects: area: imperative summary, lowercase
after the colon, ≤72 chars. Area = the package, directory, or subsystem
touched. Omit the prefix only when the change is genuinely cross-cutting.
Examples: terminal: fix viewport pin during resize reflow,
macos: avoid notification publisher retain cycle.
Read .github/pull_request_template.md if it exists, for the required
sections, then fill them in. Otherwise write free prose.
Writing rules:
## Demo heading for UI changes, an inline repro or verification
script for bug fixes, numbers for perf claims.> [!NOTE]): what this PR
deliberately does not do, with follow-up issues filed.Fixes #NNN when closing one, Related to #NNN otherwise.Good:
Embedders that render text outside the terminal grid need to predict how many cells a codepoint will occupy. The immediate motivation is IME preedit overlay rendering: measuring preedit text with font APIs can disagree with the terminal's unicode table, causing the overlay to jump when the composed text commits.
This exposes the exact width table the print path already uses, so overlays are column-accurate by construction.
Bad (lists every change):
- Added
heightparameter to signature- Updated layout config dataclass
- Added validation for height values
- Added unit tests
Write complete PR details to /tmp/pr_description.md:
---
title: [PR title]
---
[PR description]
Create the PR automatically unless the user asks to verify it.
Read /tmp/pr_description.md to get the (potentially edited) title, labels, and description:
# Parse frontmatter from the reviewed file
title=$(grep '^title:' /tmp/pr_description.md | sed 's/^title: //')
labels=$(grep '^labels:' /tmp/pr_description.md | sed 's/^labels: //' | sed 's/, /,/g')
# Extract body (everything after the closing --- of frontmatter)
awk '/^---$/{if(++count==2) flag=1; next} flag' /tmp/pr_description.md > /tmp/pr_body.md
# Create PR using parsed values
gh pr create \
--title "$title" \
--body-file /tmp/pr_body.md \
--label "$labels"
# Clean up temporary files
rm /tmp/pr_description.md /tmp/pr_body.md