/git-commit:commit [--all | --staged | --modified | --amend | --no-verify | --push]from git-commit
Creates git commits with conventional commit messages. Detects git state, stages explicit paths, and writes atomic type(scope): description commits. Includes safety rules to prevent secret exposure, empty commits, and unauthorized pushes.
Ships in git-commit. 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.
Creates well-formatted commits with conventional commit messages.
The git-commit mod holds every Bash git command to this skill. A git commit runs only after this skill was invoked in the current turn, by this agent. Pass the options the user gave (--push, --amend, --no-verify, --all) as this skill's arguments: the mod allows those operations only when the skill was opened with them. A command the mod stops tells you which rule it broke; fix that and run it again.
/git-commit:commit # Auto-detect and handle changes
/git-commit:commit --all # Stage all changes including untracked
/git-commit:commit --staged # Only commit currently staged files
/git-commit:commit --modified # Stage and commit modified files only
/git-commit:commit --no-verify # Skip pre-commit hooks
/git-commit:commit --amend # Amend the last commit
/git-commit:commit --push # Commit, then push (confirms before pushing)
--no-verifygit commit --amend unless the user explicitly passes --amend.gitignore, .git/info/exclude or the global excludes file ignores--push flag, or said "push" / "commit and push") -- a plain commit NEVER pushesUsed when repo has no established style or uses conventional commits:
<type>(<scope>): <subject>
[optional body]
[optional footer(s)]
For multi-line commit messages, use HEREDOC syntax:
git commit -m "$(cat <<'EOF'
type(scope): subject line
Body paragraph explaining the why, not the what.
Additional context if needed.
Footer: value
EOF
)"
| Type | Description | Example |
|---|---|---|
feat | New feature | feat: add user authentication |
fix | Bug fix | fix: resolve memory leak |
docs | Documentation | docs: update API reference |
style | Formatting | style: format code with prettier |
refactor | Code change (no fix/feat) | refactor: extract helper functions |
perf | Performance | perf: optimize database queries |
test | Tests | test: add unit tests for auth |
chore | Maintenance | chore: update dependencies |
ci | CI/CD changes | ci: add GitHub Actions workflow |
security | Security fixes | security: patch XSS vulnerability |
hotfix | Critical hotfix | hotfix: fix login crash |
revert | Revert changes | revert: undo payment refactor |
lint, move, arch, deps-add, deps-remove, deps-pinformat, patch, catch, remove, typo, comments, deprecateinit, seed, ux, a11y, i18n, animation, ui, responsivedb, analytics, logs, logs-remove, backup, metrics, flagsrelease, wip, ci-fix, ci-build, merge, license, breakingexperiment, mock, snapshots, experimental, dxdocs-api, docs-readme, types, business, assets, gitignoredead, cleanup, validation, thread, offlineCurrent repository state block below this skill with the branch, the status, the recent subjects and the detected style. Run git diff HEAD yourself. When the block is missing or says a list was cut, also run these in parallel:
git status # Current state of working tree
git log --oneline -10 # Recent commits for style matching
git branch --show-current # Confirm the current branch and stay on it
git diff --cached --stat + git diff --cachedgit log and adopt the repo's existing style:
feat:, fix:) -> follow thatJIRA-123: ...) -> follow that<type>(<scope>): <subject> format (see Commit Message Format)--push, or said "push" / "commit and push"). If the tree was already clean (nothing to commit), push the existing commits instead.| Situation | Action |
|---|---|
| Only staged files | Commit staged files |
| Only modified files | Stage only the files for this logical change (explicit paths), then commit |
| Only untracked files | Prompt for inclusion |
| Mixed changes | Stage by logical group; ask which files belong together (never git add -i) |
| No changes | Report clean state |
type(scope): where the log does that, capitalized where the log does thatgit add . / git add -A / git add <dir> -- it can sweep in unrelated changes or another session's work| Option | Description | Behavior |
|---|---|---|
--all | Stage all changes | Everything incl. untracked -- use only when all changes belong in one commit |
--staged | Commit only staged | Ignores unstaged changes |
--modified | Stage modified only | Excludes untracked files |
--no-verify | Skip pre-commit hooks | Bypass Husky checks |
--amend | Modify last commit | Edit previous commit |
--push | Commit, then push | Confirms before pushing |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kilimcininkoroglu/claude-code-mods --plugin git-commitOther plugins' skills for the same job