‹ 首页

commit

@vibeeval · 收录于 1 周前 · 上游提交 1 个月前

Create git commits with user approval and no Claude attribution

适合你,如果经常需要规范地写 git commit 信息

/ 下载安装
commit.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add vibeeval/vibecosystem/commit
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- vibeeval/vibecosystem/commit
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify vibeeval/vibecosystem/commit
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
515GitHub stars
~428上下文体积 · 单文件
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · MIT · cea9462

Commit Changes

You are tasked with creating git commits for the changes made during this session.

Process:
  1. Think about what changed:
  2. Review the conversation history and understand what was accomplished
  3. Run git status to see current changes
  4. Run git diff to understand the modifications
  5. Consider whether changes should be one commit or multiple logical commits
  1. Plan your commit(s):
  2. Identify which files belong together
  3. Draft clear, descriptive commit messages
  4. Use imperative mood in commit messages
  5. Focus on why the changes were made, not just what
  1. Present your plan to the user:
  2. List the files you plan to add for each commit
  3. Show the commit message(s) you'll use
  4. Ask: "I plan to create [N] commit(s) with these changes. Shall I proceed?"
  1. Execute upon confirmation:
  2. Use git add with specific files (never use -A or .)
  3. Create commits with your planned messages
  4. Show the result with git log --oneline -n [number]
  1. Generate reasoning (after each commit):
  2. Run: bash "$CLAUDE_PROJECT_DIR/.claude/scripts/generate-reasoning.sh" <commit-hash> "<commit-message>"
  3. This captures what was tried during development (build failures, fixes)
  4. The reasoning file helps future sessions understand past decisions
  5. Stored in .git/claude/commits/<hash>/reasoning.md
Important:
  • NEVER add co-author information or Claude attribution
  • Commits should be authored solely by the user
  • Do not include any "Generated with Claude" messages
  • Do not add "Co-Authored-By" lines
  • Write commit messages as if the user wrote them
Remember:
  • You have the full context of what was done in this session
  • Group related changes together
  • Keep commits focused and atomic when possible
  • The user trusts your judgment - they asked you to commit
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。