SuperAPI AI 工具集

git-commit

编程与开发

查看项目

更新于 10-15 19:50

技能介绍

用途:按团队的 Conventional Commit 规范创建一次 Git 提交,适用于用户要求提交改动或创建 commit 的场景。

主要能力与用法:若用户未指定提交信息,在仓库根目录运行 bash "${CLAUDE_SKILL_DIR}/scripts/context.sh" 收集当前 Git 改动上下文,据此确定提交信息;提交信息格式遵循 resources/commit-messages.md 中的约定。上下文脚本输出已包含所需信息(状态、diff、分支、近期提交),因此不要再运行额外 Git 命令收集上下文,直接进入暂存与提交。

范围选择:依据上下文脚本输出中的“Available scopes”部分选择合适 scope。当改动涉及后端路由与代码时,使用完整上下文工作区名作为 scope(例如 mooc),如 feat(mooc): add course enrollment endpoint。

共同作者:提交信息中始终添加 co-author 尾注,格式为 Co-Authored-By: {tool} - {model.name} {model.version} ({model.reasoning_effort}) <{tooling_email}>。其中 tool 为所用 AI 编码工具(如 Claude Code、Cursor、Copilot、Codex);model.name 为模型名(如 Claude Opus、Cursor Composer、OpenAI GPT);model.version 为版本(如 4.6、1.5、5.4);model.reasoning_effort 为推理强度(如 low、medium、high)。tooling_email 对应:Claude Code 为 noreply@anthropic.com,Cursor 为 cursoragent@cursor.com,Copilot 为 copilot@github.com,Codex 为 codex@openai.com。

限制:资料未提供其他平台支持、收费或价格信息,暂未提供;具体提交信息规范细节需查看 resources/commit-messages.md。