Stats
Actions
Tags
How this command is triggered — by the user, by Claude, or both
Slash command
/git-workflow:draft-prThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
Create or update a draft pull request for the user's work. **Don't allow PRs from main/master branches.** 1. Check for uncommitted changes - if any, suggest using /push-work first 2. Determine the main branch (main or master) to use as the base 3. Make sure branch is pushed and synced with the main branch 4. Check if PR already exists: `gh pr list --head <branch> --state all` - Parse the output to determine PR state (open/merged/closed) 5. Analyze all commits from the main branch to generate a good PR description 6. Create or update PR based on step 4: - **If no PR exists:** Create ...
Create or update a draft pull request for the user's work.
Don't allow PRs from main/master branches.
gh pr list --head <branch> --state all
gh pr create --base <main-branch> --draft --title "..." --body "..."gh pr edit <number> --title "..." --body "..."Use heredoc for PR body to handle markdown properly.
PR description should include:
npx claudepluginhub automata-network/claude-plugins --plugin git-workflow