| name | pr-title-description |
| description | Write or update a PR title and description for the current branch, matching the style of recent PRs. |
| disable-model-invocation | true |
| user-invocable | true |
pr-title-description
Write (or update) the title and description
for the pull request on the current branch.
Steps
-
Identify the current branch and its PR
(if one exists) using
gh pr list --head <branch>.
-
Get the full diff against main:
git diff main..HEAD and
git log main..HEAD --oneline.
-
Fetch the body of the 3 most recent merged
PRs to match their style:
gh pr list --state merged --limit 3 \
--json number,title,body
-
Write the PR title using the Semantic PR /
Conventional Commits format:
<type>(<scope>): <short summary>
- type: one of
feat, fix, refactor,
test, docs, ci, chore, perf,
build, or style.
- scope: the ticket ID extracted from the
branch name (e.g.
ENG-254). If the branch
has no ticket ID, use the most relevant
module or area instead.
- short summary: imperative voice (as if
telling the repo what to do), capitalize the
first word, no trailing period.
Examples:
feat(ENG-123): Add frame offset scaffolding and SBPF config sourcing
fix(ENG-456): Correct off-by-one in order matching
docs(ENG-789): Add algorithm index page
-
Write a concise PR description that mirrors
the format and tone of those recent PRs.
Typically this means a # Changes section
with a numbered list. Add a # Background
section only if the changes need non-obvious
context.
-
If a PR already exists for the branch, update
it with gh pr edit <number> --body "...".
If the PR is in draft mode, also mark it ready
for review with gh pr ready <number>.
Otherwise, report the description so the user
can create the PR.
-
Show the user the PR URL when done.