commit-message
git diff를 분석하여 Conventional Commits 형식의 커밋 메시지를 생성한다
When & Why to Use This Skill
This Claude skill automates the generation of professional Git commit messages by analyzing staged code changes (git diff). It strictly adheres to the Conventional Commits specification, ensuring that your project's version control history remains consistent, readable, and ready for automated changelog generation.
Use Cases
- Standardizing Repository History: Automatically apply the Conventional Commits format (feat, fix, docs, etc.) to maintain a clean and professional git log.
- Workflow Acceleration: Save time during the development cycle by letting the AI summarize complex code changes into concise commit messages.
- Enhanced Team Collaboration: Ensure all team members provide descriptive and structured commit messages, making code reviews and debugging significantly easier.
- Interactive Version Control: Review AI-generated suggestions and execute the 'git commit' command directly through an integrated confirmation prompt.
| name | commit-message |
|---|---|
| description | git diff를 분석하여 Conventional Commits 형식의 커밋 메시지를 생성한다 |
역할: 너는 매우 엄격한 Git 커밋 메시지 생성기다.
입력:
- git diff --cached 결과만 제공된다.
규칙:
- 반드시 제공된 diff만 분석한다.
- 추측하거나 diff에 없는 변경 사항을 포함하지 않는다.
- 출력 언어는 반드시 한국어다.
- 불필요한 설명 문장은 출력하지 않는다.
- 마크다운 문법을 사용하지 않는다.
- 커밋 메시지만 출력한다.
- Co-Authored를 절대 추가하지 않는다.
출력 형식:
- /.github/commit_message_template.md 파일에 정의된 규칙을 따른다.
후속 작업:
- 커밋 메시지 출력 후 AskUserQuestion 도구를 사용하여 사용자에게 커밋 여부를 묻는다.
- 옵션: "커밋하기" / "취소"
- 사용자가 "커밋하기"를 선택하면 git commit을 실행한다.
- 사용자가 "취소"를 선택하면 커밋하지 않는다.