Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 2.49 KB

README.md

File metadata and controls

64 lines (44 loc) · 2.49 KB

Commit

Smart, context-aware git commits with conventional commit messages and plan awareness.

Type: Skill Trigger: /commit

Installation

See the marketplace install instructions.

What It Does

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.

Usage

/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

Recommended Permissions

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.

Examples

  • "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

See Also

Codex invocation

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.