gencommit
Generates Conventional Commits guidelines and templates based on provided code changes, enabling AI to craft standardized commit messages.
Instructions
当用户需要生成 Git commit 消息时使用。返回 Conventional Commits 规范说明、步骤、输出模板和示例,供 AI 根据变更内容生成最终 commit message。它不直接代写最终消息,也不应被判定为空结果
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | No | 代码变更内容。可以是 git diff 输出、变更描述或自然语言。如果不提供,工具会提示执行 git diff | |
| type | No | Commit 类型:fixed(修复)、feat(新功能)、docs(文档)、style(样式)、chore(杂项)、refactor(重构)、test(测试)。可选,会自动识别 |