create-pr
从当前分支创建带有自动生成摘要的拉取请求。用于用户请求创建 PR、提交拉取请求或提交更改时。
📖 中文导读:从当前分支创建带有自动生成摘要的拉取请求。用于用户请求创建 PR、提交拉取请求或提交更改时。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: create-pr description: Create a pull request from the current branch with an auto-generated summary. Use when user asks to create a PR, make a pull request, or submit changes. allowed-tools: Bash(git:), Bash(gh:), Read, Grep
Create Pull Request
Instructions
Verify current branch state
git status git log origin/main..HEAD --oneline git diff origin/main...HEADAnalyze all commits since divergence from main
- Review ALL commits that will be included (not just the latest)
- Check file changes across the entire branch
- Understand the complete scope of changes
Generate PR title and body
- Title: Concise summary (50 chars max)
- Body format:
## Summary - Bullet points covering ALL changes in the branch ## Test plan - [ ] Checklist of verification steps - [ ] Manual testing performed - [ ] Automated tests added/updated 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Push and create PR
# Push if needed git push -u origin HEAD # Create PR gh pr create --title "Title" --body "$(cat <<'EOF' [PR body here] EOF )"Return PR URL to the user
Best Practices
- Review the FULL git history, not just the last commit
- Include testing instructions in the test plan
- Mention breaking changes prominently
- Link related issues/tickets if mentioned in commits