smart-commit-analyzer

Analyze git changes and create atomic, convention-compliant commit messages.

3|1|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/nsheaps/ai-mktpl --skill smart-commit-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-commit-analyzer
Source: https://github.com/nsheaps/ai-mktpl/tree/main/plugins/commit-skill/skills/smart-commit
Command: npx skills add https://github.com/nsheaps/ai-mktpl --skill smart-commit-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically organizes and creates clear, atomic git commits so developers no longer waste time crafting consistent commit messages, grouping related changes, or accidentally committing sensitive files.

Core Features & Use Cases

  • Intelligent Change Analysis: Semantically examines staged and unstaged diffs to determine change types (feat, fix, refactor, docs, test, etc.).
  • Convention Detection: Learns repository commit patterns from history and applies Conventional Commits, issue references, or org-specific formats.
  • Smart Staging & Atomic Commits: Groups and stages related files for focused commits while respecting .gitignore and pre-commit hooks.
  • Security-Aware: Detects and avoids committing sensitive files such as environment files, keys, and credentials.
  • Workflow Integration: Prepares changes for PRs, assists with interactive rebases, and adapts to repository-specific message styles.

Quick Start

Ask Claude to analyze the current repository changes and create atomic, convention-compliant commits that match the project's style.

Frequently Asked Questions about smart-commit-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate conventional commit messages from git changes?

Automatically generate conventional commit messages by semantically analyzing staged and unstaged git diffs to determine change types like feat, fix, or refactor. The tool reads repository history to match your project's existing commit patterns and issue reference styles.

How do I group related files into atomic git commits?

Group related files into atomic git commits by logically staging changes based on semantic diff analysis. This ensures focused, single-purpose commits while respecting .gitignore rules and existing pre-commit hooks during the staging process.

How can I prevent sensitive files from being committed to git?

Prevent sensitive files from being committed using security-aware change analysis that detects and excludes environment files, keys, and credentials. This protects against accidentally staging secrets alongside legitimate code changes during automated commits.

Can I adapt commit message formats to match my repository's history?

Adapt commit message formats by learning repository patterns from existing git history. The analyzer applies Conventional Commits standards, issue references, or organization-specific formats based on your project's established styling conventions.

What's the best way to prepare multiple file changes for a pull request commit?

Prepare multiple file changes for pull requests by analyzing the full scope of diffs and grouping them into logical, atomic commits. This workflow integration organizes related modifications into focused commits suitable for clean PR submission.

Does automated git commit analysis work with pre-commit hooks?

Automated git commit analysis works with pre-commit hooks by respecting existing repository configurations during the staging and committing process. The tool operates within Git repository workspace constraints while preserving your hook validations.