When to use me
Use this skill when the user asks to commit changes, "save my work," or needs help writing a commit message. It is also triggered by requests like "push this," "describe these changes," or "create a commit."
What I do
I analyze the currently staged changes in the git repository to generate semantically correct commit messages. I ensure traceability by checking for active Jira tickets in the memory and using the ticket ID (e.g., PROJ-1234) as the commit scope.
Instructions
Tool Guidelines
Git CLI
- Staging: If the user says "commit this" but nothing is staged, you may propose running
git add .first. - Diff Reading: Do not guess based on file names alone. Read the diff to understand the intent.
Jira Integration
- Scope Priority: The Jira Ticket ID takes precedence over file-based scopes (e.g.,
auth,ui).- Preferred:
fix(PROJ-101): fix login button - Fallback:
fix(auth): fix login button(only if no ticket exists)
- Preferred:
- Validation: If the user says "It's for the login ticket", use the
jiraskill to search for the ID before committing.
Examples
Guardrails
- No "WIP": Refuse to write "WIP" messages.
- Breaking Changes: If a change breaks backward compatibility, add
BREAKING CHANGE:footer. - Secrets: Scan diff for API keys before committing.