Smart, context-aware git commits with conventional commit messages and plan awareness.
Type: Skill
Trigger: /commit
See the marketplace install instructions.
Analyzes your diff to generate well-structured conventional commit messages that match your repository's existing style. Handles staged-only vs. all changes, supports commit-and-push workflows, and can detect plan files for separate commits.
When Trim Text is installed, a commit message body goes through it before committing. The subject, trailers, and issue references stay as drafted.
/commit
/commit --push
/commit --staged
/commit --plan
/commit --all
| Option | Description |
|---|---|
--push |
Push to remote after committing |
--staged |
Commit only staged changes, ignoring unstaged changes |
--plan |
Commit only the plan file(s) |
--all |
Stage and commit all changes including untracked files |
This skill runs git commands that trigger permission prompts. To allow them automatically, add these rules to your .claude/settings.json (project-wide) or ~/.claude/settings.json (global):
{
"permissions": {
"allow": ["Bash(git status*)", "Bash(git diff*)", "Bash(git log *)", "Bash(git add *)", "Bash(git commit *)", "Bash(git push*)", "Bash(git branch *)", "Bash(git mv *)"]
}
}If you already have a permissions.allow array, merge these entries into it. Review and adjust the rules to match your security preferences.
- "commit": stages and commits with an auto-generated message
- "commit and push": commits then pushes to remote
- "commit the plan, then the changes": creates two sequential commits
- "give the plan a meaningful name and commit": renames and commits the plan file
- PR: commit, push, and open a pull request in one step
- Trim Text: trims the commit message body
- All plugins
Invoke $commit in the conversation, or select the skill from /skills. Natural-language requests use the same workflow. Parent calls load the advertised skill location and pass their continuation block; they do not execute a dollar mention as a tool. Host restrictions still govern every step.