Create a branch, commit existing local changes, push them, and open a pull request. Use when submitting current work as a PR.
Turn a working tree diff into a clean branch, commit, and pull request.
.github/PULL_REQUEST_TEMPLATE.md. Read it and copy its full structure into the PR body. Do NOT remove, reorder, or skip any section or checkbox.- [ ]) in the PR body you generate. No exceptions, no workarounds, even if the user explicitly asks you to check them. The user goes to GitHub and checks them in person after verifying each statement is true.Before attempting to push or open a PR, verify that the necessary tools are available:
gh CLI is installed and authenticated (gh auth status). If not available, stop and ask the user to install and authenticate GitHub CLI first.CONTRIBUTING.md and any package-level instructions (e.g. packages/*/AGENTS.md) relevant to the changed files.git branch -r --sort=-committerdate | head -20), recent commit messages (git log --oneline -20), and the PR template.git config user.name and git config user.email are set and the email looks real (not empty, not noreply unless intentional). Warn the user if not..only in tests, conflict markers, or temp files in the diff.CONTRIBUTING.md)type/topic convention), reuse it.main or a default branch, create a new branch from it with a short kebab-case name: prefix (fix/, feat/, docs/, refactor/, chore/) + concrete topic words.type(scope): subject format. Keep the subject specific and compact.-u origin HEAD.gh pr create with the full PR template structure. Fill in "What" and "Type" sections based on the actual diff. Leave all "Testing" and "Requirements" checkboxes unchecked.After successfully opening the PR, ALWAYS give a brief reminder in the user's language. Keep it concise and natural, but make sure it clearly tells the user:
fix/, feat/, docs/, refactor/, or chore/.type(scope): subject when scope is clear from the changed area.gh CLI not available → stop, ask user to install it.- [ ]) in the PR body. Double-check: if any - [x] appears in these sections, it is a violation — fix it before submitting.