From personal
Use when the user wants to generate a one-line git commit message based on staged or unstaged changes since the last commit on the current branch.
How this skill is triggered — by the user, by Claude, or both
Slash command
/personal:commit-msgThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate a one-line commit message from the changes on the current branch.
Generate a one-line commit message from the changes on the current branch.
Announce at start: "Generating commit message..."
Run:
git diff HEAD~1..HEAD --stat
git diff HEAD~1..HEAD
If there are uncommitted changes (staged or unstaged), use this instead:
git diff HEAD --stat
git diff HEAD
To decide which, first check:
git status --porcelain
If there is output (uncommitted changes exist), diff against HEAD. Otherwise diff against HEAD~1.
Before generating the message, check for context from the current conversation that can inform the why behind the changes:
superpowers:writing-plans, superpowers:executing-plans, or similar), note the goal, motivation, and relevant plan step being completed.Use this context to capture the why — the diff alone often only shows the what.
Write a single-line commit message:
Print the message as a code block so it's easy to copy:
<the commit message>
Do not run any git commands that modify the repository. This skill is read-only.
npx claudepluginhub tomboone/claude-skills --plugin personalGenerates conventional git commit messages from staged changes, unstaged diffs, and recent history. Uses git status, diff --cached, diff, log. Outputs type(scope): summary with body.
Generates clear, conventional commit messages from git diffs. Useful when writing commit messages, reviewing staged changes, or preparing commits.
Generates Conventional Commits messages from staged git changes by analyzing git diff --cached. Determines type/scope, writes imperative subjects ≤50 chars, adds body only if why not obvious. Use for commit generation or /cavemanov-commit.