Meta Prompt for creating pull requests
Creates a pull request with a standardized title and detailed body including issue context, plan link, and change checklist. Use this when you need to create well-documented PRs that link to issues and implementation plans.
/plugin marketplace add danielscholl/claude-sdlc/plugin install sdlc@sdlcpath-to-spec-file<pr-body-requirements>
<requirement>A summary section with the issue context</requirement>
<requirement>Link to the implementation plan file</requirement>
<requirement>Reference to the issue (Closes #<issue_number>)</requirement>
<requirement>ADW tracking ID</requirement>
<requirement>A checklist of what was done</requirement>
<requirement>A summary of key changes made</requirement>
</pr-body-requirements>
<guideline>Extract issue number, type, and title from the issue JSON</guideline>
<title-examples>
<example>feat: #123 - Add user authentication</example>
<example>bug: #456 - Fix login validation error</example>
<example>chore: #789 - Update dependencies</example>
</title-examples>
</instructions>
<run>
<step order="1">
<command>git diff origin/main...HEAD --stat</command>
<purpose>see a summary of changed files</purpose>
</step>
<step order="2">
<command>git log origin/main..HEAD --oneline</command>
<purpose>see the commits that will be included</purpose>
</step>
<step order="3">
<command>git diff origin/main...HEAD --name-only</command>
<purpose>get a list of changed files</purpose>
</step>
<step order="4">
<command>git push -u origin <branch_name></command>
<purpose>push the branch</purpose>
</step>
<step order="5">
<command>gh pr create --title "<pr_title>" --body "<pr_body>" --base main</command>
<purpose>create the PR</purpose>
<prerequisite>Set GH_TOKEN environment variable from GITHUB_PAT if available</prerequisite>
</step>
<step order="6">
<action>Capture the PR URL from the output</action>
</step>
</run>
<report>
<output-format>Return ONLY the PR URL that was created (no other text)</output-format>
</report>
</pull-request-creation>