Prerequisites - Require GitHub CLI . Check . If missing, ask the user to install and stop. - Require authenticated session. Run . If not authenticated, ask the user to run (and re-run ) before continuing. Naming conventions - Branch: when starting from main/master/default. - Commit: (terse). - PR title: summarizing the full diff. PR template discovery Before creating the PR, resolve the repository root and look for the active GitHub PR template from there: Template candidates, in order: - - - One file under - One file under Use paths as emitted from the repository root, such as , not . If exa…