Commit staged or unstaged changes with an AI-generated commit message that matches the repository's existing commit style. Use when the user asks to 'commit', 'commit changes', 'create a commit', 'save my work', or 'check in code'.
80
100%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Help the user commit code changes with a well-crafted commit message derived from the diff, following the conventions already established in the repository.
--no-verify).--no-gpg-sign).Run the following to sample recent commits and the user's own commits:
# Recent repo commits (for overall style)
git log --oneline -20
# User's recent commits (for personal style)
git log --oneline --author="$(git config user.name)" -10Analyse the output to determine the commit message convention used in the repository (e.g. Conventional Commits, Gitmoji, ticket-prefixed, free-form). All generated messages must follow the detected convention.
git status --shortgit add -A), and proceed with those.Obtain the full diff of what will be committed:
git diff --cached --stat
git diff --cachedUsing the diff and the commit convention detected in step 1, draft a commit message with:
Construct the git commit command with the generated message.
Execute the commit:
git commit -m "<subject>" -m "<body>"After the commit:
git status --short to confirm the commit completed.git log --oneline -1 to show the new commit.b87c504
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.