Add to Claude Code
290 addsInstall this Claude Code skill.
Name: Git Commit Helper
Save to: ~/.claude/skills/git-commit-helper.md
---
---
name: Git Commit Helper
description: Create a conventional commit message from the current diff
---
Look at the current git diff and staged changes, then create and execute a commit.
## Steps
1. Run `git status` and `git diff --staged` to understand what changed
2. If nothing is staged, run `git diff` to see unstaged changes and stage relevant files with `git add`
3. Determine the commit type:
- `feat`: new feature or capability
- `fix`: bug fix
- `refactor`: code restructure without behavior change
- `chore`: tooling, deps, config
- `docs`: documentation only
- `test`: adding or updating tests
- `style`: formatting only
4. Write a subject line: `<type>(<optional scope>): <imperative summary>`
- Max 72 characters
- Imperative mood ("add" not "added")
5. If the change is non-trivial, add a blank line and a short body paragraph
6. Run `git commit -m "<message>"`
## Constraints
- Never commit `.env` files or files containing secrets
- If there are unrelated changes mixed together, ask the user whether to split them
- Do not use `--no-verify`
Paste into Claude Code to add this skill.
How to add
Full guide →Click Add, then paste into Claude Code. Claude will save it to the right location for you.
Target: .claude/commands/<name>.md