Git Commits

作者 parcadeid07ff4b06b62无许可证3.9K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8个月前更新

Git Commit Rules

AI 生成的概览

将 git 提交、推送和保存更改的请求转交给单独的 /commit 技能,而不是直接运行 git commit。

功能
这是一个仅包含说明的技能,规定了处理 git 提交、推送和保存请求的规则。它要求代理不要直接运行 git commit,而是调用单独的 /commit 技能,并称该技能会移除 Claude 署名、生成 reasoning.md 文件并清除构建尝试记录。它还列出了触发词,并说明了后续步骤,例如运行生成推理记录的脚本以及推送到分支。
适用场景
当用户要求提交、推送或保存 git 更改时使用,包括“push to github”“commit and push”等说法。其目的是让这些请求通过指定的提交技能处理,而不是直接执行 git commit。
运行要求
该技能不附带脚本,仅为说明文档。它引用了一个单独的 /commit 技能、项目 .claude/scripts 目录下的 generate-reasoning.sh 脚本,以及具备远程推送权限的 git。

Git Commit Rules

When the user asks to commit, push, or save changes to git:

MUST Use /commit Skill

DO NOT run git commit directly. Instead:

Skill("commit")

The /commit skill:

  1. Removes Claude attribution from commits
  2. Generates reasoning.md capturing what was tried
  3. Clears build attempts for next feature

Why This Matters

  • Regular git commit adds "Generated with Claude Code" and Co-Author lines
  • The /commit skill removes these so commits appear user-authored
  • Reasoning capture preserves build history for future sessions

Trigger Words

When you see these in user prompts, use the commit skill:

  • "commit", "push", "save changes"
  • "push to github", "push changes"
  • "commit and push"

After Commit

The skill will prompt you to run:

bash
bash "$CLAUDE_PROJECT_DIR/.claude/scripts/generate-reasoning.sh" <hash> "<message>"

Then push if requested:

bash
git push origin <branch>

来源与署名

来源:parcadei/continuous-claude-v3位于.claude/skills/git-commits提交d07ff4b

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架