Token导航 LogoToken导航

Agent Skill · 开发

create-pr(创建公关)

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

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

总安装 1,398周安装 56GitHub Stars 公开资料未说明下载 452核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/ulpi-io/skills --skill create-pr

这个 Skill 是做什么的

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

用于创建和管理 GitHub Pull Request。提供标题、正文与变更区域的标准化模板。支持审稿人指派与里程碑设置。create-pr 属于开发类 Skill,可作为该场景下的辅助能力补充。适合协作开发与代码审查流程。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。使用时需已推送分支并具备 gh CLI 权限。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

create-pr 怎么安装?

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

create-pr 支持哪些 AI 工具?

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

create-pr 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

create-pr 是免费的吗?

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

create-pr 用的人多吗?

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

create-pr 安全吗?

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

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

值得选的地方

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

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 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有提醒
create-pr

创建公关 · 本页

1,398—需要联网未明确通过

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

SKILL.md 原文

Non-negotiable rules:

  1. Read the full diff against the real base branch before drafting the PR.
  2. Block on protected-branch usage, empty branch state, or conflict markers.
  3. If uncommitted changes exist, invoke commit first instead of creating a misleading PR.
  4. Push the branch before creating the PR.
  5. Keep PR creation user-driven. If title, scope, base, or reviewer intent is ambiguous, ask first.

Create PR

Inputs

  • $request: Optional PR guidance such as draft intent, reviewer hints, base branch, labels, or title direction

Goal

Create a PR that matches the actual branch changes and leaves the user with:

  • a correct base branch
  • an accurate title
  • a useful body
  • a pushed branch
  • a verified PR URL and state

Step 0: Confirm this is an explicit PR request

This skill is user-only.

Use it only when the user explicitly asks to create or open a PR.

If the request is really:

  • code review only, route to a review skill
  • commit creation only, route to commit
  • planning only, route to the planner

If reviewer assignment, labels, milestone, or base branch are ambiguous and matter to the request, use AskUserQuestion.

Success criteria: PR creation is explicitly requested and the intended PR shape is clear enough to proceed.

Step 1: Gather real branch context

Inspect the current branch before drafting anything:

  • current branch name
  • branch tracking state
  • uncommitted changes
  • base branch candidates
  • commits ahead of base
  • full diff against base

Rules:

  • read the actual diff, not just commit messages
  • determine the real base branch before classifying the PR
  • use Read on changed files when the diff summary is not enough to understand the change

Load references/pr-conventions.md for base-branch selection and PR classification heuristics when needed.

Success criteria: You know the branch, base, diff shape, and whether the branch is actually PR-ready.

Step 2: Validate branch readiness

Blockers:

  • on main, master, or develop
  • no commits relative to base
  • conflict markers in changed files

If uncommitted changes exist:

  • invoke the commit skill
  • then re-run branch context gathering before continuing

Warnings:

  • type or lint failures are warnings unless the user wants to stop and fix them first
  • breaking changes are not blockers, but they must be documented

Success criteria: The branch is in a state where a PR can be created honestly.

Step 3: Classify the PR from the actual diff

Determine:

  • type
  • scope
  • size
  • risk
  • whether breaking changes exist

Use:

  • branch name as a hint, not truth
  • changed paths and modules
  • commit messages only as supporting context
  • the full diff as the source of truth

Document breaking changes if any of these exist:

  • removed or renamed public exports
  • route or API contract changes
  • schema or migration changes
  • env var changes
  • major dependency changes

Load references/pr-conventions.md for:

  • classification heuristics
  • title rules
  • option flag mapping
  • blocking versus warning behavior

Success criteria: The PR is classified from the real code changes, not just branch naming.

Step 4: Run the narrowest relevant quality checks

Run checks that fit the changed surface and project tooling.

Typical checks:

  • typecheck
  • lint
  • conflict-marker scan

Rules:

  • conflict markers always block
  • other failures should be surfaced honestly to the user
  • do not fabricate passing status in the PR body
  • if the user asks to proceed with known non-blocking issues, say so explicitly in the final report

Success criteria: The PR reflects the actual readiness state of the branch.

Step 5: Draft the PR title and body

Create:

  • a Conventional Commit-style PR title
  • a body that explains what changed and how to review it

The body should cover:

  • summary
  • grouped change areas
  • breaking changes when present
  • specific test plan
  • optional notes for deployment, config, or dependency changes

Use:

  • references/pr-conventions.md for title and readiness rules
  • references/pr-body-examples.md only when you need example body shape

If the user explicitly provided title guidance, use it if it still matches the actual diff.

Success criteria: The title and body describe the full branch accurately and are reviewable.

Step 6: Push the branch and create the PR

Before creation:

  • ensure the branch is pushed
  • ensure upstream is set if needed

Then create the PR with gh pr create.

Support request-driven options such as:

  • draft
  • reviewer
  • assignee
  • label
  • milestone

Rules:

  • do not create the PR before the branch exists on remote
  • prefer gh over manual API calls
  • if gh is unavailable, stop and provide the user with the prepared title, body, and compare URL

Success criteria: The PR exists remotely or the user has the exact fallback material needed to create it manually.

Step 7: Verify and report

After creation, verify:

  • PR number
  • URL
  • title
  • state
  • draft status
  • base branch

Also report:

  • whether uncommitted changes remain
  • whether the branch is ahead of remote
  • whether any warnings were carried into the PR process

Success criteria: The user knows exactly what PR was created and any remaining branch caveats.

Guardrails

  • Do not create PRs proactively.
  • Do not let the model invoke this skill through SkillTool; this workflow is intentionally user-only.
  • Do not add paths:. This is a generic workflow skill.
  • Do not add context: fork. PR state must stay in the active workspace.
  • Do not keep giant readiness checklists, scorecards, or failure catalogs inline in SKILL.md.
  • Do not fabricate test status, branch status, or breaking-change absence.

When To Load References

  • references/pr-conventions.md Use for base-branch selection, classification heuristics, option parsing, and blocking rules.
  • references/pr-body-examples.md Use only when you need an example PR body shape for a similar request.

Output Contract

Report:

  1. PR number, URL, title, base, and state
  2. whether commit had to be invoked first
  3. the checks run and any warnings that remained
  4. any breaking changes documented
  5. remaining working-tree or branch state

平台分布

Codex

36.85%
按下载量换算167

Claude

31.1%
按下载量换算141

Cursor

16.48%
按下载量换算74

Gemini CLI

9.95%
按下载量换算45

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills