Skip to main content

git-commit-message-generator

生成符合约定式提交(Conventional Commits)的 Git 提交信息(如 `feat:xxx`)。

Source facts

Repository
spring-ai-alibaba/DataAgent
Last source activity
July 4, 2026 at 15:53
Detected SKILL.md language
Chinese
Stars
2,752
Forks
655

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
git-commit-message-generator
description
生成符合约定式提交(Conventional Commits)的 Git 提交信息(如 `feat:xxx`)。
# Git 提交信息生成器(Conventional Commits) 当用户提出诸如“帮我写一下 git 的提交信息 / commit message / 提交信息怎么写”时,使用本 Skill 生成完整提交信息。 ## 1. 提交信息类型约定 提交信息类型必须从以下集合中选择其一(无则让用户确认,或根据上下文推断): - `feat`: 新功能 - `fix`: 修复 bug - `docs`: 文档更新 - `style`: 代码格式调整(不改行为) - `refactor`: 重构(不改变对外行为) - `test`: 测试相关 - `chore`: 构建工具或辅助工具变动 ## 2. 生成规则 1. 若用户未明确给出类型:根据用户描述推断(新功能/修复/重构/文档/测试/构建工具)。 2. 生成的主题(subject)要求: - 使用中文(与项目一致) - 简洁、动作明确、避免“做了/修改了/更新了”这类空话 - 主题长度建议 12~30 个中文字符 3. 默认只输出一行(不添加 body),格式为: - `type:主题` ## 3. 可选追问(仅在关键信息缺失时) 如果无法推断类型或主题过于模糊,最多追问 1 次: - “你希望类型是 `feat` 还是 `fix`?主题你想写成什么(一句话即可)?” ## 4. 输出示例 - `feat:完成了对话页面` - `fix:修复SSE滚动不自动到底部` - `refactor:重构时间线渲染以支持流式报告` - `docs:更新ECharts渲染说明文档` - `chore:调整lint/format脚本配置`
View on GitHub