Token导航 LogoToken导航

Agent Skill · 研究检索

create-pull-request(创建拉取请求)

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

create-pull-request 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 68,166。

总安装 235周安装 10GitHub Stars 3下载 82核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/oldwinter/skills --skill create-pull-request

这个 Skill 是做什么的

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

create-pull-request 用于围绕 GitHub 仓库、Issue、PR 和分支提供辅助能力。适合查询项目状态、整理变更、辅助创建 PR 或检查协作事项。通过 npx skills add 命令从指定仓库安装并使用。涉及写入操作时需确认 token 权限和仓库访问范围。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

create-pull-request 怎么安装?

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

create-pull-request 支持哪些 AI 工具?

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

create-pull-request 需要什么权限?

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

create-pull-request 是免费的吗?

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

create-pull-request 用的人多吗?

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

create-pull-request 安全吗?

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

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

值得选的地方

  • 同时适配 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调用外部服务未明确有提醒
create-pull-request

创建拉取请求 · 本页

2353操作浏览器未明确有提醒

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

SKILL.md 原文

Create Pull Request

This skill guides you through creating a well-structured GitHub pull request that follows project conventions and best practices.

Prerequisites Check

Before proceeding, verify the following:

1. Check if gh CLI is installed

gh --version

If not installed, inform the user:

The GitHub CLI (gh) is required but not installed. Please install it: - macOS: brew install gh - Other: https://cli.github.com/

2. Check if authenticated with GitHub

gh auth status

If not authenticated, guide the user to run gh auth login.

3. Check for related skills

Before creating a PR, check if any skills are available that relate to code review, CI, or testing. These should be invoked first as prerequisites.

Look for skills with descriptions containing:

  • "review" (e.g., code review, PR review, web-design-guidelines)
  • "CI" or "ci-fix" (e.g., fixing CI failures)
  • "testing" or "test" (e.g., running tests, webapp-testing)

If such skills exist, invoke them before proceeding with PR creation. For example:

  • If a ci-fix skill exists and CI is failing, use it to diagnose and fix issues
  • If a web-design-guidelines skill exists for UI changes, use it to review the changes
  • If a testing skill exists, use it to ensure tests pass

Only proceed with PR creation after these prerequisite skills have been satisfied.

4. Verify clean working directory

git status

If there are uncommitted changes, ask the user whether to:

  • Commit them as part of this PR
  • Stash them temporarily
  • Discard them (with caution)

Check for Existing PR

Before gathering context, check if a PR already exists for the current branch:

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

If a PR already exists:

  • Display the existing PR details (number, title, URL)
  • Ask the user if they want to:

- View the existing PR: gh pr view - Update the existing PR (push more commits and the PR will update automatically) - Close the existing PR and create a new one

Only proceed with creating a new PR if no PR exists for this branch.

Gather Context

1. Identify the current branch

git branch --show-current

Ensure you're not on main or master. If so, ask the user to create or switch to a feature branch.

2. Find the base branch

git remote show origin | grep "HEAD branch"

This is typically main or master.

3. Analyze recent commits relevant to this PR

git log origin/main..HEAD --oneline --no-decorate

Review these commits to understand:

  • What changes are being introduced
  • The scope of the PR (single feature/fix or multiple changes)
  • Whether commits should be squashed or reorganized

4. Review the diff

git diff origin/main..HEAD --stat

This shows which files changed and helps identify the type of change.

Information Gathering

Gather the following information from available context (commit messages, branch names, changed files):

Information to Extract

  1. Related Issue Number: Look for patterns like #123, fixes #123, or closes #123 in:

- Commit messages - Branch name (e.g., fix/issue-123, feature/123-new-login) - If found, include it in the PR title and/or description - If not found, proceed without it

  1. Description: What problem does this solve? Why were these changes made?

- Infer from commit messages and diff - Describe the changes made

  1. Type of Change: Bug fix, new feature, breaking change, refactor, cosmetic, documentation, or workflow

- Determine from commit messages and changed files

  1. Test Procedure: How was this tested? What could break?

- Mention test files if they were modified - Describe testing approach if evident from changes

Intelligent PR Title Generation

The PR title should be descriptive and meaningful. Avoid generic titles like:

  • "initial commit"
  • "fix"
  • "update"
  • "changes"

Instead, create a title that clearly summarizes the changes. Consider these approaches:

1. Conventional Commits Format

Check if the project uses conventional commits by analyzing:

  • Commit messages for patterns like feat:, fix:, docs:, refactor:, test:, chore:
  • Branch name prefixes like feat/, fix/, docs/

If conventional commits are detected, use the appropriate prefix for the PR title:

  • feat: Add user authentication with OAuth
  • fix: Resolve memory leak in data processing
  • docs: Update API documentation for v2 endpoints
  • refactor: Simplify error handling logic
  • test: Add integration tests for payment flow
  • chore: Update dependencies to latest versions

Include issue number if found:

  • feat: Add user authentication with OAuth (#123)
  • fix(auth): Resolve memory leak in data processing (fixes #456)
2. Descriptive Summary

If not using conventional commits, create a clear, action-oriented title:

  • Good: "Add pagination to search results"
  • Bad: "initial commit"
  • Good: "Fix race condition in authentication flow"
  • Bad: "fix bug"

Include issue number if found:

  • "Add pagination to search results (#123)"
  • "Fix race condition in authentication flow (fixes #456)"
3. Title Generation Strategy
  1. Look at the most significant commit message (often the first or last)
  2. Identify the main change from the diff (new feature, bug fix, etc.)
  3. Extract the issue title if linked
  4. If none of these provide a good title, synthesize one from the changed files and their purpose
  5. Append issue number to title if found in commits or branch name

Git Best Practices

Before creating the PR, consider these best practices:

Commit Hygiene

  1. Atomic commits: Each commit should represent a single logical change
  2. Clear commit messages: Follow conventional commit format when possible
  3. No merge commits: Prefer rebasing over merging to keep history clean

Branch Management

  1. Rebase on latest main (if needed): git fetch origin git rebase origin/main
  2. Squash if appropriate: If there are many small "WIP" commits, consider interactive rebase: git rebase -i origin/main Only suggest this if commits appear messy and the user is comfortable with rebasing.

Push Changes

Ensure all commits are pushed:

git push origin HEAD

If the branch was rebased, you may need:

git push origin HEAD --force-with-lease

Create the Pull Request

IMPORTANT: Read and use the PR template at .github/pull_request_template.md if it exists. The PR body format should match the template structure.

When filling out the template:

  • Include issue number (e.g., Fixes #123, Closes #456) if found in context
  • If no template exists, create a clear description with:

- Summary of changes - Related issue (if found) - Testing performed - Any breaking changes or notable impacts

  • Fill in all sections with relevant information gathered from commits and context
  • Mark the appropriate "Type of Change" checkbox(es) if template has them
  • Complete any checklist items that apply

Draft PR Decision

Decide whether to create a draft PR or a regular PR based on the following:

Use --draft flag when:

  • Changes are incomplete or work-in-progress, but you want early feedback
  • Tests are currently failing and you need help debugging
  • You're blocked on an architectural decision and need guidance
  • Creating the PR as a bookmark for work you'll continue later
  • You want to trigger CI checks but aren't ready for full review

Use regular PR (no --draft) when:

  • All tests pass and code is ready for review
  • Changes are complete and you're confident in the approach
  • You want the PR to be reviewed and merged soon

Create PR with gh CLI

For a regular PR:

gh pr create --title "PR_TITLE" --body "PR_BODY" --base main

For a draft PR:

gh pr create --title "PR_TITLE" --body "PR_BODY" --base main --draft

Post-Creation

After creating the PR:

1. Open PR in browser for verification

Immediately open the PR in the browser to verify it was created correctly:

gh pr view --web

This allows you to:

  • Verify the PR title and description render correctly
  • Check that all links work (issue references, etc.)
  • Ensure the diff looks as expected
  • See any immediate CI status

2. Remind about CI checks

Tests and linting will run automatically. Monitor the checks to ensure they pass.

3. Suggest next steps (if needed)

  • Add reviewers if needed: gh pr edit --add-reviewer USERNAME
  • Add labels if needed: gh pr edit --add-label "bug"

Error Handling

Common Issues

  1. No commits ahead of main: The branch has no changes to submit

- Ask if the user meant to work on a different branch

  1. Branch not pushed: Remote doesn't have the branch

- Push the branch first: git push -u origin HEAD

  1. PR already exists: A PR for this branch already exists

- Show the existing PR: gh pr view - Ask if they want to update it instead

  1. Merge conflicts: Branch conflicts with base

- Guide user through resolving conflicts or rebasing

Summary Checklist

Before finalizing, ensure:

  • gh CLI is installed and authenticated
  • Related review/CI/testing skills have been invoked
  • No existing PR exists for this branch
  • Working directory is clean
  • All commits are pushed
  • Branch is up-to-date with base branch
  • PR title is descriptive and meaningful (not generic)
  • PR title uses conventional commit format if project uses it
  • Issue number included in title/description if found in context
  • PR description follows template (if template exists)
  • Appropriate type of change is selected
  • Correct draft/regular status chosen
  • PR opened in browser for verification

平台分布

Codex

32.44%
按下载量换算27

Claude

32.41%
按下载量换算27

Cursor

20.66%
按下载量换算17

Gemini CLI

8.56%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

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

继续浏览同类 Skills