git-commit

Generate a concise imperative commit message from a git diff.

1|Updated Jan 24, 2021
One-click install
npx skills add https://github.com/leighmcculloch/dotfiles --skill git-commit-leighmcculloch
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: git-commit
Source: https://github.com/leighmcculloch/dotfiles/tree/main/files/claude/skills/git-commit
Command: npx skills add https://github.com/leighmcculloch/dotfiles --skill git-commit-leighmcculloch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate a concise, present-tense commit message from a git diff.

Core Features & Use Cases

  • Analyze a git diff to produce a short, descriptive commit message in imperative mood and limited to 50 characters.
  • Enforce lower-case initial letter and no trailing period.
  • Output a ready-to-use command example: git commit -m "<message>".

Quick Start

Provide the git diff and I will generate a concise, imperative commit message.

Frequently Asked Questions about git-commit

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

FAQPage Schema
How do I generate a concise git commit message from a diff?▼

To generate a concise git commit message, provide the git diff for analysis. The tool produces a short, descriptive summary in imperative mood, ready to use with the git commit command.

What is the character limit for an imperative git commit message?▼

The character limit for an imperative git commit message is 50 characters. The generated summary avoids generic phrases, starts with a lowercase letter, and omits trailing periods for optimal readability.

How do I write a git commit message in present tense?▼

Writing a present-tense git commit message involves using the imperative mood to describe what the code does. The generated message starts with a lowercase letter, contains no period, and outputs a ready-to-run command.

Can I automatically format git commit messages to avoid generic phrases?▼

You can automatically format git commit messages to avoid generic phrases by analyzing the git diff. The tool enforces constraints like lowercase initials and no trailing periods to ensure a descriptive, concise output.

Does the generated git commit message include the ready-to-run command?▼

The generated git commit message includes a ready-to-run command formatted as git commit -m "<message>". This allows immediate execution in any Git project after the diff analysis is complete.