Meta Prompt for creating git branches
Creates a new git branch following a standardized naming convention based on issue details. Use this when starting work on a new feature, bug fix, or chore that requires a properly formatted branch name.
/plugin marketplace add danielscholl/claude-sdlc/plugin install sdlc@sdlcpath-to-spec-file<concise-name-rules>
<rule>3-6 words maximum</rule>
<rule>All lowercase</rule>
<rule>Words separated by hyphens</rule>
<rule>Descriptive of the main task/feature</rule>
<rule>No special characters except hyphens</rule>
</concise-name-rules>
<examples>
<example>feat-123-a1b2c3d4-add-user-auth</example>
<example>bug-456-e5f6g7h8-fix-login-error</example>
<example>chore-789-i9j0k1l2-update-dependencies</example>
</examples>
<guideline>Extract the issue number, title, and body from the issue JSON</guideline>
</instructions>
<run>
<step order="1">
<command>git checkout main</command>
<purpose>switch to the main branch</purpose>
</step>
<step order="2">
<command>git pull</command>
<purpose>pull the latest changes from the main branch</purpose>
</step>
<step order="3">
<command>git checkout -b <branch_name></command>
<purpose>create and switch to the new branch</purpose>
</step>
</run>
<report>
<output-format>Return ONLY the branch name that was created (no other text)</output-format>
</report>
</git-branch-generation>