Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:09:24 +08:00
commit 2d8d948878
6 changed files with 187 additions and 0 deletions

17
commands/commit.md Normal file
View File

@@ -0,0 +1,17 @@
---
#allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*), AskUserQuestion(*)
description: Create git commit
---
## Context
- Current git status: !`git status`
- Current git diff (staged changes): !`git diff HEAD`
- Current branch: !`git branch --show-current`
- Recent commits: !`git log --oneline -10`
## Your task
1. generate 5 **single line** commit messages with conventional commits format.
2. **Use AskUserQuestion tool** to ask which of those, or their own to use, to create the commit.
3. Create a single git commit with that message using `git commit -m "<message>"`.