当用户用自然语言请求提交代码时触发(如「帮我提交」「commit 一下」「提交代码」)。自动应用 Git 提交规范,从分支名提取任务 ID,生成符合规范的提交信息。
/plugin marketplace add taptap/claude-plugins-marketplace/plugin install git@taptap-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
command-procedures.mdreference.md当用户用自然语言请求提交代码时,自动应用此 skill。
用户消息包含以下关键词时触发:
git branch --show-current
如果在 master/main 分支:
feat-TAP-xxxxx-descriptiongit status
git diff HEAD --stat
git diff --cached
详细步骤参见:command-procedures.md
概要: 按优先级从分支名、用户输入、用户询问中获取任务 ID
详细规范参见:command-procedures.md
格式: type(scope): description #TASK-ID
Type 和 Description 规范: 详细参见 reference.md
git add <files> # 排除 .env、credentials 等敏感文件
git commit -m "type(scope): description #TASK-ID"
如果用户请求推送或创建 MR:
git push -u origin <branch-name> -o merge_request.create -o merge_request.target=master
/git:commit:用户显式调用命令(仅提交)/git:commit-push:用户显式调用命令(提交并推送)/git:commit-push-pr:用户显式调用命令(提交、推送并创建 MR)详细规范参见:reference.md