Token导航 LogoToken导航TokenDH.com
待分类只读github未标认证来源可访问许可证需确认审计通过

create-pull-request创建拉取请求

Agent Skill

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

总安装

374

周安装

15

GitHub Stars

公开资料未说明

下载量

121
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/yonderlab/kota.agent.skills --skill create-pull-request

简介

create-pull-request 用于辅助创建和管理 GitHub Pull Request。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中查询项目状态、整理变更并推进协作流程。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 涉及写入操作时需确认 token 权限和目标仓库授权范围。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Create Pull Request

Preconditions

  1. Verify gh auth status succeeds. If not, prompt user to run gh auth login.
  2. Verify not on main/master. If so, prompt user to create a feature branch.
  3. Verify no uncommitted changes. If found, prompt user to commit first (consider using conventional-commit skill).
  4. If no upstream exists, run git push -u origin HEAD.

PR Template

The PR description must follow the team's template structure. See references/pr-template.md for the full template, validation rules, and examples.

Required sections:

  1. About PR 📝 - What changed and why (cannot be empty)
  2. Preview 🖼️ - Screenshot/recording (required for: Bug fix, New feature, Refactor, Improvement)
  3. How to test 🧪 - Testing instructions for reviewers
  4. Type of change 🔧 - Check at least one checkbox

Validation levels:

  • BLOCKING: New feature, Improvement (PR cannot merge if validation fails)
  • WARNING: Bug fix, Refactor
  • INFORMATIONAL: Documentation, Testing

Steps

1. Gather context

git diff main...HEAD --stat
git log main..HEAD --oneline

Understand: What problem does this solve? What is the impact?

2. Determine PR type

Identify the primary type based on changes. If multiple apply, choose the primary one.

3. Collect visual proof (if required)

For Bug fix, New feature, Refactor, or Improvement:

  • Ask the user to provide a screenshot, recording, or link
  • Verify the format is acceptable (see acceptable formats above)
  • If the user cannot provide visual proof, warn them that:

- Automated validation (if present) will fail - Manual review will require justification for missing visual proof

4. Draft the PR description

Use the template from references/pr-template.md:

## About PR 📝

[2-3 sentences on value/impact, not implementation details]

## Preview (screenshot or recording) 🖼️

[If required: screenshot, video, or link]

## How to test 🧪

1. [Step-by-step testing instructions]
2. [What reviewers should check]

## Type of change 🔧

- [ ] Bug fix 🐛
- [ ] New feature ✨
- [ ] Refactor 🧹
- [ ] Improvement 📈
- [ ] Documentation 📝
- [ ] Testing 🧪

Mark the appropriate type with [x].

5. Generate a concise title

Create a title that:

  • Starts with a verb (Add, Fix, Update, Refactor, etc.)
  • Is concise (< 72 characters)
  • Describes the change, not the implementation

Examples:

  • ✅ "Add user profile settings page"
  • ✅ "Fix age validation for student dependants"
  • ❌ "Update UserProfile.tsx and add new component"

6. Create the PR

Use the GitHub CLI to create the PR:

gh pr create --title "Your title here" --body "$(cat <<'EOF'
[Your complete PR description here]
EOF
)"

If creating a draft PR:

gh pr create --draft --title "Your title here" --body "$(cat <<'EOF'
[Your complete PR description here]
EOF
)"

7. Verify creation

After creation:

  • Display the PR URL to the user
  • If the repository has automated PR validation (e.g., scripts/validate-pr-description.js), note that GitHub Actions will validate the PR description
  • Remind the user to review the PR checklist manually if no automated validation exists
  • The PR can be edited on GitHub if any issues are found

Validation Checklist

Verify the PR includes:

  1. About PR section - Substantive content explaining value/impact
  2. Type of change - At least one checkbox selected
  3. Visual proof (if applicable) - For Bug fix, New feature, Refactor, Improvement
  4. Testing instructions - Clear steps for reviewers
  5. Meaningful title - Concise, verb-first description

Notes

  • Do not create PRs with empty or placeholder descriptions
  • Visual proof is required for the specified types
  • The PR can be edited after creation if validation fails

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.48%
按下载量换算45

Claude

28.44%
按下载量换算34

Cursor

19.08%
按下载量换算23

Gemini CLI

9.62%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills