commit

Development v1.0.0

Intelligent git commit with automatic type inference, scope detection, and conventional commit message generation

gitcommitconventional-commitsautomationversion-control

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

  1. Discovery: Parallel fetch of git status, recent commits, staged and unstaged diffs
  2. Analysis: Filter sensitive files, infer commit type from changes, detect scope from paths
  3. Execution: Stage filtered files and create commit with generated message
  4. 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

/commit

Commit with explicit 'fix' type hint

/commit fix

Commit with 'feat' type and 'auth' scope hint

/commit feat auth

Dependencies

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