Analyze staged changes and generate a commit message with JIRA ticket number from the current branch.
Generate a commit message from staged changes with JIRA ticket number from your branch name. It analyzes your git diff, extracts tickets like PRO-1234 or BUG-456, and creates a properly formatted message copied to clipboard. Use before committing to ensure consistent, ticket-linked messages.
/plugin marketplace add aaronmaturen/claude-plugin/plugin install atm@aaronmaturen-pluginsAnalyze staged changes and generate a commit message with JIRA ticket number from the current branch.
IMPORTANT:
Extract ticket number from branch
git branch --show-current to get current branch namePRO-#### (e.g., PRO-1234)BUG-### (e.g., BUG-123)Analyze staged changes
git diff --cached to see only staged changesgit diff to see all unstaged changesgit status --short to see all modified/new filesgit diff --cached --stat to see what files will be committedgit branch --show-currentgit log --oneline main..HEAD (if main exists)Check for new TODO comments
git diff --cached to scan staged changes for new TODO commentsTODO:TODO(// TODO# TODO/* TODOGenerate commit message format:
[PRO-####] Brief description (50 chars total)
Detailed explanation of changes, why they were made,
and any important context. Wrap at 72 characters.
If no ticket number found, use format:
Brief description (50 chars max)
Detailed explanation of changes, why they were made,
and any important context. Wrap at 72 characters.
Copy to clipboard:
pbcopy to copy it to clipboard[PRO-####] or [BUG-###], 50 chars max totalWith PRO ticket:
[PRO-1234] Add user authentication flow
Implemented login and registration endpoints with JWT tokens.
Added password reset functionality and email verification
to ensure secure user onboarding.
With BUG ticket:
[BUG-567] Fix memory leak in image processor
Properly dispose of image buffers after processing.
Added cleanup in finally block to ensure resources
are released even on exceptions.
Without ticket (normal branch):
Refactor database connection pooling
Extracted connection logic into separate module for
better testability and reuse across services.