commit
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.
Version 1.0.0
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
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 authConstraints
- 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