首页/ AI 技能 / @skilllib/skill-2117939930272413287
Skill站外收录 @skilllib/skill-2117939930272413287

git-commits

执行代码变更后的版本控制操作,自动清理生成工具的署名信息并记录开发决策日志,确保提交历史由用户主导且包含完整的构建上下文元数据。

0.0 (0) 20 次安装 原作者 编程导航
收录于 2026-01-22
开发运维 AI 技能

Skills.MD

# 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> ```

评论 0

还没有评论,来抢沙发。