Imported from rflpazini/agents-skills (
cursor-skills/open-pr/SKILL.md). Install upstream withnpx skills add rflpazini/agents-skills --skill open-pr. Copyright stays with the author.
Open PR
Title Format
[TICKET_KEY]: Short imperative summary
Examples:
[STCBE-1077]: Introduce UserAccountUpdateNotifier[STCBE-842]: Fix race condition in session refresh[PCAD-310]: Remove deprecated PlutoSync v1 endpoints
Extract the ticket key from the branch name (e.g. feature/STCBE-1077-notifier → STCBE-1077).
If the branch has no ticket key, ask the user.
Body
- Check for a PR template: look for
.github/pull_request_template.mdorPULL_REQUEST_TEMPLATE.mdin the repo root. If found, follow its structure. - Write a brief summary at the top — short bullet points describing what changed. Focus on the what and why, skip the how. One bullet per logical change, 1-2 lines each.
- Fill checklists from the template honestly. Check items that apply, leave unchecked items with a short reason if needed.
Example summary:
- Add `UserAccountUpdateNotifier` interface to decouple service layer from transport details
- Centralize account-update Kafka publishing through `UserAccountService.updateUserAccount()`
- Remove direct `PlutoUserRegistrationKafkaPublisher` dependency from 4 call-sites
- Resolves cyclic dependency flagged by Sonar
Workflow
- Run
git statusandgit logto understand what's being shipped - If a Jira ticket key is available, fetch the ticket via MCP for extra context
- Compose title and body following the rules above
- Push the branch with
git push -u origin HEAD - Create the PR as draft with
gh pr create --draft --title "..." --body "..." - Return the PR URL to the user