| name | create-pr |
| description | Create a pull request with a Conventional Commits title, auto-generated description based on branch changes, and the repository PR template. Use when the user asks to create, open, or submit a pull request. |
create-pr
Mission
Create a GitHub pull request for the current branch with a valid Conventional Commits title and an auto-generated description that summarizes the actual changes.
Prerequisites
git and gh CLI installed and authenticated (gh auth status).
- The
gh token must include the project scope for project assignment.
If missing, run: gh auth refresh -s project
- The current branch is not
main.
- Changes have been committed and pushed to the remote.
PR title rules
The title must pass the repository PR title checker. The authoritative pattern is defined in
.github/pr-title-checker-config.json — read that file at runtime to get the current CHECKS.regexp
value rather than relying on a hardcoded pattern.
Additional prose rules (not fully enforced by the checker):
- The
! breaking-change indicator must appear after the optional scope and before the :,
never between the type and the scope (for example feat!(scope): is invalid; feat(scope)!: is correct).
- The
: must be followed by a single space and a non-empty description.
Allowed types: feat, fix, docs, , , , .