SuperAPI AI 工具集

git-commit

编程与开发

查看项目

更新于 11-13 20:56

技能介绍

用途:在需要直接进行 git 提交(而不经由 /commit:new 流程)时使用,帮助以安全的方式书写提交信息,尤其是多行提交信息。

主要能力:该技能的核心是规定提交信息的写法:始终使用提交脚本或 heredoc 格式,禁止使用带换行的 -m "..." 形式,以防 shell 解析问题。

使用方式: 单行提交:调用 $CLAUDE_PLUGIN_ROOT/scripts/commit.sh "type: description"。 多行提交:调用 $CLAUDE_PLUGIN_ROOT/scripts/commit.sh "type: description" "Body explaining WHY.

Additional context if needed."。 也可直接使用 heredoc:git commit -F - <<'EOF',随后写入 type: description、空行、Body explaining WHY.,再以 EOF 结束。

适用场景:创建提交、暂存并提交等直接 Git 提交操作。

限制:资料明确反对使用 git commit -m 搭配多行信息,因为这会引发 shell 解析问题;具体脚本内容、安装方式及其他功能暂未提供。