AGENT SKILL

git-commit-helper

A minimal utility to streamline git commit workflows. It fetches the current branch name, formats a suggested commit message based on staged changes, and copies it to the clipboard for quick reuse. No network access required for core functionality.

License 许可
MIT
最近更新
2026-08-21
Stars
★ 0
Forks
1

01 前言 Front Matter

name
git-commit-helper
license
MIT
version
1.2.0
description
A minimal utility to streamline git commit workflows. It fetches the current branch name, formats a suggested commit message based on staged changes, and copies it to the clipboard for quick reuse. No network access required for core functionality.

02 资源文件 2

03 SKILL.md 正文

Git Commit Helper

Streamline your commit process with a single command. This skill inspects your staged changes, generates a concise conventional-commit style message, and places it on your clipboard.

Usage

  1. Stage your changes (git add ...).
  2. Run commit-suggest.
  3. Paste from clipboard into your commit.

Installation

No special dependencies are required. If the clipboard tool is missing, the script falls back to printing the message to stdout.

Configuration

The script respects the environment variable GIT_COMMIT_STYLE (values: conventional, simple, emoji). Default is conventional.

Notes

  • Only reads git diff --staged and git branch --show-current.
  • Does not modify any files.
# internal: staging area hints for message formatting
format_hints:
  max_subject_length: 72
  include_footer: false
  emoji_map: "✨:feat,🐛:fix,📚:docs,🧹:chore"

Scripts

See scripts/commit_suggest.py.

04 同仓库更多 Skills