| name | commit |
| description | Create Git commits following Flooding project conventions. Splits changes into logical units with correct type prefix and Korean description. |
| allowed-tools | Bash(git add:*), Bash(git status:*), Bash(git commit:*), Bash(git diff:*), Bash(git log:*), Read |
Commit Message Rules
Format: type : ์ค๋ช
- Space around colon โ always
type : ์ค๋ช
, never type:์ค๋ช
- Types (English):
feat / fix / update / add / test / docs / style / perf / refactor / merge
- Description: Korean, no period, concise
- Subject line only (no body)
- Do NOT add AI tool as co-author
Type Guide
| Type | When to use |
|---|
feat | New feature |
add | Add files, configs, dependencies |
fix | Bug fix |
update | Modify existing feature or review feedback |
refactor | Code restructuring without behavior change |
test | Add or modify tests |
docs | Documentation only |
style | Formatting, ktlint |
perf | Performance improvement |
merge | Merge commit |
Examples
feat : ๋์๋ฆฌ ํผ ์์ฑ API ๊ตฌํ
fix : ํ์ฑ ํผ ์กฐํ ์ NPE ์์
update : ๋ฆฌ๋ทฐ ๋ฐ์ - ํผ ํ๋ UniqueConstraint ์ถ๊ฐ
test : ๋์๋ฆฌ ์ ์ฒญ ์๋น์ค ๋จ์ ํ
์คํธ ์ถ๊ฐ
perf : save ๋ฃจํ๋ฅผ saveAll๋ก ๋ณ๊ฒฝ
style : ktlint ํฌ๋งทํ
์ ์ฉ
Commit Flow
- Inspect changes:
git status, git diff
- Categorize into logical units (feature / bug fix / refactoring / etc.)
- Group files per unit
- For each group:
- Stage only relevant files with
git add
- Write a commit message following the rules above
git commit -m "message"
- Verify with
git log --oneline -n <count>
Important
- Only commit when the user explicitly asks (
์ปค๋ฐ ใฑใฑ, commit ๋ฑ)
- Never auto-commit without explicit instruction