☰ 분류

Conventional Commit 생성 프롬프트

git diff나 변경 설명을 입력하면 Conventional Commits 규격에 맞춘 커밋 메시지를 생성합니다. 타입, 스코프, 본문, 푸터 규칙을 포함합니다.

분류개발 › 코딩
태그초안작성형식변환개발자코드
프롬프트 (영어 본문 · 답은 한국어로 옵니다)
I want you to act as a conventional commit message generator following the Conventional Commits specification. I will provide you with git diff output or description of changes, and you will generate a properly formatted commit message. The structure must be: <type>[optional scope]: <description>, followed by optional body and footers. Use these commit types: feat (new features), fix (bug fixes), docs (documentation), style (formatting), refactor (code restructuring), test (adding tests), chore (maintenance), ci (CI changes), perf (performance), build (build system). Include scope in parentheses when relevant (e.g., feat(api):). For breaking changes, add ! after type/scope or include BREAKING CHANGE: footer. The description should be imperative mood, lowercase, no period. Body should explain what and why, not how. Include relevant footers like Refs: #123, Reviewed-by:, etc. (This is just an example, make sure do not use anything from in this example in actual commit message). The output should only contains commit message. Do not include markdown code blocks in output. My first request is: "I need help generating a commit message for my recent changes".

어떤 프롬프트인가

정해진 규칙에 맞는 커밋 메시지를 더 엄격하게 만들 때 쓰기 좋다. 예시는 실제 출력에 쓰지 말라고 하며, 마크다운 코드 블록 없이 메시지만 요구한다.

모델 비교

ChatGPT는 가장 정확하고 간결하다. Gemini는 구체적이지만 일부를 추론했고, [C]는 답이 누락됐다.

ChatGPT종합 1위
44/ 50

+ 변경 핵심을 한 줄로 정확하고 간결하게 요약했다

- 보안 기능 추가이므로 feat가 더 자연스러울 수 있다

Gemini
41/ 50

+ 제한 기준과 카운터 동작을 본문에 구체화했다

- 30분 뒤 잠금 해제 구현과 근거가 diff에 없다

기준ChatGPTGemini앞선 모델
지시 준수98ChatGPT +13%
정확성97ChatGPT +29%
구체성99동점
구성·가독성89Gemini +13%
분량 적정성98ChatGPT +13%

gpt-5.6-sol가 모델 이름을 가린 채 1~10점으로 채점했습니다 (2026-09-25). 측정값이 아니라 AI 심사 결과입니다.

답 전문 보기

같은 입력을 세 모델에 넣어 받은 답을 그대로 옮겼습니다. 각 CLI(에이전트 하네스)에서 실행했습니다. ChatGPT·Claude 앱이나 웹에서는 답이 다를 수 있습니다.

넣은 입력
[붙여 넣은 자료]
다음은 최근 변경사항의 git diff야. 이걸 바탕으로 커밋 메시지를 만들어줘.

diff --git a/src/services/auth.service.ts b/src/services/auth.service.ts
index 3f2a1c9..8b6e2fd 100644
--- a/src/services/auth.service.ts
+++ b/src/services/auth.service.ts
@@ -12,6 +12,14 @@ export class AuthService {
   async login(email: string, password: string) {
     const user = await this.userRepo.findByEmail(email);
     if (!user) throw new UnauthorizedException('사용자를 찾을 수 없습니다.');
+
+    if (user.failedLoginCount >= 5) {
+      throw new ForbiddenException('로그인 시도 횟수를 초과했습니다. 30분 후 다시 시도해주세요.');
+    }
+
     const isMatch = await bcrypt.compare(password, user.passwordHash);
     if (!isMatch) {
+      await this.userRepo.incrementFailedLoginCount(user.id);
       throw new UnauthorizedException('비밀번호가 일치하지 않습니다.');
     }
+    await this.userRepo.resetFailedLoginCount(user.id);
     return this.generateToken(user);
   }
 }
gpt-5.6-luna (codex CLI · 에이전트 하네스) · 실행일 2026-09-24

fix(auth): 로그인 실패 횟수 제한 및 성공 시 카운터 초기화

같은 분류의 프롬프트

방산 CV 12개월 로드맵 프롬프트
2046 퍼즐 게임 제작 프롬프트
React 컴포넌트 통합 프롬프트
3D 아바타 팩토리 요구 프롬프트
3D FPS 게임 개발 프롬프트