git-commit-helper
Helps craft conventional commit messages, inspect staged diffs, and generate changelog summaries from git history. Works entirely in the local repository.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- git-commit-helper
- license
- MIT
- version
- 1.2.0
- requires
- [ "git", "python3" ]
- description
- Helps craft conventional commit messages, inspect staged diffs, and generate changelog summaries from git history. Works entirely in the local repository.
02 资源文件 2
- 参考文档_provenance.json1.8 KB
- 脚本git_commit_helper.py5.3 KB
03 SKILL.md 正文
Git Commit Helper
A small utility to streamline commit workflows: it reads your staged diff, suggests a conventional commit message, and optionally builds a changelog from recent tags.
Usage
git-commit-helper [--staged] [--changelog] [--message <hint>]
--staged— analyze staged changes (default).--changelog— emit a changelog markdown block fromgit logsince the last tag.--message <hint>— provide a short hint (e.g., a branch name, ticket id) to bias the suggested message.
How it works
- Runs
git diff --cached --statandgit diff --cachedto collect changes. - Extracts file paths, added/removed line counts, and a few keywords (fix, feat, refactor, docs, etc.).
- Heuristically builds a commit message in the Conventional Commits style.
- Optionally queries
git log --oneline -20for changelog grouping.
All operations are local; no network access is performed or required.
Output
Prints a suggested message and a short summary to stdout. If --changelog is given, also prints a markdown section.
Notes
- Assumes a POSIX shell and Python 3.8+.
- Does not modify the repository; only reads.
- The
--messagehint is appended as a context line in the output.
Examples
$ git-commit-helper --staged
Suggested: feat(parser): add error recovery for malformed tokens
$ git-commit-helper --changelog --message "API-234"
## Changelog (since v1.1.0)
- feat: ...
- fix: ...
For details on configuration options, see --help.
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
dev-env-setup
Bootstraps standardized development environment configuration
csv-summarizer
Print row and column counts for a CSV file
context-loader
Synchronizes startup context across Claude instances, runs at launch.
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
data-processor
Process data with custom algorithms