Install
openclaw skills install git-commit-genGenerate conventional, descriptive commit messages from git diffs. Analyzes staged changes or branch diffs and produces well-formatted commit messages following the Conventional Commits specification (feat, fix, chore, docs, refactor, test, etc.). Use when the user wants to: (1) Generate a commit message from 'git diff --staged', (2) Write a message for unpushed commits, (3) Rewrite a vague commit message, (4) Generate changelog entries from a range of commits, (5) Ensure team consistency with Conventional Commits. Best for developers, teams using standardized commit conventions, open-source maintainers, and anyone tired of 'fixed stuff' commit messages.
openclaw skills install git-commit-genGenerate conventional, descriptive, and scoped commit messages from your git diffs — no more "fixed bug" or "updated files".
✅ USE this skill when:
❌ DON'T use this skill when:
<type>(<scope>): <short summary>
<body>
<footer>
write:stagedRead git diff --staged and generate a commit message.
Write a commit message for my staged changes
→ Analyzes staged diff, outputs a formatted commit message with type, scope, description, and body.
write:diffRead changes between the current branch and its base (main/master).
Summarize all changes in this branch as a commit message
write:rangeGenerate a changelog or multiple commit messages for a range of commits.
Generate conventional commit messages for commits HEAD~5..HEAD
write:providedGiven an inline diff or file list, generate a commit message.
Here's a diff: [...paste diff...]. Write a commit message.
rewrite:lastImprove the last commit message to follow conventions.
Rewrite my last commit message in conventional format
validateCheck whether a message follows Conventional Commits.
Validate this message: "fix(api): handle null pointer in user lookup"
→ Confirms it's valid, or explains what to fix.
| Type | Usage |
|---|---|
feat | A new feature |
fix | A bug fix |
docs | Documentation only changes |
style | Formatting, missing semicolons, etc. (no logic) |
refactor | Code change that neither fixes a bug nor adds a feature |
perf | Code change that improves performance |
test | Adding or correcting tests |
chore | Build, CI, dependencies, tooling |
ci | CI/CD configuration changes |
User: "Write a commit message for my staged changes"
Assistant: (runs
git diff --staged, analyzes changes)feat(auth): add OAuth2 refresh token rotation - Implement refresh token rotation on every token refresh - Invalidate old refresh tokens immediately after use - Add TTL config for refresh tokens (default 30 days) - Update token endpoint to return rotated refresh token Closes: #452
git commit..gitignore — won't try to diff ignored files.