commit
Generate a commit message following project conventions. Use when the user says "commit", "commit this", "make a commit", or invokes /commit.
来源信息
- 仓库
- NimblePros/dotnet-codingagent-template
- 最近来源活动
- 2026年5月22日 16:41
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 15
- 分支
- 2
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
文件资源管理器
2 个文件正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- commit
- description
- Generate a commit message following project conventions. Use when the user says "commit", "commit this", "make a commit", or invokes /commit.
# Commit
Generate and execute a commit following the project's conventional commit format.
## Step 1: Understand the changes
Use `AskUserQuestion` to confirm:
1. **Work item ID** (auto-detect from branch name if possible)
2. **Commit type** (fix, feat, refactor, chore, docs, test, perf)
If the conversation already makes the type and work item obvious, skip the question and proceed.
## Step 2: Read the diff
```bash
git status
git diff -w HEAD
git log --oneline -5
```
Derive the message from the conversation context first. Fall back to the diff only when invoked with no prior discussion.
## Step 3: Generate and commit
Present the commit message in a code block for confirmation, then stage and commit.
<CRITICAL>
Never amend a previous commit without explicit approval. Create a new commit by default.
</CRITICAL>
## Format
```
type(scope): subject line
Optional body (ONLY when the subject alone is not enough).
AB#<work-item-number>
```
See [references/conventions.md](references/conventions.md) for the full format specification and examples.
在 GitHub 查看