git-commit

Create git commits with conventional messages from staged changes.

11|Updated Mar 19, 2019
One-click install
npx skills add https://github.com/lukoshkin/evangelist --skill git-commit-lukoshkin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit
Source: https://github.com/lukoshkin/evangelist/tree/main/conf/ai/claude/skills/git-commit
Command: npx skills add https://github.com/lukoshkin/evangelist --skill git-commit-lukoshkin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps automate and standardize git commits by inspecting the working tree and staged changes, ensuring commits follow repository conventions and include concise, relevant messages.

Core Features & Use Cases

  • Inspect the worktree before committing: git status --short, git diff --staged --stat, and git diff --stat to understand changes.
  • Enforce repository conventions by detecting the applicable commit style from the repo history or guidelines and apply a single, precise message.
  • Create exactly one commit per user request and report the commit hash and title, avoiding the inclusion of unrelated changes.
  • Guard against committing unrelated files and provide guidance if multiple commits or ambiguous changes are requested.

Quick Start

Ask the AI to create and perform a commit for your current changes using the repository's conventional message style.

Frequently Asked Questions about git-commit

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

FAQPage Schema
How do I automate git commit messages to follow repository conventions?

You can automate git commit messages by inspecting staged changes and worktree status to generate a single, convention-compliant message. This approach parses diffs and respects the staged state to ensure accuracy across development tasks.

What is the best way to create conventional commits from a staged git diff?

Creating conventional commits from a staged git diff requires parsing the staged changes, detecting the applicable commit style from repository history, and generating exactly one precise commit message per request to avoid unrelated file inclusions.

Can I commit multiple staged changes at once with a single conventional message?

You cannot commit multiple staged changes at once with a single message. An enforced one-commit rule creates exactly one commit per request, guarding against unrelated files and providing guidance if multiple commits or ambiguous changes are detected.

How does a git commit automation tool handle ambiguous worktree changes?

When handling ambiguous worktree changes, the tool inspects git status and diff statistics before committing. It guards against committing unrelated files and provides guidance if multiple commits or ambiguous changes are detected in the worktree.

Does git commit automation work with existing repository history and guidelines?

Yes, git commit automation works with existing repository history and guidelines by detecting the applicable commit style from past commits or documentation. It uses this reference to enforce conventions and produce accurate messages for feature work and refactors.

Why does my automated git commit exclude unrelated files from the staged area?

Your automated git commit excludes unrelated files to enforce a one-commit rule and ensure message accuracy. By inspecting the worktree and staged diff statistics, the process guards against unrelated files and reports the resulting commit hash and title.