generate-git-commit

Generate conventional commit messages from staged and unstaged git diffs.

1|Updated Jun 3, 2020
One-click install
npx skills add https://github.com/LanceRabbit/dotfiles --skill generate-git-commit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-git-commit
Source: https://github.com/LanceRabbit/dotfiles/tree/main/.claude/skills/generate-git-commit
Command: npx skills add https://github.com/LanceRabbit/dotfiles --skill generate-git-commit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

這個技能根據目前 Git 工作區的狀態自動生成符合 Conventional Commits 標準的提交訊息建議,幫助開發流程更高效且風格一致。

Core Features & Use Cases

  • 自動分析暫存區與變更檔案,提取變更內容的本質
  • 產生 1-3 份符合專案風格的提交訊息建議,供使用者選擇或修改
  • 支援有 scope 的提交、跨模組的變更說明,並可在必要時提供替代版本

Quick Start

請根據當前工作區內容,輸出 1-3 條符合 Conventional Commits 的提交訊息建議。

Frequently Asked Questions about generate-git-commit

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

FAQPage Schema
How do I automatically generate conventional commit messages from staged git diffs?

Automatically generating conventional commit messages from staged git diffs involves analyzing the unstaged and staged file changes to extract the core modifications. The system then produces 1–3 suggested commit messages aligned with your project's recent commit history.

What is the best way to write git commit messages for multiple module changes with scope?

Writing git commit messages for multiple module changes with scope requires analyzing the workspace diffs to identify affected modules. The system generates 1–3 conventional commit suggestions that include optional scope tags and clear cross-module change descriptions.

Does this commit message generator require access to the full repository state?

This commit message generator requires repository state access via git commands to analyze staged and unstaged diffs. It uses recent commit history to ensure the suggested conventional commit messages match your existing project style.

Can I generate alternative conventional commit suggestions if the first one doesn't fit?

You can generate alternative conventional commit suggestions because the system outputs 1–3 message options based on the same workspace diffs. This allows you to select the most accurate description or modify a provided alternative version to fit.

Why should I use conventional commits format for my version control automation?

Using conventional commits format for version control automation ensures a consistent and clean git history. It automatically structures staged changes into standardized messages, making code review and version tracking significantly more efficient.