pr-title
Set or update PR/MR titles as semantic commits for squash-merge workflows. Use when the user says "pr title", "mr title", "fix pr title", "rename pr", or "prepare pr".
SKILL.mdskills/pr-title/SKILL.md
GitHubPR Title
Format: <type>: <short description in lowercase>
Types: feat, fix, chore, refactor, perf, docs, test, ci, build, style
No scope. No capital after colon.
Steps
Detect platform - run in parallel:
gh pr view --json number,title,url 2>/dev/nullglab mr view --output json 2>/dev/null- Both fail → ask user to create one (and on which platform)
- Both succeed → ask user which one
Analyze - infer type from branch name, commits, and diff. Branch hints:
feature/*,feat/*→featfix/*,bugfix/*,hotfix/*→fixrefactor/*→refactorchore/*,deps/*→chore- Ambiguous → inspect commits/diff
Propose - present 2-3 title options via AskUserQuestion
Apply:
- GitHub:
gh pr edit --title "…"orgh pr create --title "…" --body "" - GitLab:
glab mr update --title "…"orglab mr create --title "…" --description ""
- GitHub: