Conventional Commits 형식의 커밋 메시지를 생성합니다
This skill helps create well-formatted git commits following Conventional Commits specification.
First, check the current state of the repository:
# Run in parallel
git status
git diff --cached --name-status
git diff --name-status
If there are staged files:
git add)If no files are staged but there are modified files:
If no changes at all:
For the files to be committed:
# View the actual changes
git diff --cached
# If needed, read specific files to understand context
Analyze:
remotes-goal → goal, packages/core-*-hooks → core-hooks)all only if multiple distinct domains are affectedFollow this format:
<type>(<scope>): <subject>
[optional body]
Co-Authored-By: Claude <[email protected]>
Type selection rules:
feat: New feature or functionalityfix: Bug fixchore: Maintenance tasks (dependencies, configs, build scripts)refactor: Code restructuring without changing behaviordocs: Documentation changesstyle: Code formatting, whitespace, missing semicolonstest: Adding or updating testsbuild: Build system or external dependenciesci: CI/CD configuration changesperf: Performance improvementsrevert: Reverting a previous commitScope guidelines:
goal, evaluation, review, user, auth)all for changes affecting multiple domainsSubject line:
Body (optional):
IMPORTANT Git Safety Protocol:
git commit --amend (create new commits instead)# Stage files if needed (only if user selected specific files)
git add <selected-files>
# Create commit using HEREDOC for proper formatting
git commit -m "$(cat <<'EOF'
<type>(<scope>): <subject>
[optional body]
Co-Authored-By: Claude <[email protected]>
EOF
)"
# Verify the commit was created
git log -1 --oneline
After creating the commit:
feat(goal): 목표 데이터 엑셀 내보내기 기능 추가
목표 데이터를 Excel 파일로 내보내는 버튼과 API 연동을 추가.
에러 처리 및 성공 알림 포함.
Co-Authored-By: Claude <[email protected]>
fix(auth): 토큰 만료 처리 오류 수정
Co-Authored-By: Claude <[email protected]>
chore(deps): react-query v5.0.0 업데이트
Co-Authored-By: Claude <[email protected]>
refactor(review): 리뷰 코멘트 로직을 커스텀 훅으로 분리
복잡한 코멘트 처리 로직을 useReviewComments 훅으로 분리하여
테스트 용이성과 재사용성 개선.
Co-Authored-By: Claude <[email protected]>
# WRONG - Missing scope