Token导航 LogoToken导航

Agent Skill · 研究检索

pr(公关)

pr 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

pr 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 60,816。

总安装 364周安装 15GitHub Stars 2下载 119核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

pr 自动化生成符合规范的 Pull Request,支持 Jira 与 Linear 工单关联与类型识别。适用于 Codex、Claude、Cursor、Gemini CLI,遵循固定流程确保提交质量与可追溯性。包含 diff 审查、变更说明撰写与平台特定要求检查,减少人为疏漏风险。

使用前需确认 Git 工作流与 issue 追踪系统配置正确,避免格式错误导致合并失败。pr 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/pr

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

pr 怎么安装?

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

pr 支持哪些 AI 工具?

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

pr 需要什么权限?

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

pr 是免费的吗?

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

pr 用的人多吗?

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

pr 安全吗?

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

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

值得选的地方

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

先想清楚的地方

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

适不适合你

更适合

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

不太适合

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

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
pr

公关 · 本页

3642需要联网未明确通过

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

SKILL.md 原文

Publish PR

!IMPORTANT: Follow this process, no matter what. Do not deviate from it.

Publish a pull request by following this automated workflow.

Arguments: $0 = [type] [ISSUE-ID] (both optional)

  • /pr — auto-detect type, no issue
  • /pr fix — fix PR, no issue
  • /pr fix ENG-1234 — fix PR with a Linear issue
  • /pr fix MITB-565 — fix PR with a Jira issue
  • /pr ENG-1234 — auto-detect type with an issue ID ([A-Z]+-\d+ matches both Linear and Jira; tracker is resolved in Step 1.6)

1. Review the Full Diff

For mk-copilot project:

git --no-pager diff develop   # Inspect everything that changed vs. develop

For all other projects:

First ensure you're in the right directory:

pwd

If not in the project directory:

cd <project-directory>

Then inspect the diff:

git --no-pager diff master   # Inspect everything that changed vs. master

or

git --no-pager diff main     # Inspect everything that changed vs. main

*If anything looks off, pause and ask for confirmation. Use AskUserQuestion tool to ask the user for confirmation.*

1.5. Determine PR Type (MANDATORY if not provided)

Skip this step only if:

  • PR type was explicitly provided via /pr [type] argument.
  • You are confident in the type based on the diff.

Analysis Approach:

  • Examine file paths changed (e.g., *.test.*, docs/, configuration files)
  • Analyze the diff content for patterns (new features, bug fixes, refactoring, etc.)
  • Review the scope and scale of changes
  • Check for conventional commit indicators in changes

Type Detection Rules:

  • feature (feat): New functionality, new files/directories, significant additions to existing files
  • fix: Bug fixes, error handling, small focused changes addressing issues
  • chore: Dependency updates, config changes, build files, maintenance tasks
  • refactor: Code restructuring, reorganization without changing behavior
  • docs: Documentation, README, or content-only changes
  • test: Test file additions or modifications
  • perf: Performance optimizations
  • style: Formatting, linting, or style-only changes

Mandatory Action Items:

  1. Analyze the diff output from Step 1
  2. Identify which files changed and what type of changes they represent
  3. Determine the most likely PR type based on rules above
  4. Present your analysis: "Based on the diff, I determined this is a [TYPE] PR because [specific reason from the changes]"
  5. Ask for confirmation if confidence < 100%: "Does this look correct, or would you prefer [alternative type]?"
  6. Use AskUserQuestion tool to ask the user for confirmation before proceeding to Step 2

1.6. Issue Tracker Detection (Optional)

Detect an issue ID (Linear or Jira) to include in branch name, PR title, and PR body. IDs from both trackers share the [A-Z]+-\d+ shape, so the tracker is resolved after the ID is found.

Detection Order (find the ID):

  1. Check if an ID was passed as argument (pattern: [A-Z]+-\d+)
  2. Search conversation context for issue references
  3. Check current branch name: git rev-parse --abbrev-ref HEAD | grep -oE '[A-Z]+-[0-9]+'
  4. Check recent commits: git log --oneline -5 | grep -oE '[A-Z]+-[0-9]+' | head -1

Resolve the tracker (if an ID was found):

Try Linear first, fall back to Jira:

if linear issue view <ID> >/dev/null 2>&1; then
  TRACKER=Linear
  ISSUE_URL=$(linear issue url <ID>)
else
  TRACKER=Jira
  ISSUE_URL="https://hgdata.atlassian.net/browse/<ID>"
fi
  • Store ID, TRACKER, and ISSUE_URL for use in branch naming (Step 2), PR title (Step 5), and PR body (Step 5).
  • Confirm: "Detected ** issue: ** — <ISSUE_URL>"

Requires the linear CLI on PATH (provided by the linear-cli skill). If linear is unavailable, treat the ID as Jira.

If no ID found:

  • Continue without an issue reference (it's optional)
  • Note: "No issue ID detected — proceeding without tracker reference"

2. Ensure on a Dedicated Branch

git rev-parse --abbrev-ref HEAD
  • If already on a suitable branch, continue.
  • Otherwise create one:
git checkout -b <branch-name>

Branch naming format:

  • With issue ID: {type}/{ID}-{description} → feat/ENG-1234-add-auth or feat/MITB-565-add-auth
  • Without issue ID: {type}/{description} → feat/add-auth

3. Stage and Commit All Pending Changes

git add .
git commit -m "<concise-imperative-summary (≤ 50 chars)>"

!IMPORTANT: NEVER commit changes to the main, master, or develop branch. Always create a new branch and commit your changes to that branch.

4. Push the Branch

git push -u origin HEAD

5. Open a Pull Request

Configuration:

  • Base branch: develop for mk-copilot projects, master for all other repos
  • PR title format:

- With issue ID: {type}({ID}): description → feat(ENG-1234): add user auth or feat(MITB-565): add user auth - Without issue ID: {type}: description → feat: add user auth

  • PR body: Use the appropriate template below based on the PR type

Fix PR Template (type = "fix"):

### Issue Description

<what the user experienced>

### Root Cause

<why it happened>

### Screenshots

<before / after>

### Related Issues

<linked issues or #numbers>

**{TRACKER} issue**: {ISSUE_URL}  <!-- Include only if an issue ID was detected in Step 1.6. {TRACKER} is "Linear" or "Jira". -->

Feature PR Template (type = "feature" or "feat"):

### Feature Description

<what the feature does and why>

### Screenshots

<UI shots, API examples or GIFs>

**{TRACKER} issue**: {ISSUE_URL}  <!-- Include only if an issue ID was detected in Step 1.6. {TRACKER} is "Linear" or "Jira". -->

Chore PR Template (type = "chore"):

### Description

<brief description of maintenance work or updates>

### Details

<what was updated and why>

### Related Dependencies

<any related updates or breaking changes>

**{TRACKER} issue**: {ISSUE_URL}  <!-- Include only if an issue ID was detected in Step 1.6. {TRACKER} is "Linear" or "Jira". -->

Refactor PR Template (type = "refactor"):

### Overview

<summary of code structure improvements>

### Changes

<what was reorganized or restructured>

### Impact

<any performance or maintainability improvements>

### Testing

<confirm no behavior changes>

**{TRACKER} issue**: {ISSUE_URL}  <!-- Include only if an issue ID was detected in Step 1.6. {TRACKER} is "Linear" or "Jira". -->

Docs PR Template (type = "docs"):

### Documentation Updated

<which docs were updated>

### Changes

<summary of content changes>

### Reason

<why these docs needed updating>

**{TRACKER} issue**: {ISSUE_URL}  <!-- Include only if an issue ID was detected in Step 1.6. {TRACKER} is "Linear" or "Jira". -->

Test PR Template (type = "test"):

### Test Coverage Added

<description of tests added>

### Coverage Improvement

<what scenarios are now tested>

### Related Code

<link to the code being tested>

**{TRACKER} issue**: {ISSUE_URL}  <!-- Include only if an issue ID was detected in Step 1.6. {TRACKER} is "Linear" or "Jira". -->

Performance PR Template (type = "perf"):

### Performance Improvement

<what was optimized>

### Metrics

<performance gains (before/after benchmarks)>

### Changes

<technical details of optimization>

### Impact

<affected components or users>

**{TRACKER} issue**: {ISSUE_URL}  <!-- Include only if an issue ID was detected in Step 1.6. {TRACKER} is "Linear" or "Jira". -->

Style PR Template (type = "style"):

### Style Updates

<what was changed (formatting, linting, etc.)>

### Tool/Config

<which linting or formatting tool was applied>

### Scope

<which files were affected>

**{TRACKER} issue**: {ISSUE_URL}  <!-- Include only if an issue ID was detected in Step 1.6. {TRACKER} is "Linear" or "Jira". -->

6. Request Review on Slack (MANDATORY)

Generate a brief, friendly message that includes the PR link using the template below based on the PR type:

Message Templates by Type:

PR TypeTemplate
fix:wrench: Fixed [issue summary] — would appreciate a review: [PR-URL]
feature:rocket: New feature: [feature name] ready for review! [PR-URL]
chore:broom: Maintenance update: [what was updated] needs review: [PR-URL]
refactor:recycle: Code refactor for [area/component] — feedback welcome: [PR-URL]
docs:books: Documentation updated: [what changed] [PR-URL]
test:test_tube: Added test coverage for [feature/area]: [PR-URL]
perf:zap: Performance improvement in [area] ready for review: [PR-URL]
style:art: Code style/formatting updates applied: [PR-URL]

Action:

  1. Select the appropriate template based on the PR type from the table
  2. Fill in the bracketed sections with actual details from the PR
  3. Output the complete Slack message for the user to copy and paste into Slack

Execution Notes

Critical Rules:

  • Execute each step sequentially in order (1 → 1.5 → 1.6 → 2 → 3 → 4 → 5 → 6)
  • Do not skip Step 1.5 unless PR type was explicitly provided via arguments
  • Step 1.6 is optional — proceed without a tracker reference if no ID is detected
  • Do not skip Step 6 — Slack message is mandatory before considering PR complete
  • Wait for user confirmation before proceeding if any diff looks unexpected

Type Argument Behavior:

  • If PR type ($0) is provided: Skip Step 1.5 and use the provided type directly
  • If PR type is NOT provided: Unless you are confident in the type, complete PR type analysis with user confirmation at Step 1.5 before proceeding

Standard Workflow:

  1. Execute Step 1 (diff review)
  2. MANDATORY: Complete Step 1.5 (type detection & confirmation) — unless type was provided as argument or you are confident in the type
  3. Execute Step 1.6 (issue tracker detection — Linear or Jira) — optional, use if found
  4. Execute Steps 2-5 (branch, commit, push, create PR)
  5. MANDATORY: Complete Step 6 (generate and output Slack message)
  6. Confirm PR is ready: all steps completed, Slack message generated

Optional Arguments: /pr [type] [ISSUE-ID]

  • /pr — Auto-detect PR type, no issue
  • /pr feature — Create feature PR, no issue
  • /pr fix — Create fix PR, no issue
  • /pr fix ENG-1234 — Create fix PR with a Linear ID
  • /pr fix MITB-565 — Create fix PR with a Jira ID
  • /pr ENG-1234 — Auto-detect type with an issue ID (tracker resolved in Step 1.6)

平台分布

Codex

38.68%
按下载量换算46

Claude

29.37%
按下载量换算35

Cursor

19.57%
按下载量换算23

Gemini CLI

9.48%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills