Workflow
Get the staged diff for analysis:
git diff --cachedCheck previous commit message format in the repository:
git log --oneline -10Search staged changes for ticket IDs (patterns like PROJ-123, D4T-123, etc.)
Generate 3 distinct commit message options following the format above. Each option should use a different verb and framing — not rephrase the same sentence.
Follow these guidelines:
- Match the format used in previous commits in the repository
- If a ticket ID was found, include it in the title (typically as a prefix)
- Do not add Claude as a co-author in the commit message
Present the options to the user for selection using AskUserQuestion
Create the commit with the selected title and body:
git commit -m "<title>" -m "<body>"