git-commit-writer

Generate conventional-commit messages from git diffs and user intent.

Updated Apr 7, 2025
One-click install
npx skills add https://github.com/fsyyft-go/kratos-layout --skill git-commit-writer-fsyyft-go
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-commit-writer
Source: https://github.com/fsyyft-go/kratos-layout/tree/main/.claude/skills/git-commit-writer
Command: npx skills add https://github.com/fsyyft-go/kratos-layout --skill git-commit-writer-fsyyft-go

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Git 提交信息需要遵循规范且准确描述改动,手动编写耗时且易出错。本 Skill 基于 Claude 的深度分析,自动从代码改动和用户意图生成符合项目规范的 commit message,并通过四层验证确保质量。

Core Features & Use Cases

  • Claude 驱动:自动分析 git diff 与用户意图,识别改动类型和范围
  • 四层验证:格式、类型-范围一致性、语言规范、改动一致性严格校验
  • 输出可直接粘贴的 commit message,提升开发效率
  • 场景广泛:日常提交、代码审查后的修订、重构后的提交、多功能合并提交、紧急修复

Quick Start

只需输入你的改动描述和提示,系统将自动生成并返回一个符合规范的 commit message。

Frequently Asked Questions about git-commit-writer

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

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

To generate conventional commit messages from git diff, this skill analyzes your code changes and user intent to determine the correct type and scope, outputting a ready-to-use message. It works across daily commits, refactors, and hotfixes by parsing the actual diff.

What is the best way to ensure my commit message matches my code changes?

The best way to ensure a commit message matches your code changes is using a four-layer validation system that checks format, type-scope consistency, language correctness, and change-diff alignment. This guarantees the final message accurately reflects the actual modifications.

How do I write a valid commit message for a refactoring or hotfix?

To write a valid commit message for a refactoring or hotfix, the skill identifies the specific development scenario from your diff and applies conventional-commits formatting rules. It validates type-scope consistency and language correctness before outputting the final message.

Does this commit message generator work without external dependencies or components?

Yes, this commit message generator works without external dependencies or components. It operates as a standalone skill driven by Claude, analyzing git diff and user intent directly to produce validated conventional-commit-style messages.

Can I validate commit type and scope consistency automatically before committing?

You can validate commit type and scope consistency automatically through the skill's four-layer validation mechanism. It strictly checks format and type-scope consistency alongside language correctness and change-diff alignment to ensure your conventional commit message is correct.