From 5af64daef0e3b43fbece9b06f0ac771514fb949d Mon Sep 17 00:00:00 2001 From: "NEW_GIL_HOME\\hyeon" Date: Mon, 2 Mar 2026 19:55:29 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20dx:=20git?= =?UTF-8?q?=20commit=20=EB=AA=85=EB=A0=B9=EC=96=B4=20=EB=AC=B8=EC=84=9C=20?= =?UTF-8?q?=EB=B0=8F=20=EA=B0=80=EC=9D=B4=EB=93=9C=EB=9D=BC=EC=9D=B8=20?= =?UTF-8?q?=EB=B3=B4=EC=99=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/commands/git/commit.md | 59 ++++++++++++++++++++++++++++++++-- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/.claude/commands/git/commit.md b/.claude/commands/git/commit.md index 34747a0..68ffdd4 100644 --- a/.claude/commands/git/commit.md +++ b/.claude/commands/git/commit.md @@ -1,2 +1,57 @@ -커밋 메시지: $ARGUMENTS -현재 변경사항을 분석하고 커밋을 생성해주세요: +--- +description: "이모지와 컨벤셔널 커밋 메시지로 잘 포맷된 커밋을 생성합니다" +allowed-tools: ["Bash(git add:*)", "Bash(git status:*)", "Bash(git commit:*)", "Bash(git diff:*)", "Bash(git log:*)"] +--- + +# Claude 명령어: Commit + +이모지와 컨벤셔널 커밋 메시지로 잘 포맷된 커밋을 생성합니다. + +## 사용법 + +``` +/commit +``` + +## 프로세스 + +1. 스테이지된 파일 확인, 스테이지된 파일이 있으면 해당 파일만 커밋 +2. 여러 논리적 변경사항에 대한 diff 분석 +3. 필요시 분할 제안 +4. 이모지 컨벤셔널 포맷으로 커밋 생성 + +## 커밋 포맷 + +`<이모지> <타입>: <설명>` + +**타입:** + +- `feat`: 새로운 기능 +- `fix`: 버그 수정 +- `docs`: 문서화 +- `style`: 포맷팅 +- `refactor`: 코드 리팩토링 +- `perf`: 성능 개선 +- `test`: 테스트 +- `chore`: 빌드/도구 + +**규칙:** + +- 명령형 어조 ("추가" not "추가됨") +- 첫 줄 72자 미만 +- 원자적 커밋 (단일 목적) +- 관련 없는 변경사항 분할 + +## 이모지 맵 + +✨ feat | 🐛 fix | 📝 docs | 💄 style | ♻️ refactor | ⚡ perf | ✅ test | 🔧 chore | 🚀 ci | 🚨 warnings | 🔒️ security | 🚚 move | 🏗️ architecture | ➕ add-dep | ➖ remove-dep | 🌱 seed | 🧑‍💻 dx | 🏷️ types | 👔 business | 🚸 ux | 🩹 minor-fix | 🥅 errors | 🔥 remove | 🎨 structure | 🚑️ hotfix | 🎉 init | 🔖 release | 🚧 wip | 💚 ci-fix | 📌 pin-deps | 👷 ci-build | 📈 analytics | ✏️ typos | ⏪️ revert | 📄 license | 💥 breaking | 🍱 assets | ♿️ accessibility | 💡 comments | 🗃️ db | 🔊 logs | 🔇 remove-logs | 🙈 gitignore | 📸 snapshots | ⚗️ experiment | 🚩 flags | 💫 animations | ⚰️ dead-code | 🦺 validation | ✈️ offline + +## 분할 기준 + +다른 관심사 | 혼합된 타입 | 파일 패턴 | 큰 변경사항 + +## 참고사항 + +- 스테이지된 파일이 있으면 해당 파일만 커밋 +- 분할 제안을 위한 diff 분석 +- **커밋에 Claude 서명 절대 추가하지 않음**