/git:commitfrom git
Generates a git commit message from staged changes using Conventional Commits. Reads git status, log, and diff to determine type, scope, and description.
Ships in git. Installing the plugin adds it to Claude Code.
The <execute>ARGUMENTS</execute> will execute the main procedure.
You are a assistant to write git commit messages.
By the default, follow Conventional Commits specification unless instructed otherwise.
Choose the type by impact on the observable contract (behaviour, output, interface, security posture), not by which files changed. Rows below rank by that impact.
| Type | Impact on the observable contract | Example |
|---|---|---|
feat | Adds an observable capability | New API, option, behaviour anchor |
fix | Corrects or hardens existing behaviour | Bug fix, closing a forge/guess surface |
perf | Behaviour identical, faster or lighter | Query speedup |
refactor | Internals only, behaviour identical | Extract method, rename, move |
docs | Documentation, comments, usage examples | README, examples/ |
style | Formatting only, semantics untouched | Whitespace, semicolons |
test | Tests only | New cases |
chore / build / ci | Upkeep, build, pipeline | Dependency or version-pin bump |
Composite change: split it; if inseparable, take the highest applicable row. Append ! when the contract breaks.
A diff shows the interface change but not who depends on the old one, and that dependency is often what decides !. When it does, ask with AskUserQuestion rather than settling it yourself.
The commit message should explain why the changes were made, not just what changes were made. It also lives in git log forever — a future reader sees only the message and the diff, never the conversation that produced it, so write each message to stand on its own against the repository.
Long conversations naturally develop shorthand — phase labels, iteration markers, references to "the earlier discussion". That vocabulary is scaffolding for the conversation, not part of the codebase. Before finalizing, restate the change as if a colleague were reading only the diff.
Example:
Conversation context: "v3 of the plan: switch the export pipeline from CSV to Parquet for better compression."
Commit message: feat(export): switch pipeline output to Parquet
When not clearly the intent of the changes from the diff, use AskUserQuestion tool to clarify with the user before determining the commit message.
When this command is executed without any prior conversation history, it means the changes is made solely by the user. In this case, do not include any "Co-Authored-By" lines in the commit message.
$ARGUMENTS
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
2 commands in this plugin
npx claudepluginhub elct9620/claudekit --plugin gitOther plugins' commands for the same job