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