Create a pull request following Git best practices:
Creates a pull request with conventional commits and Git best practices.
/plugin marketplace add yanmxa/cc-plugins/plugin install git@cc-pluginsCreate a pull request following Git best practices:
# Set target
TARGET=${ARGUMENTS:-upstream/main}
# 1. Sync & Branch
CURRENT_BRANCH=$(git branch --show-current)
if [[ "$CURRENT_BRANCH" == "main" || "$CURRENT_BRANCH" == "master" ]]; then
# Sync with upstream first
git fetch origin
git pull origin main
# Create feature branch with prefix
# Choose: feature/, fix/, docs/, chore/, refactor/, test/
git checkout -b feature/descriptive-name
fi
# 2. Stage & Commit with conventional format
git add path/to/relevant/files
git commit -s -m "feat: descriptive title
Detailed description of what and why this change is made.
- List specific changes
- Reference issue numbers if applicable"
# 3. Push & Create PR
git push -u origin $(git branch --show-current)
gh pr create --base ${TARGET#*/} --title "Title" --body "$(cat <<'EOF'
## Summary
Brief description of the change and its purpose
## Changes
- Specific change 1
- Specific change 2
- Reference any related issues
## Test plan
- [ ] Unit tests pass
- [ ] Integration tests pass
- [ ] Manual testing completed
- [ ] Documentation updated if needed
## Checklist
- [ ] Code follows project conventions
- [ ] Tests added/updated
- [ ] Documentation updated
- [ ] Breaking changes documented
🤖 Generated with [Claude Code](https://claude.ai/code)
EOF
)"
/create-prCreate a new branch, commit changes, and submit a pull request with automatic commit splitting