| description | Generate a concise git commit message that follows Conventional Commits and fits git-flow branch context. |
| name | Commit Message |
| argument-hint | Describe the intent or constraints for this commit |
| agent | agent |
| model | ["DeepSeek V4 Flash (deepseek)","Raptor mini (Preview) (copilot)","GPT-5.4 mini (copilot)"] |
| tools | ["execute"] |
Generate a git commit message for the current repository changes.
First inspect the current git diff or staged diff, then combine it with any user-provided intent.
提前条件:
- 检查本次提交内容是否存在机密信息泄露风险,如密码、token、敏感配置等。如存在,则给出警告,不再生成提交信息。
- 如果包含大量测试或生成内容,或者体积很大的文件,给出警告,让用户确认是否需要添加到忽略列表。
Rules:
- Use Conventional Commits format:
type must be one of:
feat fix docs refactor test chore
- Infer
scope from the main module, such as:
api, admin, webapp, entity, ef, modules, apphost, aspire, perigon, docs, test, templates
subject must be written in Chinese, concise, and must not end with 。 or .
- If one commit contains several related changes, choose the primary type for the header and use a short body to summarize secondary changes.
- If the changes are clearly unrelated, output a short Chinese suggestion to split the commit instead of forcing one message.
- Output only the final commit message unless explicitly asked for alternatives.
Body rules:
- Add one blank line between header and body.
- Each body line should be short and written in Chinese.
- Focus only on the important secondary changes.
- You may use plain list lines like:
- 补充 SSO 处理流程文档
- 统一 API 错误返回结构
- 增加错误响应集成测试
Output pattern:
-
If the changes are related, output:
type(scope): subject
optional body
-
If the changes are unrelated, output a short Chinese recommendation to split the commit.
Combine any user-provided intent with the actual code changes and generate the most accurate result.