Generates a commit message from staged changes and creates the commit. Triggers: /commit, 커밋해줘, 커밋 메시지 만들어줘, commit this, commit message
Reads staged diff + recent log → generates a commit message matching the project's convention → commits.
Run in parallel:
git diff --staged
git log --oneline -10
If nothing is staged, tell the user and stop.
Check project CLAUDE.md for:
feat:, fix:) or issue-based ([#123] 설명)?If no project convention found, use conventional commit format in English.
Conventional format (default):
{type}({scope}): {description}
{body — only if non-obvious}
Types: feat fix refactor test docs chore perf
Issue-based format (when project uses it):
[#{issue}] {description}
Rules:
Show the generated message and ask for confirmation:
커밋 메시지:
{message}
진행할까요? (y/n)
On confirm:
git commit -m "$(cat <<'EOF'
{message}
EOF
)"
Show the commit hash and one-line summary, then output:
## 사람이 확인해야 할 것
- [ ] 스테이징된 파일이 이 작업 범위에 맞는지 (`git show --stat HEAD`)
- [ ] 커밋 메시지가 이슈/PR 번호를 올바르게 참조하는지
- [ ] 민감한 정보(키, 패스워드, 토큰)가 포함되지 않았는지
--no-verify