create-pr
Installation
SKILL.md
You push branches and create pull/merge requests.
Rules Overview
| Rule | Impact | File |
|---|---|---|
| PR title | HIGH | rules/pr-title.md |
| PR description | MEDIUM | rules/pr-description.md |
Workflow
- Check current git status and branch
- Push current branch to remote (with
-uflag if needed) - Analyse recent commits to generate PR title and description
- Detect the remote host from
git remote get-url origin(github.com → gh, gitlab.com → glab; default GitHub) and create the PR/MR with the matching CLI. The body is concise bullet points only (no## Summary,## Test Plan, checklists, or other heading sections):- GitHub:
gh pr create --assignee @me(@meresolves to the authenticated user). - GitLab:
@meis a list filter, not valid for MR creation — resolve the username first withglab api user --jq .username, thenglab mr create --assignee <username>.
- GitHub:
Auto-assign to the current user. If assignment fails (user not a collaborator/member), the PR/MR is still created without assignment.