Token导航 LogoToken导航

Agent Skill · 运维和基础设施

pull-request(拉取请求)

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

pull-request 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,第三方扫描已通过,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 2,296。

总安装 214周安装 9GitHub Stars 5下载 75核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/arcblock/agent-skills --skill pull-request

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

用于管理和操作 GitHub 上的 Pull Request。适合代码评审、分支合并与协作流程自动化。通过 arcblock/agent-skills 仓库安装并配置 token。创建或修改 PR 需确保 token 具有相应仓库权限。

pull-request 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/pull-request

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

pull-request 怎么安装?

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

pull-request 支持哪些 AI 工具?

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

pull-request 需要什么权限?

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

pull-request 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

pull-request 用的人多吗?

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

pull-request 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

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

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
pull-request

拉取请求 · 本页

2145操作浏览器MIT通过

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

SKILL.md 原文

Pull Request Skill

Generate standardized Pull Requests by analyzing the diff between current branch and main branch.

Step 0: Check for Project PR Template (IMPORTANT)

CRITICAL: Before generating PR content, ALWAYS check if the project has a custom PR template:

# Check for PR template in common locations
ls -la .github/PULL_REQUEST_TEMPLATE.md 2>/dev/null || \
ls -la .github/PULL_REQUEST_TEMPLATE/ 2>/dev/null || \
ls -la docs/PULL_REQUEST_TEMPLATE.md 2>/dev/null

If a PR template exists:

  1. Read the template file using the Read tool
  2. Use that template's structure for the PR body
  3. Fill in each section according to the template's format and comments
  4. Keep any checkboxes or structured lists from the template

If no PR template exists: Use the default template defined below.

PR Template (Default - Use only if no project template exists)

Based on analysis of high-quality PRs, use this template:

Title Format

<type>(<scope>): <description>

Types (same as Conventional Commits):

TypeDescription
featNew feature
fixBug fix
docsDocumentation only
styleCode style changes
refactorCode refactoring
perfPerformance improvement
testAdd or modify tests
choreBuild process or tools
ciCI/CD configuration
buildBuild system changes

Scope: Optional, indicates affected module (e.g., devflow, blocklet, auth)

Description:

  • Imperative mood ("add" not "added")
  • Lowercase first letter
  • No period at end
  • Under 72 characters

Body Format

## Summary

<1-5 bullet points describing key changes>

## Motivation / Context

<Why this change is needed - the problem being solved>

## Changes

<Detailed list of what was changed, organized by area>

## Test Plan

<How to verify the changes work correctly>
- [ ] Step 1
- [ ] Step 2

---

Generated with [Claude Code](https://claude.com/claude-code)

Workflow

Step 1: Gather Branch Information

# Get current branch name
git branch --show-current

# Get main branch (usually 'main' or 'master')
git remote show origin | grep 'HEAD branch' | cut -d' ' -f5

# Check if branch is pushed to remote
git status -sb

Step 2: Analyze All Commits and Changes

IMPORTANT: Analyze ALL commits from branch divergence point, not just the latest commit.

# Get the merge base (where current branch diverged from main)
git merge-base main HEAD

# View all commits since diverging from main
git log main..HEAD --oneline

# Get comprehensive diff statistics
git diff main...HEAD --stat

# Get full diff for content analysis
git diff main...HEAD

Step 3: Generate PR Content

Based on the diff analysis:

  1. Determine type: Look at the nature of changes

- New files/features → feat - Bug fixes → fix - Only.md files → docs - Only test files → test - Configuration/tooling → chore

  1. Identify scope: Look at which module/area is most affected
  2. Use project template if exists: If Step 0 found a PR template:

- Read the template file - Fill in each section according to the template's structure - Keep all checkboxes from the template (check appropriate ones based on changes) - Respect the template's language (Chinese/English) - Follow any instructions in HTML comments

  1. Otherwise use default template:

- Write summary: Capture the essence of ALL commits, not just one - Document motivation: Explain why these changes are needed - List changes: Organize by logical groupings - Create test plan: Practical verification steps

Step 4: Present PR Draft and Ask User

Display the generated PR title and body to the user, then use AskUserQuestion to determine next action:

{
  "questions": [{
    "question": "How would you like to proceed with this PR?",
    "header": "PR Action",
    "options": [
      {"label": "Save as PR.md (Recommended)", "description": "Save PR content to PR.md file in project root (will overwrite if exists)"},
      {"label": "Submit via gh", "description": "Create PR directly using GitHub CLI"}
    ],
    "multiSelect": false
  }]
}

Step 5A: If "Save as PR.md"

Write the PR content to ./PR.md in the project root:

# PR Title

<type>(<scope>): <description>

---

## Summary

...

## Motivation / Context

...

## Changes

...

## Test Plan

...

---

Generated with [Claude Code](https://claude.com/claude-code)

Inform user that PR.md has been created (or overwritten if it existed).

Step 5B: If "Submit via gh"

5B.1: Check gh CLI availability
which gh

If gh is not found:

GitHub CLI (gh) is not installed. Please install it:

- macOS: brew install gh
- Linux: See https://github.com/cli/cli/blob/trunk/docs/install_linux.md
- Windows: winget install --id GitHub.cli

After installation, run: gh auth login
5B.2: Check gh authentication
gh auth status

If not authenticated or token lacks permissions:

GitHub CLI is not authenticated or lacks permissions. Please run:

gh auth login

Select:
- GitHub.com
- HTTPS
- Authenticate with browser (recommended)

Ensure you grant 'repo' scope for creating PRs.
5B.3: Check if branch is pushed
git status -sb

If branch is not pushed to remote:

# Push current branch to origin
git push -u origin $(git branch --show-current)
5B.4: Create the PR
gh pr create --base main --title "<title>" --body "$(cat <<'EOF'
<body content>
EOF
)"
5B.5: Report Success

Display the PR URL and summary to the user.

Example Output

Title

feat(devflow): add PR generation skill

Body

## Summary

- Add new `pull-request` skill for generating standardized Pull Requests
- Analyze diff between current branch and main branch
- Support both gh CLI submission and PR.md file generation
- Include comprehensive PR template based on best practices

## Motivation / Context

Creating consistent, well-documented PRs is important for code review efficiency.
This skill automates PR generation by analyzing git diff and following established patterns.

## Changes

### New Files
- `.claude/skills/pull-request/SKILL.md` - Pull Request generation skill definition

### Workflow
- Step 1: Gather branch and diff information
- Step 2: Analyze all commits since branch divergence
- Step 3: Generate PR content following template
- Step 4: Ask user for submission method
- Step 5: Execute chosen action (gh submit or save to file)

## Test Plan

- [ ] Run `/pull-request` on a feature branch with changes
- [ ] Verify PR title follows conventional commit format
- [ ] Verify summary captures all changes
- [ ] Test gh submission flow
- [ ] Test PR.md generation flow

Example Output (With Project Template)

When project has .github/PULL_REQUEST_TEMPLATE.md, fill in that template instead:

Title

feat(test): add coverage merge and reporting support

Body (following project template structure)

### 关联 Issue

related: https://github.com/example/repo/issues/123

### 主要改动

1. 新增 `--coverage` 参数支持测试覆盖率收集
2. 创建 `merge-coverage.js` 脚本合并所有子包的覆盖率报告
3. 重新启用 CI 覆盖率报告功能
4. 排除编译后和自动生成的文件以获得准确的覆盖率统计

### 界面截图

N/A (无 UI 变更)

### 测试清单

- [x] 本次变更的地方已经有测试覆盖
- [ ] 本次变更的地方调整了测试覆盖
- [x] 本次变更的地方新增了测试覆盖
- [ ] 本次变更的兼容性测试覆盖了桌面端 Chrome
- [ ] 本次变更的兼容性测试覆盖了桌面端 Safari
- [ ] 本次变更的兼容性测试覆盖了移动端:ArcSphere + DID Wallet
- [ ] 本次变更有新增界面,且我检查了 light 模式下的展示效果
- [ ] 本次变更有新增界面,且我检查了 dark 模式下的展示效果
- [ ] 如果修改 domain 相关 issue, 请检查 server / service / 购买启动中 是否正常

### 检查清单

- [x] 这次变更包含 breaking change,我为 breaking change 编写了 migration script【如果不是 breaking change 可以勾选】
- [ ] 本次变更需要更新文档,并且我更新了相关文档,如果还没更新文档,请新建文档更新的 Issue 并关联上来
- [x] 本次变更中有用户输入的逻辑,用户输入的后端、前端都增加了校验、错误提示
- [ ] 本次变更中新增了修改后端数据的 API,我给这个 API 增加了 AuditLog
- [x] 本次变更中新增了修改后端数据的 API,且该接口返回的数据中不包含敏感信息
- [x] 本次变更新增了文件,对应 package.json 的 files 字段包括了这些新增的文件
- [ ] 本次变更增加了依赖,并且 core/blocklet-services 和 core/webapp 的前端依赖我放在了 devDependencies 里面
- [ ] 本次变更增加了 blocklet/sdk 的依赖,不会导致 bundle 失败
- [ ] 本次变更中有添加或更新 npm 依赖,并且没有导致同 1 个依赖出现多个版本
- [x] 本次变更我已经把 ArcBlock 的依赖升级到了最新
- [ ] (merge master 前检测) 成功 `make build`, `blocklet server init`, `blocklet server start`
- [ ] (merge master 前检测) 成功 `bn dev`, `bn dev --app-id xxx`
- [ ] (merge master 前检测) 我已阅读并理解了发布 beta 版 Server 的手册

---

Generated with [Claude Code](https://claude.com/claude-code)

Rules

  1. Always check for project PR template first - Look for .github/PULL_REQUEST_TEMPLATE.md before generating content
  2. Use project template if exists - Follow the project's PR template structure, language, and checkboxes
  3. Always analyze ALL commits from branch divergence point, not just HEAD
  4. Follow Conventional Commits format for title
  5. Keep title under 72 characters
  6. Include test plan with actionable verification steps
  7. Base PR on main branch (or project's default branch)
  8. Check gh auth before attempting to create PR
  9. Push branch first if not already pushed to remote
  10. Preserve user's intent - ask before overwriting existing PR.md
  11. Respect template language - If project template is in Chinese, write PR body in Chinese

平台分布

Antigravity

27.26%
按下载量换算20

OpenCode

22.87%
按下载量换算17

Codex

20.39%
按下载量换算15

Claude Code

13.91%
按下载量换算10

Gemini CLI

9%
按下载量换算7

windsurf

3.98%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills