Token导航 LogoToken导航

Agent Skill · 开发

pr-creator(公关创作者)

pr-creator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

pr-creator 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 13,622。

总安装 861周安装 37GitHub Stars 公开资料未说明下载 302核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pr-creator(公关创作者)
来源仓库:https://github.com/b-mendoza/agent-skills
仓库路径:skills/pr-creator
安装命令:
npx skills add https://github.com/b-mendoza/agent-skills --skill pr-creator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/b-mendoza/agent-skills --skill pr-creator

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

自动化 Pull Request 创建流程,基于实际变更证据智能决策。读取 CODEOWNERS 与标签列表,选择合适 reviewers 与分类标签。提交前必须获得用户明确批准后方可触发平台 API 调用。严格遵循证据驱动原则,杜绝主观猜测式配置建议。

pr-creator 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/pr-creator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/b-mendoza/agent-skills --skill pr-creator;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

pr-creator 怎么安装?

在终端执行 npx skills add https://github.com/b-mendoza/agent-skills --skill pr-creator。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

pr-creator 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

pr-creator 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/b-mendoza/agent-skills --skill pr-creator 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

pr-creator 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

pr-creator 用的人多吗?

公开数据是累计安装 861 次,近一周安装 37 次,下载 302 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

pr-creator 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
pr-creator

公关创作者 · 本页

861—执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

PR Creator

<how_this_skill_works> You are the orchestrator of a user-in-the-loop PR creation workflow. Your role is:

  • Observe: read repo, branch, and platform state via direct git and platform CLI calls; read CODEOWNERS and the existing label list.
  • Decide: pick the conventional commit type, scope, reviewer set, and label set from real evidence — diff content, file ownership, and the actual repo label list.
  • Confirm: present a complete preview to the user and accept the most recent approved version exactly as approved.
  • Submit: invoke the platform's PR-create command after explicit approval, then verify and return the URL.

Inline by design: every observation feeds the user-confirmation loop one step later, so each result is consumed immediately rather than carried as ballast. The one carve-out is the full git diff payload (Phase 3), which is loaded only after the size gate passes — see Phase 3 for the ordering. </how_this_skill_works>

<platform_adaptation scope="cross-cutting"> The GitHub-only command blocks in Phases 2, 6, 8, and 9 assume a GitHub remote (GitHub Enterprise hosts follow the GitHub branch). When remote.origin.url points to a non-GitHub host, read ./references/platform-adaptation.md once at the end of Phase 1 and follow the matching platform branches for preflight/auth, labels, create, and verify. Load this reference only for non-GitHub remotes; GitHub and GHE skip it. </platform_adaptation>

<failure_handling scope="all-phases"> When the workflow cannot continue, halt and report the issue in exactly this format:

PR_CREATE: <CATEGORY>
Reason: <one line>
Next step: <one clear action>

<CATEGORY> is a closed enum:

  • AUTH — the platform CLI is missing, unauthenticated, or lacks permission
  • BASE_BRANCH_MISSING — the requested target branch does not exist remotely
  • HEAD_BRANCH_UNPUSHED — the source branch must be pushed before PR creation
  • EMPTY_DIFF — the source branch has nothing to compare against the target
  • CREATE_ERROR — the platform create command failed after confirmation

Every phase-level <hard_rule> that stops the workflow uses this exact envelope with one of these five categories. Use only categories from this enum; emit no free-form failure prose. </failure_handling>

Ask for any missing inputs during the workflow. `PR_STATE` defaults to `draft`; accepted values are `{draft, ready}`.

<branch_terminology> The original prose uses current branch, head branch, and source branch as synonyms for the branch the PR is being opened from. Preserve whichever term the surrounding command or field expects (<current_branch> in shell, Source: in the preview, --head on the CLI) instead of normalizing to a single term. </branch_terminology>

<output_contract> For GitHub remotes, finish with all of:

- A created PR URL (captured and returned).
- Final values for base branch, head branch, title, description, reviewers, labels, and PR state.
- A preview shown to the user and explicitly approved before `gh pr create`.

For non-GitHub remotes: detect the platform from `remote.origin.url`, read `./references/platform-adaptation.md`, and follow the matching create and verify flows before submitting anything.

Every field in the final reply must be populated; empty fields print `none`.

</output_contract>

Pipeline Overview

PhasePurposeGate to next phase
1Identify repo, platform, head branch, inputsPlatform detected; TARGET_BRANCH and PR_STATE known
2Preflight: auth, push state, base resolveAuth passes; head on remote with no commits ahead; target branch resolves
3Survey diff, size-gate, then load full diffDiff range non-empty; large-PR confirmation explicit if applicable
4Draft conventional-commit titleTitle produced (or TITLE_OVERRIDE applied exactly)
5Draft description grounded in diffDescription produced (or BODY_OVERRIDE applied exactly)
6Suggest reviewers (CODEOWNERS) and labels (gh label list)At least one reviewer attached
7Show preview and iterate until convergenceUser explicitly approves the most recent preview
8Create PR via platform CLICreate command returns success
9Verify created PR and return URLURL captured; base/head match the approved preview

git config --get remote.origin.url git rev-parse --abbrev-ref HEAD git status --short --branch

  </step>
  <step id="1.2" name="detect-platform-and-surface-state">
    Detect the hosting platform from `remote.origin.url`. GitHub Enterprise hosts follow the GitHub branch. If the working tree has uncommitted changes, tell the user those changes are not part of the PR until committed.
  </step>
  <step id="1.3" name="gather-missing-inputs">
    Ask for `TARGET_BRANCH` if it was not already supplied — never silently default it. If `PR_STATE` is supplied, confirm it is `draft` or `ready`; otherwise default to `draft`.
  </step>
  <step id="1.4" name="load-platform-adaptation-if-needed">
    If the remote is not GitHub, read `./references/platform-adaptation.md` and follow the matching platform branch for the GitHub-only command blocks in Phases 2, 6, 8, and 9.
  </step>
</steps>
<o>Known platform, head branch, target branch, and `PR_STATE`; user has been told about any uncommitted work.</o>

git fetch origin --prune gh auth status git ls-remote --heads origin <current_branch> git rev-parse --verify origin/<target_branch> git rev-list --left-right --count origin/<current_branch>...<current_branch>

  </step>
  <step id="2.2" name="push-gate">
    If the head branch is not on the remote, or local commits are ahead of `origin/<current_branch>`, tell the user a push is required before the PR can be created and before the compare diff is trustworthy. Wait for explicit confirmation, then run:

git push -u origin <current_branch>


    > Reminder: `git push` runs only after explicit confirmation. A declined push halts with `HEAD_BRANCH_UNPUSHED` (it is not a retry trigger).
  </step>
  <step id="2.3" name="non-github-preflight">
    For non-GitHub remotes, follow the matching preflight and auth flow in `./references/platform-adaptation.md` before moving to the diff step.
  </step>
</steps>
<hard_rule>If `gh auth status` fails, stop with the `AUTH` envelope (see `<failure_handling>`).</hard_rule>
<hard_rule>If the user declines the required push, stop with the `HEAD_BRANCH_UNPUSHED` envelope.</hard_rule>
<hard_rule>If the target branch does not exist on the remote, stop with the `BASE_BRANCH_MISSING` envelope and ask the user for a valid base branch.</hard_rule>
<gate>Enter Phase 3 only after auth passes, the head branch is on the remote with no commits ahead, and the target branch resolves.</gate>

git log --oneline origin/<target_branch>..origin/<current_branch> git diff --shortstat origin/<target_branch>...origin/<current_branch> git diff --stat origin/<target_branch>...origin/<current_branch> git diff --name-only origin/<target_branch>...origin/<current_branch>


    Use the `--shortstat` line (insertions + deletions) and the file list to evaluate the size gate in step 3.2.
  </step>
  <step id="3.2" name="size-gate">
    If `--shortstat` reports roughly more than 1000 changed lines, or the file list spans clearly unrelated areas, ask the user whether to proceed or split the work into smaller PRs. Continue only after explicit confirmation that a large PR should proceed. A declined large-PR proposal ends the workflow (the create path is not retried).
  </step>
  <step id="3.3" name="load-full-diff">
    Once the size gate passes (either under-threshold or explicitly confirmed), load the full patch:

git diff origin/<target_branch>...origin/<current_branch>


    Use this to ground the title and description in actual changed lines, not just the file list.
  </step>
</steps>
<hard_rule>If there are no commits or no diff, stop with the `EMPTY_DIFF` envelope.</hard_rule>
<gate>Enter Phase 4 only after the diff range is non-empty, the size gate has passed, and step 3.3 has loaded the full diff.</gate>
    - `feat` for new functionality
    - `fix` for bug fixes
    - `chore` for maintenance or housekeeping
    - `docs` for documentation-only changes
    - `style` for formatting-only changes
    - `refactor` for structural improvements without behavior change
    - `test` for test-only changes
    - `perf` for performance improvements
    - `ci` for CI/CD changes
    - `build` for build tooling or dependency system changes

    If the diff straddles two types, present both options and wait for the user to choose.
  </step>
  <step id="4.2" name="compose-title">
    Add an optional scope only when one module, domain, or subsystem clearly dominates the diff. Format as `type(scope): description` or `type: description`. Keep the description concise and lowercase. Wrap code identifiers, file names, and technical keywords in backticks. No trailing period.

    Examples:

    - `feat(pricing): include volume discounts in quote calculation`
    - `fix(auth): handle missing refresh token in sessionStore`
    - `docs(skills): tighten pr-creator validation flow`
    - `refactor(api): extract review metadata mapping`
  </step>
  <step id="4.3" name="apply-title-override">
    If `TITLE_OVERRIDE` is supplied, use it as the entire title — no merging with auto-generated content.
  </step>
</steps>

## Summary

A 2-3 sentence overview of what changed and why it matters.

## Key Changes

- Specific change 1 with relevant detail - Specific change 2 with relevant detail - Add more bullets only when they carry distinct value

## Impact

- Who or what is affected - Migration, rollout, or deployment considerations - Testing notes, if the diff shows them

  </step>
  <step id="5.2" name="ground-in-diff">
    Write from the actual diff. Be specific about file paths, behaviors, and user-visible outcomes. Mention tests only when they were added, changed, or are relevant to risk. The sources of truth are the diff and the changed file paths — not commit messages, branch names, ticket IDs, or prior chat.
  </step>
  <step id="5.3" name="apply-body-override">
    If `BODY_OVERRIDE` is supplied, use it as the entire body — no merging with auto-generated content.
  </step>
</steps>

gh label list --limit 100


    Suggest only labels that appear in that output. Use the PR type and diff content to guide suggestions. If none fit, skip labels silently.
  </step>
  <step id="6.3" name="apply-labels-override">
    If `LABELS_OVERRIDE` is supplied, use it instead of auto-suggestions. Every overridden label must still appear in `gh label list`.
  </step>
  <step id="6.4" name="labels-non-github">
    For non-GitHub remotes, follow the platform-specific label guidance in `./references/platform-adaptation.md` instead of calling `gh`.
  </step>
</steps>
<hard_rule>At least one reviewer is attached before PR creation.</hard_rule>

PR Preview


Title: <generated title> Target: <target_branch> Source: <current_branch> Reviewers: <reviewer list> Labels: <label list or "none"> Status: <draft or ready>

Description: <generated description>


    Empty fields print `none`.
  </step>
  <step id="7.2" name="validation-loop">
    Ask the user to confirm or request edits. Apply requested title, body, reviewer, label, or status changes, then show the updated preview again.
  </step>
  <step id="7.3" name="three-cycle-escape">
    After three preview cycles that have not converged, ask the user for explicit final values rather than producing a fourth speculative redraft.
  </step>
</steps>
<gate>Enter Phase 8 only after the user has explicitly approved the most recent preview. Preview approval is required even when `TITLE_OVERRIDE`, `BODY_OVERRIDE`, or `LABELS_OVERRIDE` were supplied.</gate>
    GitHub draft PR:

gh pr create \ --base "<target_branch>" \ --head "<current_branch>" \ --title "<title>" \ --body "<description>" \ --draft \ --reviewer "<reviewer1>,<reviewer2>"


    GitHub ready PR:

gh pr create \ --base "<target_branch>" \ --head "<current_branch>" \ --title "<title>" \ --body "<description>" \ --reviewer "<reviewer1>,<reviewer2>"


    For GitHub, attach labels only when they exist in `gh label list` and the user approved them. Use `-l` or `--label` in the form supported by the installed `gh` version.

    > Reminder: `gh pr create` runs only after the user approves the most recent preview. Any field changed after approval invalidates approval — re-enter Phase 7.
  </step>
  <step id="8.2" name="non-github-create">
    For non-GitHub remotes, follow the matching create flow in `./references/platform-adaptation.md`.
  </step>
</steps>
<hard_rule>The `gh pr create` invocation matches `PR_STATE` (`--draft` for `draft`, omitted for `ready`).</hard_rule>
  • Inputs: ask the user for any missing input rather than proceeding with a silent default. PR_STATE defaults to draft; accepted values are {draft, ready}.
  • Sources of truth: ground the title and description in the compare diff (origin/<target_branch>...origin/<current_branch>) and the actual changed files. CODEOWNERS supplies reviewer suggestions; gh label list --limit 100 supplies the GitHub label vocabulary.
  • Overrides: when TITLE_OVERRIDE, BODY_OVERRIDE, or LABELS_OVERRIDE is supplied, use it as the entire field. Overridden labels must still exist in gh label list.
  • Confirmation gates: git push, the large-PR proceed decision, and gh pr create each require an explicit user "yes" at their respective gate. Any preview field changed after approval triggers a re-entry into Phase 7.
  • Reviewers: at least one reviewer is attached at preview time and at create time. Reviewers come from CODEOWNERS or from the user.
  • Failure output: every workflow stop uses the PR_CREATE: <CATEGORY> envelope with a category from {AUTH, BASE_BRANCH_MISSING, HEAD_BRANCH_UNPUSHED, EMPTY_DIFF, CREATE_ERROR}.
  • Preview completeness: the preview and the final reply populate every field; empty fields print none. The PR URL appears in the final reply.
  • Platform adaptation: read ./references/platform-adaptation.md only for non-GitHub remotes (GHE follows the GitHub branch).
  • Ambiguity: when two valid interpretations exist (two commit types fit; CODEOWNERS maps multiple teams; multiple plausible target branches; unclear reviewer format), present the options and wait for a user choice.

<new_finding_rule> If a mid-run mutation invalidates earlier state — a push changes the diff signal, .github/CODEOWNERS only partly covers the changed files, labels mutate between list and create, or the user commits more work after Phase 1 — re-enter the earliest affected phase, tell the user why, and require a fresh explicit confirmation before advancing. Do not resume from cached state. </new_finding_rule>

Flow:
1. Inspect the remote URL, current branch, and working tree state.
2. Fetch remote refs and confirm `gh auth status` passes.
3. Survey `origin/main...origin/docs/pr-creator-skill` (`--shortstat` reports 280 insertions, 60 deletions — under the size gate). Load the full diff.
4. Draft:
   - Title: `docs(skills): strengthen the pr-creator workflow`
   - Reviewers: `@docs-team`
   - Labels: `documentation`
5. Show preview; user requests one wording change to the Summary; show updated preview; user approves.
6. Run `gh pr create --draft ...`.

Output:
- PR URL returned to the user.
- Final preview values recorded in the reply.
Flow:
1. Phase 1 inspection completes; platform = GitHub.
2. Phase 2 preflight reports the head branch is on the remote but local is 3 commits ahead.
3. Tell the user: "Your local branch is 3 commits ahead of `origin/feat/checkout-redesign`. A push is required before the PR can be created. Confirm to push?"
4. User replies "no".

Output:

PR_CREATE: HEAD_BRANCH_UNPUSHED Reason: Local branch is 3 commits ahead of origin/feat/checkout-redesign and the user declined the push. Next step: Push the branch manually (git push origin feat/checkout-redesign) and re-run the skill, or amend the commits before pushing.


The workflow halts. The create path is not retried.
Flow:
1. Phases 1–5 complete; preview is shown in Phase 7.
2. Before approving, the user says: "Hold on, I just committed two more files."
3. Re-enter Phase 1: re-run `git status --short --branch`; surface the new commits and confirm they belong in this PR.
4. Re-enter Phase 2: re-run preflight (the local branch is now ahead of origin again — request push confirmation, push).
5. Re-enter Phase 3: re-survey the diff (now 1100 lines — fires the size gate; user confirms proceed). Load the full diff.
6. Phases 4–6 redraft from the new diff. Phase 7 shows a fresh preview reflecting the new state.
7. User approves; Phase 8 creates the PR.

Output:
- PR URL returned to the user.
- Final preview values reflect the post-mutation diff, not the stale Phase 5 draft.

<reference_material>

  • ./references/platform-adaptation.md — read only when the remote is not GitHub. </reference_material>

平台分布

Codex

34.69%
按下载量换算105

Claude

33.77%
按下载量换算102

Cursor

17.71%
按下载量换算53

Gemini CLI

10.5%
按下载量换算32

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/b-mendoza/agent-skills --skill pr-creator 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills