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 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 9,098。

总安装 238周安装 10GitHub Stars 公开资料未说明下载 83核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

pr 用于创建、更新和管理 GitHub Pull Request,支持自动生成描述、添加评审人、标签等元数据。可结合用户意图自动路由操作,如合并、关闭、检查状态,提升协作效率。使用时需提供清晰的操作指令(如 /pr close)或上下文信息以生成准确描述。

安装前需确认 GitHub CLI 已配置且具备相应仓库权限,避免越权操作。pr 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/pr

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

pr 怎么安装?

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

pr 支持哪些 AI 工具?

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

pr 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

pr 是免费的吗?

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

pr 用的人多吗?

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

pr 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

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

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
pr

公关 · 本页

238—操作浏览器未明确有提醒

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

SKILL.md 原文

PR

Create, update, and manage pull requests with auto-generated descriptions.

Action Routing

Operations are combinable. If the user includes reviewers, labels, or other metadata alongside a create/update intent, create the PR first if needed, then apply the operations.

User saysAction
/pr (no text)Create or update PR (web interface)
/pr this fixes the timeout bugSame, with added context for description
/pr against release/v2.xPR against specified base branch
/pr closegh pr close --delete-branch
/pr mergegh pr merge --squash --delete-branch
/pr checksgh pr checks
/pr statusgh pr view
/pr reviewers alice bobCreate PR if needed, then add reviewers
/pr labels bug fixCreate PR if needed, then add labels
/pr webgh pr view --web
/pr updatePush + regenerate description
/pr rebasegh pr update-branch
/pr context info, reviewers: alice, bobCreate PR with context, then add reviewers
/pr only swift filesRestrict diff to matching paths
/pr ignore testsDrop matching paths from diff
/pr publish / /pr commit and pushAuto-commit unstaged changes, then push

If intent is unclear, ask.

Path filters

Users can scope the diff with include/exclude glob patterns. Translate natural language ("only swift", "ignore generated files") into git pathspecs:

  • Include → *<pattern> (e.g., *.swift)
  • Exclude → :!*<pattern> (e.g., :!*_test.go)

Append them to every git diff / git log invocation in Step 1 after a -- separator. Mention active filters in the Step 2 summary so the user can confirm.

Core Workflow (Create / Update)

Step 1 — Gather Context

Run these in parallel:

Detect base branch (in order, stop at first match):

  1. User-specified base from input
  2. Existing PR's base branch (if updating)
  3. Git history — git symbolic-ref refs/remotes/origin/HEAD to get remote default, or git config init.defaultBranch
  4. Last fallback: gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'

Then compute the merge base: git merge-base HEAD <detected-base>

Diff and log:

git diff --stat <base>...HEAD
git log --oneline <base>..HEAD

Detect existing PR:

gh pr list --head "$(git branch --show-current)" --state open --json number,url,title,isDraft,body,baseRefName --jq '.[0]'

This also fetches the existing description and base branch.

Other context:

  • Branch name → extract ticket IDs matching (?:^|[/_-])([A-Z]{3,}[A-Z0-9_]*-\d+). Deduplicate, sort, join with ,.
  • Repo template detection (first match wins):

1. .github/pull_request_template.md 2. .github/PULL_REQUEST_TEMPLATE/ (directory — pick the most relevant file) 3. .gitlab/pull_request_template.md 4. .gitlab/merge_request_templates/ (directory)

  • Working tree state → git status --porcelain to detect uncommitted/unpushed changes (surface in Step 2).

Step 2 — Summarize and Confirm

Print a summary before acting:

  • Commits: N commits, N files changed, +N/-N lines
  • Tickets: PROJ-123 (or "none detected")
  • Template: repo template / default / minimal (and *why* — see auto-selection below)
  • Filters: include=*.swift, exclude=*_test.go (omit line if none)
  • Action: Create new PR against <base> or Update PR #42
  • Branch: pushed / needs push / N uncommitted files / N commits ahead of remote

If there are uncommitted or unpushed changes, call them out explicitly and list the files (up to ~10). Ask the user whether to:

  1. Stop and let them handle it manually, or
  2. Auto-commit + push (only if the user already said /pr publish or similar, or confirms it now).

Then ask: "Proceed?"

Step 3 — Generate Description

Rules for writing
  • Follow any user-provided context verbatim.
  • Focus only on important changes. Skip comments, formatting, year bumps, typos.
  • A PR may contain multiple issues — describe them all, weighted by importance.
  • Technical but clear language. Short sentences, prefer bullet points.
  • No line-by-line analysis — high-level descriptions only.
  • Never deviate from the template structure.
  • Use commit messages for intent/context when the diff is ambiguous.
  • Title: concise, 5–10 words, under 72 chars.
  • No yapping.
Template selection (priority order)
  1. Explicit override — user said something like "use the minimal template" / "use default" / "use the repo template".
  2. Auto-classify by change importance (default when no override): Judge importance from the diff + commit messages. State the chosen template and the reasoning in the Step 2 summary.

- minimal — typo fixes, formatting, comments, tiny one-line bug fixes (< ~20 lines, 1–2 files). - default (built-in) — refactors, dependency bumps, moderate bug fixes. - detected — repo template from Step 1, used for significant changes, new features, breaking changes.

  1. Fallback — built-in assets/default-template.md.

Built-in templates live in assets/default-template.md and assets/minimal-template.md.

Title
  • Generate a concise title (5–10 words) summarizing the main change.
  • Prefix with ticket IDs if found in the branch name: PROJ-123: <title> (or PROJ-123,PROJ-456: <title> for multiple). Skip prefix only when no tickets were detected.
  • When updating an existing PR, keep the existing title unless the user asks to regenerate it.
Body
  • Focus on *why* not *what*.
  • Group changes by area.
  • Flag breaking changes explicitly.
  • Strip any <!-- GenAI... --> comments from the output.

For updates: always read the existing PR description first (fetched in Step 1). Preserve any user-added context, notes, or sections. Only remove content that is clearly irrelevant to the current diff (e.g., describes files/changes that no longer exist). Regenerate the auto-generated portions from the current diff.

Large diffs (>500 lines): use --stat first, selectively read the most relevant file diffs, summarize the rest from stat output.

Step 4 — Execute

  1. Auto-commit (if requested) — when the user opted into publish:

- Stage only the relevant files by name (avoid blanket git add -A; never stage .env, credentials, or large binaries). - Generate a short conventional-commit-style message (feat:, fix:, docs: …) under 72 chars from the staged diff. - Commit, then proceed.

  1. Push branch if needed: git push -u origin HEAD
  2. Create or update:

- New PR: gh pr create --web — ONLY open the browser. Do NOT pass --title or --body to gh pr create; those flags cause CLI creation. Print the generated title and body to the console for the user to paste in the browser. Use gh pr create --title "..." --body "..." only if the user explicitly asks for CLI creation. - Existing PR: gh pr edit --title "..." --body "..."

  1. Apply any combined operations (reviewers, labels) from the user's input

Reviewers: before adding, check availability via gh api:

gh api repos/{owner}/{repo}/collaborators --jq '.[].login'

Warn if a requested reviewer is not a collaborator.

Troubleshooting

  • No gh auth: run gh auth login
  • Detached HEAD: check out a branch first
  • No upstream remote: git remote add origin <url>
  • Push rejected: branch may need rebase — suggest git pull --rebase origin <base>

平台分布

Codex

35.36%
按下载量换算29

Claude

32.23%
按下载量换算27

Cursor

20.41%
按下载量换算17

Gemini CLI

9.49%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

继续浏览同类 Skills