git-commit-smart

Generate conventional commit messages from git diff output.

258|26|Updated Dec 9, 2025
One-click install
npx skills add https://github.com/majiayu000/spellbook --skill git-commit-smart-majiayu000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit-smart
Source: https://github.com/majiayu000/spellbook/tree/main/skills/git-commit-smart
Command: npx skills add https://github.com/majiayu000/spellbook --skill git-commit-smart-majiayu000

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically generate meaningful, conventional commit messages from diff output to streamline version-control workflows.

Core Features & Use Cases

  • Automated message generation: analyzes diffs to propose a concise subject and optional body that follow the conventional commits format.
  • Type and scope inference: suggests appropriate type (feat, fix, docs, etc.) and optional scope based on changed files.
  • Changelog-ready output: produces a ready-to-use commit message that can be applied automatically or reviewed before committing.

Quick Start

Generate a commit message from your current staged changes.

Frequently Asked Questions about git-commit-smart

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

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

You can generate conventional commit messages from git diffs by analyzing the diff output to propose a concise subject and optional body that strictly follow the conventional commits format, including appropriate type and scope inference.

What is the conventional commits format and how does it apply to version control?

The conventional commits format is a standardized way to structure commit messages using types, scopes, and specific message formatting rules. It applies to version control by ensuring commit messages are changelog-ready and meaningful.

Can I infer commit type and scope from changed files automatically?

Yes, you can infer commit type and scope from changed files automatically. The analysis suggests appropriate types like feat, fix, or docs, along with an optional scope, based on the specific files modified in the diff.

Does this automated commit message generator enforce subject length and formatting rules?

Yes, this automated commit message generator enforces subject length and formatting rules. It requires access to git diff data and outputs a ready-to-use commit message that adheres strictly to conventional commits standards.

What's the best way to turn code diffs into changelog-ready commit messages?

The best way to turn code diffs into changelog-ready commit messages is to analyze the staged changes and produce a formatted message that can be applied automatically or reviewed before committing to streamline workflows.

Do I need to manually review automatically generated commit messages before committing?

You do not strictly need to manually review automatically generated commit messages before committing, as the output is ready-to-use, but reviewing them before applying ensures the inferred type, scope, and diff analysis perfectly match your intent.