审查并提交斜杠命令提示词

编程3.6万

审查改动并按规范创建 git 提交

A slash command that reviews changes and creates a git commit.

提示词全文
---
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)
description: 创建一个 git 提交
---

## 上下文

- 当前 git 状态: !`git status`
- 当前 git diff(已暂存和未暂存的更改): !`git diff HEAD`
- 当前分支: !`git branch --show-current`
- 最近的提交: !`git log --oneline -10`

## 你的任务

审查现有更改,然后按照约定式提交格式创建一个 git 提交。如果你认为存在多个不同的更改,可以创建多个提交。

怎么用这条提示词

  1. 1复制下方提示词全文
  2. 2把方括号 ____ 占位替换成你的具体需求
  3. 3粘贴到 DeepSeek / Claude / ChatGPT 等模型运行

相关编程提示词