Code Skill (Slash Command): review-and-commit.md

编程 ChatGPT 4分
收藏

allowed-tools: Bash(git add:), Bash(git status:), Bash(git commit:*) description: Create a git commit

Context

  • Current git status: !git status
  • Current git diff (staged and unstaged changes): !git diff HEAD
  • Current branch: !git branch --show-current
  • Recent commits: !git log --oneline -10

Your task

Review the existing changes and then create a git commit following the conventional commit format. If you think there are more than one distinct change you can create multiple commits.

使用建议

  1. 想直接看效果?在「变量填充 / 测试」里点「测试效果」,AI 会返回真实结果;满意再「复制结果」。存在「我的版本」时可分别测试、并排对比。
  2. 也可点「复制提示词」直接复制原文,手动替换占位符。
  3. 把内容粘贴到对应 AI 模型(ChatGPT)的对话框。
  4. 想改成自己的版本?切到「编辑我的版本」,保存私有版本或公开提交。

标签