Token导航 LogoToken导航

Agent Skill · 研究检索

agent-pr-creator(Agent 公关创建者)

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

agent-pr-creator 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 45,663。

总安装 832周安装 35GitHub Stars 13下载 291核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/ravnhq/ai-toolkit --skill agent-pr-creator

这个 Skill 是做什么的

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

用于分析 Git diff 和提交历史,智能填充 PR 模板并创建拉取请求。适合在代码审查、分支管理和协作流程中自动生成 PR 上下文。通过 gh CLI 检测目标分支、读取项目模板并填充变更内容后创建 PR。需确认 GitHub CLI 已授权,且具备仓库读写权限,避免误操作。

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

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

agent-pr-creator 怎么安装?

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

agent-pr-creator 支持哪些 AI 工具?

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

agent-pr-creator 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

agent-pr-creator 是免费的吗?

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

agent-pr-creator 用的人多吗?

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

agent-pr-creator 安全吗?

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

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

值得选的地方

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

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 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调用外部服务未明确有提醒
agent-pr-creator

Agent 公关创建者 · 本页

83213接触敏感数据未明确通过

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

SKILL.md 原文

Agent PR Creator

Analyze git diffs and commit history to intelligently fill PR templates and create pull requests via gh CLI. This skill walks through detecting the base branch, analyzing changes, reading the project's PR template, filling it with context from commits and diffs, and creating the PR.

Workflow

Phase 1: Detect Base Branch and Check for Existing PR

Determine what base branch this PR will target:

# Check if develop exists; fall back to main
git rev-parse --verify develop 2>/dev/null && echo "develop" || echo "main"

# Current branch
git branch --show-current

Check if a PR already exists for the current branch:

gh pr list --head $(git branch --show-current) --json number,url,title

If a PR exists, stop and inform the user. Ask if they want to update the description with gh pr edit instead.

Gate: If there are uncommitted changes or the branch is behind remote, warn the user and stop:

# Check for uncommitted changes
git status --porcelain

# Check if branch is behind remote
git rev-parse @{u} 2>/dev/null && git log --oneline @..@{u}

If the branch has no remote tracking, push with -u before creating the PR:

git push -u origin $(git branch --show-current)

Phase 2: Analyze Changes

Gather the full context of changes since the base branch:

# Get the base branch
BASE=$(git rev-parse --verify develop 2>/dev/null && echo "develop" || echo "main")

# Changed files
git diff ${BASE}...HEAD --name-only

# Commit log with oneline format
git log --oneline ${BASE}..HEAD

# Diff stats (file-level changes)
git diff ${BASE}...HEAD --stat

# Full diff for review (optional, context-dependent)
git diff ${BASE}...HEAD

Analyze the changes to understand:

  • What files were modified and in what areas (frontend, backend, tests, docs, config)
  • How many commits were made
  • What conventional commit types are present (feat, fix, refactor, test, docs, chore)
  • Any breaking changes (API changes, schema migrations, config format changes)
  • Whether this is a refactor, new feature, bug fix, or combination

Phase 3: Read the PR Template

Locate and read the project's PR template:

# Standard locations
ls -la .github/PULL_REQUEST_TEMPLATE.md .github/pull_request_template.md PULL_REQUEST_TEMPLATE.md pull_request_template.md 2>/dev/null | head -1

If found, read the entire template to understand:

  • All required sections (Description, Type of Change, Breaking Changes, Screenshots, Notes, Checklist)
  • Exact checkbox labels and options
  • Any specific instructions or conventions the project uses

If no template is found, create a minimal PR with just title and description.

Phase 4: Fill the PR Template

Fill each section of the template based on the changes:

Title: Use conventional commit format

  • Prefix: feat:, fix:, refactor:, docs:, test:, chore: based on the majority of commits
  • Format: <type>: <short description>
  • Keep under 70 characters
  • Use imperative mood ("add", "fix", "update", not "added", "fixed", "updates")
  • Example: feat: add authentication service integration

Description:

  • Analyze the diff and commits to write 2-3 sentence summary of what changed and why
  • Focus on business value, not implementation details
  • Group logically if multiple areas were modified (e.g., "Database layer changes to improve query performance. Frontend changes to display new metrics. New monitoring queries added to dashboard.")
  • Reference Linear/issue IDs if present in branch name or commits (e.g., PUL3-34, #123)
  • Example: "Adds OAuth 2.0 authentication flow for third-party integrations. Uses standard OIDC provider patterns to support multiple identity services. Closes PUL3-42."

Type of Change:

  • Analyze commit prefixes: feat → New Feature, fix → Bug Fix, refactor → Code Refactoring, test → Tests, docs → Documentation, chore/build → Build/Config
  • Check boxes that match: [x] for selected, [] for unselected
  • Use exact checkbox labels from the template — do not rewrite or paraphrase
  • Multiple boxes can be checked (e.g., a feature PR might also include tests)

Breaking Changes:

  • Analyze if any of these were modified:

- Public API contracts (function signatures, endpoints, exported types) - Database schemas (new required fields, removed columns, type changes) - Environment variables (new required vars, removed vars, changed format) - Config file formats (structure, required keys, deprecated options) - Removed exports or public methods

  • If yes: check "Yes" and explain what breaks and required migration steps
  • If no: check "No"
  • Example: "Yes — POST /api/auth/login now requires oauth_provider field. Existing calls without this field will return 400. Migrate by updating client-side auth code to specify the provider."

Screenshots / Videos:

  • If changes touch UI files (src/components/, pages/, app/, or file extensions like .jsx, .tsx, .vue): add placeholder <!-- Please attach screenshots/videos of UI changes -->
  • Otherwise: write N/A — No UI changes

Additional Notes / Checklist:

  • Mention deployment steps if non-standard (database migrations, environment setup, service restarts)
  • Mention dependencies on other PRs or services
  • Add reviewer instructions if changes require specific testing paths or edge cases
  • If nothing special: N/A or leave empty per template style

Phase 5: Create the PR

Use gh pr create with the filled template and title:

gh pr create \
  --base ${BASE} \
  --title "<type>: <short description>" \
  --body "<filled template body as HEREDOC or string>"

Example:

gh pr create --base develop \
  --title "feat: add authentication service integration" \
  --body $'## Description\nAdds OAuth 2.0 support for third-party integrations.\n\n## Type of Change\n- [x] New Feature\n- [ ] Bug Fix\n\n## Breaking Changes\n- [ ] Yes\n- [x] No\n\n## Screenshots\nN/A'

Important: Preserve markdown formatting from the template. Use shell HEREDOC ($'...') or multi-line strings to maintain section separators and formatting.

Phase 6: Confirm and Report

After gh pr create succeeds, output:

  1. The PR URL (e.g., https://github.com/owner/repo/pull/456)
  2. PR number
  3. A brief summary of what was included (types of changes, key areas affected)
  4. Mention if any reviewers were auto-assigned or any special status (draft, ready for review)

Example output:

PR created: https://github.com/ravn/ai-toolkit/pull/123
Type: feat (New Feature)
Changes: 3 files, 156 additions
Affected areas: Authentication service, OAuth integration tests
Ready for review.

Examples

Positive Trigger

User: "fill the PR template and create a pull request for my branch"

Expected behavior: Use agent-pr-creator workflow to analyze git history, read the PR template, fill all sections intelligently based on the changes, and create the PR via gh pr create.


User: "I need to open a pull request with a good description"

Expected behavior: Use agent-pr-creator to gather context from commits and diffs, analyze the change type (feat/fix/refactor), detect breaking changes, and create a comprehensive PR with proper title and body following conventions.


User: "Make a PR to main"

Expected behavior: Use agent-pr-creator to detect the base branch, analyze all changes since branching, fill the template following project conventions, and create the PR.

Non-Trigger

User: "Review this pull request: https://github.com/org/repo/pull/123"

Expected behavior: Do not use agent-pr-creator. The user wants to review an existing PR, not create one. Use gh pr view or a review skill instead.


User: "What changes are in my branch?"

Expected behavior: Do not use agent-pr-creator. The user wants to see changes, not create a PR. Use git diff or git log directly.

Troubleshooting

Skill Does Not Trigger

  • Error: The skill is not selected when the user asks to create a PR.
  • Cause: Request wording does not match trigger phrases. Request used generic words like "review" or "commit" instead of "create PR", "open PR", or "make PR".
  • Solution: Rephrase with explicit PR creation keywords like "create a pull request", "make a PR", or "open a PR" and retry.

PR Template Not Found

  • Error: Cannot find .github/PULL_REQUEST_TEMPLATE.md or similar.
  • Cause: Project does not have a PR template, or it's in a non-standard location.
  • Solution: Search for template files in .github/ and common root locations. If none exist, create a minimal PR with just title and description using the conventional commit format.

PR Already Exists for This Branch

  • Error: gh pr create fails because a PR already exists for this branch.
  • Cause: The branch already has an open PR.
  • Solution: Inform the user of the existing PR URL and ask if they want to update the description using gh pr edit <PR> instead of creating a new one.

Uncommitted Changes or Branch Behind Remote

  • Error: Cannot create PR due to uncommitted changes or branch being behind remote.
  • Cause: Working directory has unstaged/uncommitted changes or local branch is behind upstream.
  • Solution: For uncommitted changes: warn the user and suggest committing with /commit or stashing first. For branch behind: pull and rebase before creating the PR.

Missing Remote Tracking Branch

  • Error: gh pr create fails because branch has no upstream tracking.
  • Cause: Local branch has never been pushed to the remote.
  • Solution: Push the branch first with git push -u origin <branch-name>, then create the PR.

gh CLI Authentication Failed

  • Error: gh commands fail with "not authenticated" or "token expired" error.
  • Cause: GitHub CLI is not logged in or the auth token has expired.
  • Solution: Run gh auth login to re-authenticate, then retry the skill.

平台分布

Codex

34.48%
按下载量换算100

Claude

30.6%
按下载量换算89

Cursor

16.25%
按下载量换算47

Gemini CLI

8.85%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

继续浏览同类 Skills