A Claude Code skill that generates conventional commit messages from git diffs.
When you ask Claude Code to write a commit message, commit-helper automatically:
- Reads
git diff --cachedto see what's staged - Analyzes the changes to determine commit type (
feat,fix,refactor, etc.) and scope - Detects breaking changes automatically
- Presents 2–3 formatted options for you to choose from
- Executes
git commitwith your selection
# macOS / Linux
curl -sL https://raw.githubusercontent.com/<your-username>/commit-helper/main/install.sh | bash
# Windows (PowerShell)
irm https://raw.githubusercontent.com/<your-username>/commit-helper/main/install.ps1 | iexCopy SKILL.md to Claude Code's skills directory:
# macOS / Linux
mkdir -p ~/.claude/skills/commit-helper
cp SKILL.md ~/.claude/skills/commit-helper/
# Windows
mkdir %USERPROFILE%\.claude\skills\commit-helper
copy SKILL.md %USERPROFILE%\.claude\skills\commit-helper\Place it in your project's .claude/skills/ directory and commit it to the repo:
mkdir -p .claude/skills/commit-helper
cp SKILL.md .claude/skills/commit-helper/
git add .claude/skills/commit-helper/SKILL.mdJust ask Claude Code to write a commit:
> git add .
> write a commit message
Or be more specific:
> help me write a commit for these changes
> create a commit message for what I just changed
> git commit
Claude will analyze your staged changes and present options like:
📂 3 files changed (src/api.js, src/db.js, package.json)
🔍 feat + fix + chore
Recommendations:
1️⃣ feat(api): add user profile endpoint
2️⃣ feat: add user profile endpoint and fix DB connection leak
3️⃣ [detailed]
Pick a number and Claude commits it.
| Type | When to use |
|---|---|
feat |
A new feature |
fix |
A bug fix |
refactor |
Code change that neither fixes a bug nor adds a feature |
perf |
Performance improvement |
style |
Code formatting (not CSS) |
docs |
Documentation only |
chore |
Build/config/tooling changes |
ci |
CI configuration |
test |
Adding or fixing tests |
revert |
Reverting a previous commit |
BREAKING CHANGE |
API incompatibility (footer) |
MIT