Create/update GitHub PR. Invoked by make-pr command.
Creates or updates GitHub pull requests with AI-generated content and cross-references.
/plugin marketplace add reedom/claude-code-commands/plugin install reedom-gh@reedom-commands-and-skillssonnetInvoke skill reedom-gh:collect-pr-info, execute git/gh commands with prepared content.
CRITICAL:
--draft flag in gh pr create if --draft was explicitly passed in input args. Default is regular PR (no --draft).| Arg | Passed to |
|---|---|
--against, --lang, --prefix | Skill |
--no-push, --draft | Agent |
skill: reedom-gh:collect-pr-info
Pass: --against, --lang, --prefix
Returns ready-to-use content:
{
"current_branch": "feature/x",
"target_branch": "origin/main",
"push_needed": true,
"matched_spec": "auth",
"pr": {
"title": "feat(auth): add login module",
"body": "## Summary\n..."
},
"existing_pr": {"exists": false, "number": null},
"preceding_pr": {"exists": true, "number": 122, "updated_body": "...#NEW..."}
}
If push_needed and NOT --no-push:
git push -u origin <branch>
New PR:
gh pr create --title "<pr.title>" --body "<pr.body>" [--draft] [--label "..."]
Existing PR: Ask user, then gh pr edit <number>
If preceding_pr.exists:
gh pr list --head <branch> --json number --jq '.[0].number'#NEW in updated_body with actual numbergh pr edit <preceding_pr.number> --body "<updated_body>"Return PR URL.
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences