cp
Installation
SKILL.md
cp — commit & push
运行环境入口约定:本仓库的
.claude/skills以 Claude Code 为源,示例默认写/tunan:*。若同一 skill 在 Codex 中运行,所有面向 sponsor 的可复制入口在输出前改写为$tunan:*;Claude Code 中保持/tunan:*。
何时触发:用户说 "cp" / "commit push" / "提交并推送" / "/tunan:cp"。
调用语法
/tunan:cp [开关] [-- <commit message>]
开关:
--no-push— 只 commit 不 push(用户只说"提交"时;纯 commit 也可以走这条)--files=<glob,...>— 限定要 add 的文件(默认按当前 staged + unstaged 改动智能挑,但永远不用-A/.)--message=<text>或-- <text>— 显式给 commit message,跳过自动起草--allow-main(别名--am) — 允许直接推到main/master/dev/test(默认会先警告确认)。--am与--allow-main完全等价