Meta Prompt for making commits
Creates a properly formatted git commit message based on your changes. Use this after making code changes to generate a standardized commit message following your project's conventions.
/plugin marketplace add danielscholl/claude-sdlc/plugin install sdlc@sdlcpath-to-spec-file<commit-message-rules>
<rule>Use present tense (e.g., "add", "fix", "update", not "added", "fixed", "updated")</rule>
<rule>Maximum 50 characters for the main message</rule>
<rule>Be descriptive of the actual changes made</rule>
<rule>No period at the end</rule>
<rule>Extract context from the issue JSON to make the message relevant</rule>
</commit-message-rules>
<examples>
<example>sdlc_planner: feat: add user authentication module</example>
<example>sdlc_implementor: bug: fix login validation error</example>
<example>sdlc_planner: chore: update dependencies to latest versions</example>
</examples>
<guideline>Analyze the git diff to understand what changes were made and create an accurate commit message</guideline>
</instructions>
<run>
<step order="1">
<command>git diff HEAD</command>
<purpose>understand what changes have been made</purpose>
</step>
<step order="2">
<command>git add -A</command>
<purpose>stage all changes</purpose>
</step>
<step order="3">
<command>git commit -m "<generated_commit_message>"</command>
<purpose>create the commit with the formatted message</purpose>
</step>
</run>
<report>
<output-format>Return ONLY the commit message that was used (no other text)</output-format>
</report>
</git-commit-creation>