git-pr
创建拉取请求时使用。基于分支更改生成PR标题和描述。
📖 中文导读:创建拉取请求时使用。基于分支更改生成PR标题和描述。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: git-pr description: Used when creating pull requests. Generates PR title and description based on branch changes.
Git Pull Request
Create a pull request with appropriate title and description.
Steps
- Use the base branch specified in the command arguments
- Analyze all commits and changes from base branch
- Generate PR title and description:
- Title: Single-line summary using conventional commit format
- Description: If template exists, fill it in with appropriate content. Otherwise, include summary, test plan, and changes overview
- Match language (English/Japanese) from commit history
- Push branch if needed:
git push -u origin <branch> - Create PR with base branch:
gh pr create --draft --base <base-branch> --title "title" --body "description" - Return PR URL
Notes
- No Claude Code references
- Analyze ALL commits in the branch, not just the latest
- Include base branch comparison (e.g.,
git diff main...HEAD) - Push with
-uflag if branch not yet pushed - PR template locations to check:
.github/pull_request_template.md,.github/PULL_REQUEST_TEMPLATE.md - If template exists, respect its structure and fill in all sections appropriately