Safe, structured commits every time
/commit and Claude walks you through the entire process: reviewing the diff, categorizing changes, drafting a clear message, and staging only the files that should be committed. It never commits without your explicit approval and never stages sensitive files like .env or API keys.Gather context
Runs git status, git diff, and git log in parallel to understand what changed and what recent commit messages look like.
Analyze changes
Categorizes new, modified, and deleted files. Flags any sensitive files (.env, credentials, tokens) immediately.
Draft the message
Writes a conventional commit message (feat, fix, refactor, docs, etc.) focused on "why" not "what." Under 72 characters on the first line.
Present the plan
Shows exactly which files will be staged, which are excluded, and the proposed message. Asks for your approval before proceeding.
Execute safely
Stages files by name (never git add -A), commits with the approved message, and verifies success with git status.