Token导航 LogoToken导航

Agent Skill · 研究检索

pr(公关)

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

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

总安装 420周安装 17GitHub Stars 6下载 132核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/chanmuzi/git-conventions --skill pr

这个 Skill 是做什么的

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

pr 用于解析目标分支、确定 PR 基础分支,辅助自动化处理 Pull Request 流程。适用于需要根据项目配置自动选择发布分支或热修复分支的 CI/CD 或协作场景。通过参数或当前分支检测目标分支,支持显式覆盖和项目级策略匹配。安装前请确认仓库权限、维护状态,并注意可能触发命令执行或网络请求。

pr 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/pr

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

pr 怎么安装?

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

pr 支持哪些 AI 工具?

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

pr 需要什么权限?

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

pr 是免费的吗?

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

pr 用的人多吗?

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

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

公关 · 本页

4206需要联网未明确有提醒

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

SKILL.md 原文

Determine Base Branch

Resolve the target base branch before proceeding. Use the first matching rule:

  1. Explicit override: If $ARGUMENTS contains --base <branch>, use that branch.
  2. Project config: Read the project's CLAUDE.md for a Branch Strategy section: ## Branch Strategy - default-base: dev - release-base: main - direct-to-release: hotfix/* Apply rules:

- Release PR → use release-base - Current branch matches a direct-to-release pattern → use release-base - Current branch equals default-base (e.g., you are on dev) → use release-base - Otherwise → use default-base

  1. Auto-detect (if no project config found): a. Check for an integration branch: git branch -r | grep -E 'origin/(dev|develop)$' b. If found:

- Current branch IS the integration branch (dev/develop) → base = main - Otherwise, compare fork points: dev_base=$(git merge-base HEAD origin/dev 2>/dev/null) main_base=$(git merge-base HEAD origin/main 2>/dev/null) The more recent merge-base indicates the parent branch. If equal, default to the integration branch. c. If no integration branch exists → use the repo default branch.

Do NOT ask for user confirmation. Instead, briefly state which base branch was selected and why (one line) when presenting the PR.

Gather Context

Run the following commands using the resolved {base-branch}:

  1. git log --oneline {base-branch}..HEAD 2>/dev/null || git log --oneline -10 — list commits on this branch
  2. git diff {base-branch}...HEAD --stat 2>/dev/null || echo "Could not determine diff" — list changed files

Determine PR Type

Parse $ARGUMENTS:

  • If it contains "release" → use the Release PR Template below.
  • Otherwise → use the Individual PR Template.

PR Title Convention

Format: {Type}: {description}

Type Prefixes (capitalize first letter — differs from commit messages)

TypePurpose
Feat:New feature
Fix:Bug fix
Refactor:Code restructuring
Perf:Performance improvement
Docs:Documentation
Test:Test changes
Chore:Maintenance
Hotfix:Urgent fix
Release:Release integration (e.g., Release: {default-base} → {release-base} 통합 (v0.5.0))

Write the description in the language configured in the project's CLAUDE.md. If no language is configured, follow the user's conversational language.


Label System

Assign a type label to the PR based on its title prefix. This label scheme is shared with the /issue skill for project-wide consistency. The core labels are identical; /issue additionally defines type: enhancement for improvement requests.

Type Labels

LabelColorPR type prefix
type: feature0075caFeat:
type: bugd73a4aFix:
type: refactord4c5f9Refactor:
type: perff9d0c4Perf:
type: docs5319e7Docs:
type: testbfd4f2Test:
type: choree4e669Chore:
type: hotfixb60205Hotfix:
type: release1d76dbRelease:

Priority Labels (optional — assign only if the user specifies)

LabelColor
priority: criticalb60205
priority: highd93f0b
priority: mediumfbca04
priority: low0e8a16

Before assigning a label, ensure it exists in the repository. Color values are 6-character hex without #:

gh label create "{label}" --color "{hex}" 2>/dev/null || true

Individual PR Template

Apply this template for feature, fix, refactor, and other non-release PRs.

Formatting guidance

  • Prefer bullet points over prose paragraphs. Each bullet should be one clear, concise statement.
  • Keep "개요" to 1-2 sentences.
  • For single-concern PRs, use a flat bullet list under "변경 사항" without sub-headings.
  • Do NOT put commit SHAs, PR numbers, or other references in heading lines (###). Place them as body text below the heading — headings should contain only descriptive titles.
  • Bullet management: When a category exceeds 5 bullets, consolidate related items into fewer, broader bullets. Combine closely related changes with commas (e.g., "해커톤 필터 개선, 검색 위치 조정, 캘린더 네비게이션 수정"). Aim for ≤5 bullets per category.
  • Reference labeling: Always qualify per-category references with the type — use 관련 커밋: for commit SHAs, 관련 PR: for PR numbers. Never use bare 관련:.
## 개요

{1-2 sentence summary: what this PR does and why}

> ⚠️ **Breaking Change**: {only if applicable — describe migration needed}

## 변경 사항

### 1. {Change category title}

- {Specific change and its purpose}
- {Specific change and its purpose}
- 관련 커밋: {sha1}, {sha2}

### 2. {Change category title}

- {Specific change and its purpose}
- 관련 PR: #{number}

## 참고 사항

- {Points reviewers should focus on}
- {Intentional omissions and reasons}
- {Follow-up work if any}

(Omit this section entirely if nothing noteworthy.)

## 관련 이슈/PR

- #{number}

Release PR Template

Apply this template when $ARGUMENTS contains "release". Typically used for {default-base} → {release-base} integration.

Collect all merged PRs since the last release:

gh pr list --state merged --base {default-base} --limit 30 --json number,title --jq '.[] | "- #\(.number) \(.title)"'

Title format: Release: {default-base} → {release-base} 통합 (vX.Y.Z)

## 개요

{Release summary — what this release includes}

> ⚠️ **배포 공지**: {Deployment impact notice — migration steps if any}

## 주요 변경사항

### 1. {Feature/Fix name}

- {Key change}
- {Key change}
- 관련 PR: #{PR number}

### 2. {Feature/Fix name}

- {Key change}
- 관련 PR: #{PR number}

## 참고 사항

- {Deployment considerations}
- {Follow-up work if any}

(Omit this section entirely if nothing noteworthy.)

## 관련 PR

- #{number1}
- #{number2}

Task

  1. Resolve base branch following the "Determine Base Branch" rules above.
  2. Determine PR type: Release (if $ARGUMENTS contains "release") or Individual.
  3. Sync check before pushing:

- git fetch origin {base-branch} - If the local branch is behind, inform the user and suggest an appropriate action (rebase, merge, or proceed as-is).

If Individual PR:

  1. Push the branch if not already pushed: git push -u origin {branch-name}
  2. Ensure the type label exists: gh label create "{type_label}" --color "{hex}" 2>/dev/null || true
  3. Draft the PR title and body using the Individual PR Template, and create the PR: gh pr create --base {base-branch} --assignee @me --label "{type_label}" --title "..." --body "$(cat <<'EOF'... EOF)". Follow the session's tool permission settings for approval.
  4. Return the PR URL. Include a one-line note: Base branch: {base-branch} — {reason} (e.g., "CLAUDE.md Branch Strategy 설정에 따라 결정" or "origin/dev에서 분기한 브랜치로 감지").

If Release PR:

  1. Determine version: a. Check $ARGUMENTS for an explicit version (e.g., /pr release v1.2.0). b. If not provided, detect the current version from the project:

- Read the project's CLAUDE.md for release process instructions or version conventions. - Search for version sources: package.json, pyproject.toml, Cargo.toml, marketplace.json, or similar files that already exist in the project. - Check recent git tags: git tag --sort=-v:refname | head -5 c. Analyze included changes (via merged PR titles or commit messages) and recommend a semver bump: - Breaking changes → major - New features (Feat:, feat:) → minor - Fixes, refactors, docs, etc. → patch d. Present the detected current version, the recommended next version, and the reasoning to the user. Confirm before proceeding.

  1. Pre-release file updates (conditional): a. If the project's CLAUDE.md defines a release process → follow it exactly. b. Otherwise, scan for files that commonly hold version or release info and propose updates for only files that already exist in the project. Do NOT create new files.

- Version files (package.json, pyproject.toml, marketplace.json, etc.) → bump version - CHANGELOG.md or similar → add release entry based on included changes c. After making changes, show the user a summary of what was updated (files changed, old → new values). d. Commit the changes using the project's commit convention (fall back to chore: release vX.Y.Z if no convention is found).

  1. Push the branch: git push -u origin {branch-name}
  2. Ensure the type label exists: gh label create "type: release" --color "1d76db" 2>/dev/null || true
  3. Draft the PR title and body using the Release PR Template, and create the PR: gh pr create --base {base-branch} --assignee @me --label "type: release" --title "..." --body "$(cat <<'EOF'... EOF)". Follow the session's tool permission settings for approval.
  4. Return the PR URL. Include a one-line note: Base branch: {base-branch} — {reason}. Also provide post-merge guidance — list the following as next steps the user should perform after merging:

- Create and push a git tag: git tag vX.Y.Z && git push origin vX.Y.Z - Create a GitHub Release: gh release create vX.Y.Z --generate-notes - Sync the source branch back with the base branch (e.g., git checkout {default-base} && git merge {release-base} && git push origin {default-base}) - Any project-specific deployment steps described in the project's CLAUDE.md

Important:

  • Do NOT modify commit history (squash, rebase, amend, reorder) before pushing unless the user explicitly requests it. Preserve all commits to maintain traceable context for agents and reviewers.
  • For Release PRs, automatically collect all included PRs from the merge history.
  • Adapt section headers and content language to the project's CLAUDE.md language setting.
  • Do NOT create files that don't already exist in the project. Only update existing files.
  • Always prioritize the project's own conventions and release process over the defaults above.
  • Assignee: Always include --assignee @me in gh pr create. Never omit it.
  • Commit references: Never wrap commit SHAs in backticks (e.g., ` abc1234 ). Backtick-wrapped SHAs render as inline code and are not clickable on GitHub. Use plain text (GitHub auto-links SHAs) or explicit markdown links: {short_sha}`.

平台分布

Codex

36.64%
按下载量换算48

Claude

33.05%
按下载量换算44

Cursor

17.9%
按下载量换算24

Gemini CLI

8.76%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills