Opens a draft PR on GitHub. Detects jj (Jujutsu) vs git repos and uses --head flag as required for jj. Use when the user wants to open a draft PR.
Opens a draft pull request on GitHub, handling jj (Jujutsu) and git repositories.
Detect VCS:
jj status to detect jj repojj bookmark list --remote gitgit branch --show-currentDetermine base branch:
main or mastermainGet PR title:
Create draft PR:
--head flag (required for jj, works for git)gh pr create --draft --head <name> --base <base> --title <title> [--body <body>]Report the PR URL
--head flag with gh pr create--draft)jj git push or git push first{
"description": "Create draft PR",
"model": "claude-sonnet-4-5",
"prompt": "Open a draft PR for the current jj bookmark or git branch. Use gh pr create with --draft and --head flags. Detect base branch (main/master). Generate PR title from bookmark description if available."
}