Skip to content
Productivity
Command

/commit

Create commit message(s) for staged/unstaged changes, breaking into logical units

BOOST
From plugin
claude-code-plugins
1393 skills3 commands
Install
> /plugin marketplace add buildatscale-tv/claude-code-plugins

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/commit

Context preview

What this command does when you run it.

Create commit message(s) for staged/unstaged changes, breaking into logical units

Command definition

commit.md
allowed-tools: Bash(git status), Bash(git diff), Bash(git log), Bash(git add), Bash(git commit), Bash(git branch), Bash(git checkout)
description: Create commit message(s) for staged/unstaged changes, breaking into logical units

I need to create a commit (or multiple commits) for the current changes. Let me analyze the repository state and create appropriate commit messages following the user's guidelines.

First, let me check the current branch and status:

! git branch --show-current ! git status

If I'm on main or master and there are changes, I'll create a descriptive kebab-case branch first (preferred: 2 words, max: 3 words) based on the nature of the changes:

! CURRENT_BRANCH=$(git branch --show-current) ! if [[ "$CURRENT_BRANCH" == "main" || "$CURRENT_BRANCH" == "master" ]] && [[ $(git status --porcelain) ]]; then echo "On main/master with changes - will create feature branch after analyzing changes"; fi

Now let me see what changes are staged and unstaged:

! git diff --cached ! git diff

Let me also check recent commit history to understand the style:

! git log --oneline -10

Based on the changes, I'll determine if this represents: 1. A single logical unit of change → create one commit 2. Multiple distinct changes → break into separate commits with focused messages

I'll follow the commit message guidelines:

  • **70 characters or less** (hard max: 72 — GitHub truncates beyond this)
  • Use imperative mood
  • Start with action verbs
  • Omit articles
  • No punctuation at end
  • Single-line descriptions
  • If a message is approaching 70 chars, cut filler words rather than exceed the limit

For each commit, I'll: 1. Stage the appropriate files for that logical unit 2. Create a commit with a focused message 3. Repeat for additional logical units if needed

Let me proceed with creating the commit(s).

Read more
Ships withclaude-code-plugins

Claude Code plugins from BuildAtScale - slash commands, hooks, and skills for enhanced productivity.

Get the whole plugin
Stats
139
Stars
25
Forks
Maintained
Maintenance
Python
Language
5mo ago
Last commit
1y ago
Created
3h ago
Added

Repo: buildatscale-tv/claude-code-plugins

Other commands on claude-code-plugins.