Token导航 LogoToken导航

Agent Skill · 开发

pr(公关)

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

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

总安装 329周安装 14GitHub Stars 3下载 115核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/novemberfiveco/skills --skill pr

这个 Skill 是做什么的

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

pr 用于处理 GitHub 仓库、Issue、Pull Request 等协作信息,适合整理代码变更与项目状态。适用于需要围绕仓库状态、代码变更或协作事项进行整理的场景,如项目管理或团队协作。通过 npx skills add 命令从指定 GitHub 仓库安装,具体功能需参考原始 README 文档。

安装前应确认权限范围和维护状态,警惕可能触发的联网、命令执行或文件读写行为。pr 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/pr

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

pr 怎么安装?

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

pr 支持哪些 AI 工具?

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

pr 需要什么权限?

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

pr 是免费的吗?

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

pr 用的人多吗?

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

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有提醒
pr

公关 · 本页

3293需要联网未明确通过

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

SKILL.md 原文

PR Description Writer

Read the current branch's diff and commit history, then draft a PR description the developer can copy straight into GitHub, GitLab, Bitbucket, or any other platform. After presenting the description, offer to create the pull request directly — supported for GitHub (via gh) and GitLab (via glab).

This is NOT a code review. Don't critique the code, flag lint issues, or suggest refactors. The job is to clearly communicate what changed and why so that reviewers can do their job efficiently.

Workflow

Step 1: Validate Branch

Check the current branch:

git branch --show-current

If the current branch is a main branch (main, master, develop, release), stop and tell the user they need to be on a feature branch. Do not proceed.

Step 2: Gather Context

Run the context-gathering script:

bash scripts/gather_pr_context.sh [base_branch]

If the script isn't available, gather the same info manually:

# Branch name
git branch --show-current

# Commits on this branch
git log main..HEAD --format="- %h %s" --reverse

# Diff stats
git diff main..HEAD --stat

# Full diff (read this — don't just look at stats)
git diff main..HEAD

Replace main with whatever the base branch is.

Step 3: Read the Diff

This is the critical step. Actually read the diff to understand WHAT changed and WHY. Don't just summarize file names or commit messages — understand the intent behind the changes.

For each changed file, understand:

  • What was the file's role before and after?
  • Is this a new capability, a fix, a refactor, or a config change?
  • Does it change any public API surface (endpoints, function signatures, exports)?
  • Does it touch the database (schema, migrations, queries)?
  • Does it change how the app is built, tested, or deployed?

If the diff is very large (100+ files), focus on:

  1. New files first (they reveal the shape of the feature)
  2. Files with the most lines changed
  3. Migration files, config changes, and API surface changes
  4. Skip auto-generated files (lock files, compiled output, snapshots)

Step 4: Determine the Story

Before writing, figure out the narrative:

  • What type of change is this? Feature, bug fix, refactor, chore, dependency update, infrastructure change, documentation? This also determines the Conventional Commit prefix for the PR title (see Step 7).
  • What's the user-visible or system-visible outcome? If someone asked "what does this PR do?" in one sentence, what would you say?
  • What was the approach? Were there alternative approaches? Why this one?
  • What's risky? Could anything break? Are there deployment steps? New env vars? Database migrations that need coordination?
  • How should a reviewer test this? Manual steps, automated tests added, specific environments to check?

Step 5: Write the Description

Read the template in references/template.md and produce the PR description.

Output it in a fenced Markdown code block (triple backticks) so the developer can copy it directly. The block should contain the raw Markdown they'll paste into their PR form.

Writing rules:

  • Derive the description from the actual diff, not just commit messages. Commit messages are often terse or misleading. The diff is the truth.
  • Group changes by concern, not by file. "Added input validation for the order form" is better than "Changed OrderForm.tsx, useOrderValidation.ts, orderSchema.ts".
  • Be honest about scope. If the PR touches 3 areas, say so. Don't pretend a large PR is simple.
  • Flag anything that needs attention: migrations, env vars, breaking changes, deployment order, feature flags.
  • If commits follow conventional commit format, use the types (feat, fix, refactor, etc.) to help categorize, but don't just list the commit messages verbatim.
  • If a ticket ID was found in the branch name, include it in the description.
  • Scale the description to the PR size. A one-line typo fix gets a one-line description. A 500-line feature gets the full template.

Step 6: Offer Refinement and PR Creation

After presenting the description, ask the developer if they want to:

  • Adjust the tone or detail level
  • Add context you couldn't infer from the code (e.g. the "why" behind a product decision)
  • Include specific testing instructions
  • Add or remove sections
  • Create the pull request (proceed to Step 7 — GitHub and GitLab repos)

Step 7: Create Pull Request (only when the user accepts)

Only proceed with this step when the developer explicitly confirms they want to create the PR. Never auto-create without asking.

Before anything else, detect the hosting platform:

git remote get-url origin
  • URL contains github.com → GitHub (use gh)
  • URL contains gitlab (any host, including self-hosted) → GitLab (use glab)
  • Any other remote → provide the description to copy-paste and stop
  1. Determine the base branch for the PR:

- Use develop if it exists, otherwise fall back to main or master - The user can override this

  1. Check for uncommitted changes: git status If there are uncommitted changes, ask the user if they want to commit first.
  2. Push the branch: git push -u origin <branch-name>
  3. Derive the PR title using Conventional Commit format: The title MUST begin with a Conventional Commit prefix. Use the branch name to determine the type: Branch prefix CC type Notes feature/ feat New functionality bugfix/ fix Bug fix hotfix/ fix Production bug fix chore/ chore Small task or maintenance release/ chore Release preparation If the branch name doesn't match any prefix, infer the type from the change type determined in Step 4 (e.g. a bug fix → fix, a new capability → feat). Ticket number: Extract a ticket ID from the branch name if present. A ticket ID matches the pattern [A-Za-z]+-[0-9]+ (e.g. ABC-123, proj-42). Always append it at the end of the title in parentheses. Format: type: concise description (TICKET-123) — under 70 characters total (excluding the ticket suffix). If no ticket ID is found, omit the parenthetical entirely. Examples:

- feat: add order validation for checkout flow (SHOP-42) - fix: resolve null pointer on login (AUTH-7) - chore: upgrade dependencies (no ticket found)

  1. Create the PR using the appropriate CLI: GitHub (gh): gh pr create \ --base <base-branch> \ --head <branch-name> \ --title "<Title>" \ --body "<Description from Step 5>" GitLab (glab): glab mr create \ --target-branch <base-branch> \ --source-branch <branch-name> \ --title "<Title>" \ --description "<Description from Step 5>" Pass the body/description using a HEREDOC to preserve formatting.
  2. Return the PR URL to the developer.

If the CLI is not available, provide the developer with:

  • The description to copy-paste
  • GitHub fallback URL: https://github.com/<owner>/<repo>/compare/<base-branch>...<branch-name>
  • GitLab fallback URL: https://<gitlab-host>/<owner>/<repo>/-/merge_requests/new?merge_request[source_branch]=<branch-name>&merge_request[target_branch]=<base-branch> (extract host from origin URL)

Edge Cases

Uncommitted changes: If git status shows uncommitted work, let the developer know. The PR description should reflect what's committed, not what's in the working tree.

Empty diff: If there are no commits ahead of the base branch, say so. Don't fabricate a description.

Merge commits: Filter out merge commits when reading the commit log. They add noise without signal.

Squash workflows: If there's only one commit but a large diff, that's fine. The diff is what matters, not the commit count.

Monorepo: If changes span multiple packages/services, organize the "Changes" section by package/service rather than by concern within a single app.

Push failures: If the push fails, check if the remote branch already exists or if there's an authentication issue. Provide helpful error context.

CLI not installed (gh for GitHub, glab for GitLab): Fall back to manual instructions with the generated description and a compare URL.

Important

  • Do NOT review or critique the code. That's not this skill's job.
  • Do NOT create any files. Output goes in the conversation only.
  • Do NOT include sensitive values from the diff (tokens, keys, passwords).
  • Do NOT fabricate ticket links or URLs you can't verify.
  • Do NOT create a PR without explicit user confirmation.
  • Do NOT include bot signatures, attribution lines, or "Generated with..." footers in the PR description or title. The description should read as if a human wrote it.

平台分布

Codex

35.88%
按下载量换算41

Claude

30.37%
按下载量换算35

Cursor

19.52%
按下载量换算22

Gemini CLI

10.18%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills