generate-commit
CommunityGenerate precise git commit messages from diffs
AuthorCloudyWing
Version1.0.0
Installs0
System Documentation
What problem does it solve?
本技能確保每次建立 git commit 時的標題與說明完全根據實際的 git diff 輸出,避免憑對話上下文或記憶推測變更內容,並提供過渡檔案過濾與拆分建議以維持 atomic commit 原則。
Core Features & Use Cases
- 強制從 git diff(staged 與 unstaged)擷取變更細節以撰寫 Subject 與 Body,保證描述與實際變更 100% 一致。
- 自動偵測典型過渡或暫存檔(如 .bak、.tmp、CONTEXT.local.md)並提示是否需要 unstage;分析是否建議拆分為多個 commit(檔案級或 hunk 級)並產生拆分計畫。
- 支援自動執行 commit 流程(單一 commit 或依檔案級拆分依序 stage → commit),對於 hunk 級拆分則產出明確行範圍與 git add -p 指示,等待使用者完成 staging 後繼續執行。
Quick Start
請根據目前 repository 的 staged 或 unstaged 變更檢索 git diff,產生符合專案 commit 規範的 commit 訊息並執行相應的 commit 操作。
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: generate-commit Download link: https://github.com/CloudyWing/ai-dotfiles/archive/main.zip#generate-commit Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.