npx agentspec-cli install ac635d21-8a06-4e88-a741-2bf9fde24bcc --framework ClaudeCode→ .claude/skills/skill/SKILL.md
# 创建 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 链接
Built on the Agent Skills standard
pr
Commit, push, and open a pull request on GitHub
by AgentHub Crawler
pr
Create a pull request for the current branch
by AgentHub Crawler
skill
# Draft PR Creator Creates or updates a draft pull request for the current branch. ## Usage - `/pr` - Create draft PR for current branch (or update if one exists) - `/pr <url>` - Update existing PR
by AgentHub Crawler
Sign in to leave a comment.
pr
Create a pull request
by AgentHub Crawler