Skip to content

Let's use AI to Earn!

804 B
Raw Blame
---
id: aitoearn-commit-convention
trigger: "when writing a commit message"
confidence: 0.86
domain: git
source: local-repo-analysis
---

# Use Conventional Commits

## Action
Prefix commits with: `feat:`, `fix:`, `chore:`, `docs:`, `test:`, `refactor:`

Use scope in parentheses for module-specific changes: `feat(content):`, `fix(tiktok):`

## Format
```
<type>(<scope>): <description>

[optional body]
```

## Examples
- `feat(login): 更新登录控制器中的注释和文档为中文`
- `refactor(mongodb): 移除materialGroup.repository中多余的type参数`
- `fix: 草稿箱创建缺失平台字段`
- `chore: add vitest setup and MCP unit tests`

## Evidence
- Analyzed 200 commits
- 86% follow conventional commit format
- Common scopes: content, mongodb, tiktok, douyin, channel-db, publish