pr-creator
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "pr-creator":https://skillpi.com/zh/skills/deepskill-f91c9ef9fb99a98a092a96ffba3b9a75f49dab60752a020a65b22e02693aa9b9。安装前核对上游来源和版本:https://github.com/mblode/agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
创建或更新 GitHub PR,包括符合内部风格的标题和正文、问题链接、仓库模板以及草稿状态。将在用户请求“创建一个 PR”、“重写 PR 描述”或“润色此 PR”时使用。针对代码修复请使用 tidy;CI 和审查线程请使用 pr-babysitter;npm 发布请使用 autoship。
介绍来源: third_party · mblode · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: pr-creator
description: Creates or updates GitHub PRs with house-style titles and bodies, issue linking, repository templates, and draft state. Use when asked to "create a PR", "rewrite the PR description", or "polish this PR". For code fixes use tidy; for CI and review threads use pr-babysitter; for npm releases use autoship.
compatibility: Requires Git and authenticated GitHub access. The documented command workflow uses GitHub CLI.pr-creator
Write PR descriptions like a developer posting in Slack, not an AI summarizing a diff.
- IS: creating or updating a GitHub PR's title, body, draft state, and reviewers, plus the commit restructuring and review path that make a large diff readable.
- IS NOT: changing the code in the diff (use
tidy), reviewing it for bugs (usepr-reviewer), watching CI and review comments after the PR exists (usepr-babysitter), or cutting npm releases (useautoship).
Reference Files
| File | Read When |
|---|---|
references/pr-polish.md |
Commits contain fixup, WIP, or "address review" noise, the diff exceeds 500 lines, or the user asks to polish, restructure, squash, or split the PR |
Workflow
Copy this checklist to track progress:
PR creation progress:
- [ ] Inspect the current branch and diff against the existing PR base, or the discovered default branch merge-base
- [ ] Existing PR? gh pr view --json url,state,isDraft (state OPEN means edit, not create)
- [ ] Linear ID from branch, commits, prompt, or issue link; no ID means no prefix
- [ ] Noisy commits or a >500-line diff? references/pr-polish.md, before pushing
- [ ] PR template present? Read it (paths under Templates)
- [ ] Draft title and body against Rules and Anti-patterns
- [ ] git push -u origin HEAD
- [ ] gh pr create (or gh pr edit); then gh pr view --json url,title and return the URL
Do not ask the user to approve the description first; the point is speed. They can ask for a rewrite and you run gh pr edit.
Rules
- Title. With a Linear ID:
ABC-123: Add auth flow. Without one:Add auth flow. Under 60 characters, no trailing period. If the repo lints PR titles (asemantic-pull-requestor commitlint workflow under.github/workflows/), use its shape and put the ID at the end:feat: add auth flow (ABC-123). Linear links on the ID wherever it sits in the title. - Body. One short paragraph: what changed and why it matters. Length follows the change; a one-line body is fine for a one-line fix.
- No fake why. If the reason is not in the prompt, the Linear issue, the branch, the commits, or the diff, leave it out rather than inventing one.
- Risk only when real. One
Risk:line for migrations, billing, auth, permissions, irreversible writes, wide blast radius, or a subtle behavior change. Otherwise nothing. - Testing only if real. Say what you ran only if you ran it. Never a
Test plansection, never checkboxes. - Partial work. If this PR does not finish the Linear issue, keep the ID out of the title and write
Part of ABC-123in the body. Linear's default automation moves a linked issue to Done when the PR merges; the non-closing magic word links without closing. - Draft and reviewers only when asked.
--draftfor "draft" or "WIP";gh pr readypromotes it later,gh pr ready --undodemotes.--reviewer alice,org/teamonly for people the user named; CODEOWNERS already requests owners. - Stop after the useful content. The harness's
attributionsetting owns the PR footer (Generated with Claude Code, session link). Never hand-write one, and never strip one the harness or a repo policy appends. Everything above the footer is this skill's; its one-paragraph body replaces the harness's defaultSummaryandTest plansections.
Anti-patterns: never write these
- Openers that narrate the artifact: "This PR implements...", "This change ensures...", "This commit introduces..."
- Changelog verbs with no reason attached: "Refactored X to improve Y", "Updated Z to handle...", "Added comprehensive test coverage for..."
- Lines that start with a filename or path; the diff already lists the files
- A
Test plansection with checkboxes - A bullet list that restates the diff
Examples
Feature (ABC-123 is the real Linear ID)
Title: ABC-123: Add auth flow with session management
Adds the auth flow needed for session-based login, including refresh, timeout handling, and a small error boundary for auth failures.
Bugfix (real risk, real testing)
Title: PAY-482: Dedupe Stripe webhook retries
Stripe retries webhooks on timeout and our handler wasn't idempotent, so retried events created duplicate invoices. Now we record processed event IDs and skip repeats. Tested by replaying a captured retry sequence locally.
Risk: touches the billing write path.
Chore (no Linear ID, no why beyond the diff)
Title: Bump eslint to 9 and fix the new no-unused-vars hits
Bumps eslint to 9. The only code change is removing three unused imports it now flags.
The first two carry the real why from the commits and stop. Risk: earns its line in the second because the diff touches billing writes; the testing sentence is there only because a replay actually ran. The third has no deeper why, so it does not pretend to.
Templates
GitHub reads the first match of pull_request_template.md (case-insensitive) in .github/, the repo root, or docs/, or a PULL_REQUEST_TEMPLATE/ directory in any of those for multiple templates. gh pr create --body skips the template entirely, so when one exists, read it and write the body in its shape: keep its headings, answer each in a sentence or two, and put the one-paragraph description under the first heading. Add nothing the template does not ask for.
Creating the PR
Write the exact body to a temporary file with the file tool, then pass its path through --body-file. The examples use /tmp/pr-body.md; choose a task-specific temporary path during execution.
No PR yet: create
git push -u origin HEAD # when creating a PR for local commits
gh pr create --title "ABC-123: Add auth flow" --body-file /tmp/pr-body.md
gh pr view --json url,title # evidence the PR exists; return the url
Add --draft or --reviewer here when Rule 7 applies. --base only when the target is not the default branch.
PR already open: update title and body
gh pr edit overwrites the title and body wholesale, so draft the full replacement, not a patch. Same rules and anti-patterns apply.
# A metadata-only edit does not push local commits.
gh pr edit --title "ABC-123: Add auth flow" --body-file /tmp/pr-body.md
gh pr view --json url,title # confirm the update; return the url
Gotchas
gh pr createon a branch with no upstream: in a TTY it blocks on a "Where should we push?" prompt; from a non-interactive harness it aborts withyou must first push the current branch to a remote, or use the --head flag. Either way,git push -u origin HEADfirst.- Non-interactive
gh pr createneeds both--titleand--body(or--fill); without them it exits withmust provide --title and --body (or --fill) when not running interactively.--fillcopies commit messages verbatim, which is exactly the changelog body this skill exists to avoid. - Quote the heredoc delimiter (
<<'EOF'). Unquoted<<EOFlets the shell expand backticks and$varsin the body, corrupting the description or running commands. - Two different failures look alike: on the default branch,
gh pr createaborts withmust be on a branch named differently than "main"; on a branch with nothing new against the base it fails withNo commits between main and <branch>. The first needs a branch, the second a commit. - A branch with an open PR fails
gh pr createwitha pull request for branch ... into branch main already exists.gh pr view --json statefirst;OPENmeansgh pr edit. AMERGEDorCLOSEDresult is a stale PR, so create a new one. - Derive the Linear ID from the branch, uppercased: Linear's default branch format is
username/abc-123-title-slug, somblode/abc-123-add-authgivesABC-123. Never guess an ID: Linear links the PR to whatever ID the title contains, and a wrong one moves someone else's issue. - Plain
git diffomits committed changes. Use the actual PR base with three-dot diff; do not assumemain, especially for stacked PRs. - Restructure commits before the first push. Force-pushing a rewritten branch under an open PR marks existing inline comments "outdated" and the reviewer loses their thread.
Related skills
pr-reviewer: run before creating to check the diff for bugs.tidy: applies fixes to the code in the diff; this skill edits only the PR and its commits.pr-babysitter: hand off after creation to watch CI, conflicts, and review comments.autoship: npm release pipeline (changesets, version PR, publish); "ship it" without release context routes here instead.
Maintenance only: evals/evals.json contains regression scenarios for changes to this skill; it does not load during a user task.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 直接解决开发者日常高频核心任务痛点(GitHub PR 创建和更新)
- 提供标准化、自动化的 PR 描述生成和提交流程,显著提升开发效率
- 明确区分了与其他相关 Skill 的职责边界,避免功能重叠
亮点
- 触发词精准完整,覆盖多种变体(“创建一个 PR”、“重写 PR 描述”、“润色此 PR”)
- 边界清晰,明确界定了与其他相关 Skill 的使用场景
亮点
- Workflow 提供了清晰的检查清单,便于用户跟踪进度
- Rules 和 Anti-patterns 详细且实用,指导用户编写高质量的 PR 描述
- Examples 覆盖多种场景(Feature、Bugfix、Chore),并提供最佳实践
亮点
- 工具来源明确(GitHub CLI),参数使用正确
- Gotchas 部分详细列出了常见错误和解决方案,覆盖主要异常情况
- 对不可逆操作(如 gh pr edit)有明确说明和注意事项
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。