Suggests 3 commit messages based on git diff and project conventions. Use when the user asks for commit message ideas, wants help writing a commit message, or has changes ready to commit.
Ships in git. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate thoughtful commit message suggestions by reading the actual changes in the repo and understanding the project's own conventions — so suggestions feel native to the codebase, not generic.
Run all of these in one shot:
# Staged changes only — this is the sole source for generating commit messages
git diff --cached
# Recent history — your primary source for convention patterns
git log --oneline -20
# Any explicit commit conventions documented
cat CLAUDE.md 2>/dev/null || true
cat .github/CONTRIBUTING.md 2>/dev/null || true
cat CONTRIBUTING.md 2>/dev/null || true
If there are no staged changes (git diff --cached is empty), tell the user there is nothing staged to commit and stop. Do not consider unstaged changes at any point.
Read the git log carefully. Look for:
feat:, fix:, chore:), a ticket prefix (PROJ-123:), or plain prose?(auth) or (layout) common, or absent?If a CONTRIBUTING or CLAUDE.md file explicitly defines conventions, those take priority over what you infer from history.
Base all suggestions only on the staged diff (git diff --cached). Ignore any unstaged changes entirely.
Craft three options that genuinely differ from each other — not minor word swaps. Useful axes of variation:
All three must follow the project's conventions. If the project uses conventional commits, every option must use the correct type prefix. If scopes are common, use them when appropriate. If the project always uses imperative mood, do that.
Format the three options as a clear numbered list. After the options, you may add one brief line of context if it would be genuinely useful — for example, explaining why you chose a particular type prefix if it was a judgment call. Keep it short. Don't explain the obvious.
Then immediately use the AskUserQuestion tool to ask:
Which would you like to use? Select an option — or type your own commit message.
Do not wait for the user to respond on their own. The AskUserQuestion tool call is required after presenting the options every time.
As soon as the user replies, commit without asking for further confirmation.
Run:
git commit -m "<chosen message>"
The commit message must contain only the selected or typed text. Do not append, prepend, or inject anything — no "Co-Authored-By" line, no signature, no attribution, no trailer of any kind. NEVER add a co-author line under any circumstance.
git add or any command that modifies the staging area.git add), git diff --cached returns empty output. The skill must detect this and stop immediately with a clear message (e.g., "Nothing is staged. Run git add first."). Never attempt to generate commit messages from an empty diff -- doing so produces meaningless suggestions like "chore: update files" that erode trust.git clone --depth=1), git log --oneline -20 may fail or return little to no history. When this happens, warn the user explicitly (e.g., "This appears to be a shallow clone with limited history -- commit message style may not match project conventions.") and fall back to widely accepted defaults (conventional commits, imperative mood, lowercase). Do not silently fall back without informing the user.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/branch-reportGenerates a branch-vs-default comparison report with plain-language explanations and senior dev review. Use when the user asks to summarize, compare, review, or explain branch changes, or wants a PR summary before merging. Read-only: it produces a report to read — it does not push the branch or open/update the PR (for that use gh-pr).
/gh-archiveCapture the current state of a project by updating documentation at the end of a development session. Invokes the readme skill to refresh README.md and the planning-with-files skill to record project status in a doc/ or docs/ directory. Use after merging a PR, finishing a feature, wrapping up a coding session, or any time the user wants to snapshot where the project stands — even implicit phrases like "archive this", "wrap up the session", "document current status", "update project docs", "snapshot this repo", or "I'm done for today". Also use when the user says "end of session" or asks to prepare documentation before stepping away from a project.
/gh-commentPost formatted comments on GitHub PRs or issues, approve PRs, and merge PRs via gh CLI using purpose-specific templates (feedback, question, status, approval, request-changes). Use when commenting on a PR, leaving feedback, asking a question on an issue, posting a status update, approving a pull request, merging a PR, or any intent to interact with an existing PR or issue — even implicit phrases like "tell them", "approve it", "merge this", "LGTM", or "ship it".
/git:commit-msgfrom git
npx claudepluginhub chienchuanw/chuan-skills --plugin git