프롬프트 도감 › No.1991
변경 검토 후 자동 커밋
Review and Commit
Claude Code에서 슬래시 명령으로 쓰는 작업 설명서예요. 바뀐 내용을 살펴본 뒤 관례에 맞는 커밋 메시지로 저장해 줘요.
이럴 때 Claude Code 커밋 자동화, 커밋 메시지 정리, 개발 습관 만들기
도구 ChatGPT · Claude · Gemini
프롬프트
--- allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*) description: Create a git commit --- ## Context - Current git status: !`git status` - Current git diff (staged and unstaged changes): !`git diff HEAD` - Current branch: !`git branch --show-current` - Recent commits: !`git log --oneline -10` ## Your task Review the existing changes and then create a git commit following the conventional commit format. If you think there are more than one distinct change you can create multiple commits.
팁
- 프로젝트의 .claude/commands 폴더에 파일로 저장해요
- 허용 도구 줄이 있어 git 명령만 실행돼요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: DoguD.