Create a git commit with semantic commit message format and create a pull request
Creates a semantic commit and opens a pull request with proper branch naming.
/plugin marketplace add duyet/claude-plugins/plugin install commit@duyet-claude-pluginsgit statusgit diff HEADgit branch --show-currentgit remote show origin | grep 'HEAD branch' | cut -d' ' -f5git log --oneline -5Create a semantic commit and open a pull request for the changes.
Look at the diff and determine:
Check current branch against default branch (main/master):
If current branch IS main/master:
git checkout -b [type]/[short-description]
Examples:
feat/add-user-authfix/login-validationrefactor/api-endpointsIf current branch is NOT main/master:
git add .
git commit -m "type(scope): description
Co-Authored-By: duyetbot <duyetbot@users.noreply.github.com>"
git push -u origin [branch-name]
gh pr create --title "[commit message]" --body "$(cat <<'EOF'
## Summary
[1-2 sentence description of what this PR does]
## Changes
[Bullet list of key changes]
---
Generated with Claude Code
EOF
)"
| Type | Branch Prefix | Example |
|---|---|---|
| feat | feat/ | feat/add-dark-mode |
| fix | fix/ | fix/null-pointer |
| refactor | refactor/ | refactor/auth-module |
| docs | docs/ | docs/api-readme |
| chore | chore/ | chore/update-deps |
type(scope): description (imperative mood)If on main with changes to add user authentication:
# Create feature branch
git checkout -b feat/user-authentication
# Stage and commit
git add .
git commit -m "feat(auth): add user authentication flow
Co-Authored-By: duyetbot <duyetbot@users.noreply.github.com>"
# Push new branch
git push -u origin feat/user-authentication
# Create PR
gh pr create --title "feat(auth): add user authentication flow" --body "..."
Output the PR URL when complete.