Git Commit Generator

Git Commit Generator

theoklitosbam7

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.

8297 views4Local (stdio)

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

Developers who want consistent commit message formattingTeams enforcing conventional commit standardsAutomating commit message creation in CI/CD workflows
Works with any MCP-compatible clientCross-platform supportDocker and PyPI installation options

Tools (2)

generate_commit_message

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_git_status

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

Alternatives