Skip to content
Back to skills

Pr

ASecurity

创建 PR 并自动生成描述。用法: /pr [目标分支](默认 main)

  • 13 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
databashgit

Works with

  • cli

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add andaoai/yolo-label-vs --skill pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andaoai-yolo-label-vs/badge)](https://www.skillsdirectory.com/skills/andaoai-yolo-label-vs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pr
description: 创建 PR 并自动生成描述。用法: /pr [目标分支](默认 main)
argument-hint: "[target-branch]"
disable-model-invocation: true
allowed-tools: Bash(git *) gh
---

# 创建 Pull Request

根据当前分支与目标分支的差异,生成结构化 PR 描述并创建 PR。

## 当前状态

```!
git branch --show-current
git log --oneline ${1:-main}..HEAD
git diff --stat ${1:-main}..HEAD
```

## 步骤

1. 用上面的 commits 和 diff 信息,生成 PR 描述(中文),结构:
   - **Summary**: 3-5 条要点
   - **Changes**: 按模块分组,列出关键文件
   - **Test Plan**: 验证清单

2. PR 标题格式:`<type>: <简要描述>`,type 从 commits 推断

3. 创建 PR:`gh pr create --base ${1:-main} --head <当前分支> --title <标题> --body <描述>`
   - 若 `gh` 不在 PATH,尝试:`"/c/Program Files/GitHub CLI/gh.exe" pr create ...`

4. 输出 PR 链接

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.