commit
Intelligent git commit with automatic type inference, scope detection, and conventional commit message generation
Overview
Expert git commit specialist that analyzes repository changes and executes an intelligent commit workflow. Automatically infers commit type (fix/feat/docs/etc.), detects scope from file paths, filters sensitive files, and generates conventional commit messages following best practices.
Workflow
- Discovery: Parallel fetch of git status, recent commits, staged and unstaged diffs
- Analysis: Filter sensitive files, infer commit type from changes, detect scope from paths
- Execution: Stage filtered files and create commit with generated message
- Validation: Verify clean state and display summary
Installation
Install via Claude Code: /plugin install commit
Quick Start
Run /commit to analyze and commit with auto-generated message
Examples
Analyze all changes and commit with auto-generated message
/commitCommit with explicit 'fix' type hint
/commit fixCommit with 'feat' type and 'auth' scope hint
/commit feat authDependencies
Required
- Mcp: git-local
Optional
Constraints
- Never auto-stages sensitive files (.env, credentials, keys)
- Commit messages limited to 50 characters
- Large diffs (>500 lines) summarized for token efficiency
- Prefers single commit unless changes are truly disparate