From git
Use when the user wants to push changes and create a GitHub PR — /git:pull-request, "PR 만들어", "PR 생성", "push하고 PR", or any request to open a pull request
How this skill is triggered — by the user, by Claude, or both
Slash command
/git:pull-requestThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Push a feature branch and create a GitHub PR after user confirmation.
Push a feature branch and create a GitHub PR after user confirmation.
git branch --show-current
git remote -v
Detect the repository's default branch:
DEFAULT_BRANCH=$(gh repo view --json defaultBranchRef -q '.defaultBranchRef.name' 2>/dev/null || echo "main")
If working in a Claude Code worktree (worktree-<BRANCH>), extract the feature branch name:
worktree-feature/foo → feature/fooworktree-bugfix/bar → bugfix/bargit diff $DEFAULT_BRANCH...HEAD --stat
git log $DEFAULT_BRANCH..HEAD --oneline
Review the number of changed files, added/deleted lines, and commit list.
Title (under 70 chars, Conventional Commits format):
<type>(<scope>): <description>
Body (HEREDOC):
## Summary
- <key changes summary>
## Motivation
<reason for the change / problem being solved>
## Changes
- <specific change details>
## Test plan
- [ ] Build passes
- [ ] Tests pass
- [ ] <add project-specific verification steps>
Adapt the test plan items to the project's actual build and test commands.
Check if the remote branch already exists:
git ls-remote --heads origin <FEATURE_BRANCH>
If the remote branch already exists:
git log origin/<FEATURE_BRANCH>..HEAD --oneline # commits only in local
git log HEAD..origin/<FEATURE_BRANCH> --oneline # commits only in remote
Display the following and wait for confirmation:
Push target: <CURRENT_BRANCH> → origin/<FEATURE_BRANCH>
Remote branch: [new | already exists — local +N / remote +M commits]
Changes: <FILES> files, +<ADD> -<DEL>
PR title: <TITLE>
PR base: <DEFAULT_BRANCH> ← <FEATURE_BRANCH>
Proceed? (y/N)
Any input other than y is treated as abort.
# Push worktree branch → feature branch
git push origin <CURRENT_BRANCH>:<FEATURE_BRANCH>
# Create PR
gh pr create \
--title "<TITLE>" \
--body "$(cat <<'EOF'
## Summary
...
EOF
)" \
--head <FEATURE_BRANCH> \
--base $DEFAULT_BRANCH
Output the PR URL.
| Situation | Action |
|---|---|
| Push conflict | Abort, suggest git pull --rebase |
| PR already exists | Display PR URL and abort |
| gh authentication error | Guide user to run gh auth status |
| Unclear branch name pattern | Ask user for the feature branch name |
/git:pull-request
PR 만들어줘
push하고 PR 생성해
npx claudepluginhub ppzxc/engineering-guidelines --plugin gitCreates GitHub pull requests from current branch using repo templates, conventional commit titles, issue linking from commits/branch, and gh CLI. Invoke with $create-pr after implementation.