
Git Commit Generator
Analyzes your staged git changes and automatically generates properly formatted conventional commit messages. Works by examining diffs and file status to suggest appropriate commit types and scopes.
What it does
- Generate conventional commit messages from staged changes
- Analyze git diffs and file modifications
- Check current git repository status
- Auto-detect commit type and scope
- Format commits following conventional standards
Best for
Tools (2)
Prepare a structured analysis and instruction block for generating a Conventional Commit message from staged git changes only. Behavior: - Validates the repository path and operates on the provided repo or CWD. - Collects staged diff, porcelain status, and a name-status summary. - Incorporates optional user preferences for commit_type and scope. - Returns a single formatted string that includes context plus strict output instructions for an LLM to produce a Conventional Commit. Args: repo_path: Optional path to the target git repository. If not provided, uses the current working directory. commit_type: Optional commit type (feat, fix, docs, style, refactor, perf, build, ci, test, chore, revert) scope: Optional scope of the change Returns: A formatted prompt containing git change context and clear output rules for generating a Conventional Commit message
Check the current git repository status. Args: repo_path: Optional path to the target git repository. If not provided, uses the current working directory. Returns: Current git status including staged, unstaged, and untracked files