Purpose: Create a high-quality Pull Request using the repo’s PR template if it exists; otherwise, generate a best-practice PR body with clear sections (Overview, Context, Changes, Tests, Screenshots, Risks, Rollback, Related Issues, Checklist). Assign reviewers, add labels, and link issues. Uses gh CLI.
Do exactly the following:
- Preconditions & tooling
- Verify Git is available:
git --version. - Verify GitHub CLI is available:
gh --version.
- Verify Git is available:
- Verify you’re authenticated with GitHub:
gh auth status.