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

  1. Use the base branch specified in the command arguments
  2. Analyze all commits and changes from base branch
  3. 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
  4. Match language (English/Japanese) from commit history
  5. Push branch if needed: git push -u origin <branch>
  6. Create PR with base branch: gh pr create --draft --base <base-branch> --title "title" --body "description"
  7. 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 -u flag 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