Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:47:03 +08:00
commit 41f0dd2764
4 changed files with 94 additions and 0 deletions

35
commands/commit.md Normal file
View File

@@ -0,0 +1,35 @@
# /commit <ISSUE>
---
根据当前stage的内容和下面指定的风格创建一个 git commit
## STRICT RULES
1. 使用传统的 `feat: xxx` 这种风格
2. 如果用户输出了是 `#xx` 默认提交的是issue的idcommit需要能展现它比如 `fix: xxx (#1)`
3. 允许使用的Type从Types Section中找
---
## Types
feat: A new feature
fix: A bug fix
docs: Documentation changes
style: Code style changes (formatting, etc)
refactor: Code changes that neither fix bugs nor add features
perf: Performance improvements
test: Adding or fixing tests
chore: Changes to the build process, tools, etc.
## Examples
```
feat: initialize personal context project (#1)
- Set up basic project structure
- Add initial configuration files (.gitignore, README.md)
- Create core directories src/ and docs/
- Add base build and run scripts
```