git-commit-assistant_skill

This skill generates high-quality conventional git commit messages and, with your approval, performs the commit to keep clean history.
  • Python

106

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill dmitriiweb/extract-emails --skill git-commit-assistant

  • SKILL.md2.2 KB

Overview

This skill generates clear, conventional git commit messages and, with your approval, runs the commit for staged changes. It enforces a quality gate so commits stay focused, descriptive, and machine-readable. Use it to draft, improve, or apply commits while avoiding noisy or mixed-history commits.

How this skill works

The skill inspects the staged diff and git status to determine what will be committed and whether changes represent a single concern. It proposes an imperative-summary, optional scope, body, and footers following conventional commit rules, presents the full message for approval, and only runs git commit after you confirm. If the commit fails or unstaged changes exist, it reports details and awaits further instructions.

When to use it

  • Draft a concise conventional commit for staged work.
  • Validate that staged changes match the intended commit intent and scope.
  • Split or refuse commits that mix formatting/noise with functional changes.
  • Run a vetted commit after reviewing the suggested message.
  • Enforce consistent commit formatting across a team or CI workflow.

Best practices

  • Stage only related changes; keep each commit to a single concern.
  • Write a 50–72 character imperative summary without a trailing period.
  • Include a short optional scope like api, auth, or deps when helpful.
  • Add a body only for rationale, decisions, and trade-offs; wrap lines ~72 chars.
  • Use footers for breaking changes and issue references (e.g., Closes #123).

Example use cases

  • You have staged code fixing an auth bug and want a well-formed commit message before committing.
  • A teammate submitted a mixed diff; use the assistant to detect and advise splitting concerns.
  • Prepare release commits with clear breaking-change footers and issue links for changelogs.
  • Automate message drafting in a pre-commit workflow while requiring human approval to commit.

FAQ

No. The skill always shows the proposed message and asks you to approve before running git commit.

What commit types are supported?

Supported types include feat, fix, refactor, docs, test, chore, build, ci, perf, and style.

What if the commit fails?

The skill reports the git error and the staged/unstaged status, then pauses for your guidance or revision.

How does it handle mixed or noisy changes?

It flags mixed concerns and formatting-only noise, recommends splitting or restaging, and will not proceed until the commit intent aligns with the staged diff.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational