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.
使用建议
- 想直接看效果?在「变量填充 / 测试」里点「测试效果」,AI 会返回真实结果;满意再「复制结果」。存在「我的版本」时可分别测试、并排对比。
- 也可点「复制提示词」直接复制原文,手动替换占位符。
- 把内容粘贴到对应 AI 模型(ChatGPT)的对话框。
- 想改成自己的版本?切到「编辑我的版本」,保存私有版本或公开提交。
标签
相似提示词
同分类下其他优质提示词
Git操作·基础直用版
Git 操作最小可用提示词:状态分析+逐条命令+风险警示+验证与恢复手段。
复制 0 次
Git操作·分支管理版
分支策略设计:分支模型、命名、保护规则、合并流程与清理。
复制 0 次
Git操作·撤销回滚版
安全撤销/回滚:按场景给 reset/revert/checkout 方案与风险对比。
复制 0 次
Git操作·rebase策略版
rebase vs merge 决策:给策略、命令步骤与改写历史的风险说明。
复制 0 次
Git操作·冲突解决版
解决合并冲突:讲清冲突来源、如何取舍、验证与防止再冲突。
复制 0 次
SQL优化·安全自检
SQL 安全自检:注入风险、权限过大、批量更新/删除影响面、锁风险。
复制 0 次