본문 바로가기

11월 26일 19:00 기준 · 10분마다 새 소식을 확인합니다

광고나 제휴로 순서를 바꾸지 않습니다 · pick 기준 보기 ›
소식 받기
코딩 · 개발

기능 개발 및 커밋 메시지

신규 기능 개발 시 코드 품질 점검부터 규격화된 커밋 메시지까지 완성합니다.

추천 툴
ClaudeAI 분류
쓰인 기법
역할 부여 · 변수 활용 · 출력 형식 지정

프롬프트 원문

Claude로 실행
You are a senior software engineer with keen understanding in ${language}. I am working on ${project_or_feature_description}. Your task:
- ${task_1}
- ${task_2}
- ${task_N}
- ensure consistent styling and verify adherence to language-specific best practices
- Check for proper error handling
- ensure that the changes are covered in the tests
- update README and comments where necessary

after update, return general recommended commit message containing commit name followed by what changed in bullet points e.g. 

<type>(<optional_scope>): <description>
<bullet> <body>
한국어 풀이 보기(참고용)
당신은 [프로그래밍 언어]에 대한 깊은 이해를 가진 시니어 소프트웨어 엔지니어입니다. 저는 현재 [프로젝트 또는 기능 설명] 작업을 진행 중입니다. 당신의 임무:
- [작업 1]
- [작업 2]
- [작업 N]
- 일관된 스타일을 유지하고 언어별 모범 사례 준수 여부를 확인합니다.
- 적절한 예외 처리가 되어 있는지 확인합니다.
- 변경 사항이 테스트 코드에 반영되었는지 확인합니다.
- 필요한 경우 README 및 주석을 업데이트합니다.

업데이트 후, 커밋 제목과 변경 사항 요약 목록이 포함된 권장 커밋 메시지를 아래 형식으로 반환하세요.

<type>(<optional_scope>): <description>
<bullet> <body>
  • 활용사용 중인 언어, 프로젝트 개요, 구체적인 작업 요구사항을 대괄호 부분에 명확히 작성하세요.
  • 활용팀 내 커밋 메시지 컨벤션 규칙이 있다면 하단 예시 부분에 함께 첨부하세요.

출처 · prompts.chat · Feature coding template — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.

텍스트 결과

Gemini로 실행한 결과입니다. 입력 항목에는 국내 환경의 예시값을 적용했습니다(AI 생성 — 사실 확인 필요).

실행 입력값 보기
You are a senior software engineer with keen understanding in TypeScript. I am working on a KakaoPay payment integration module for a Korean e-commerce platform. Your task:
- Refactor the payment request handler to use async/await and add configurable timeout options
- Implement webhook signature verification for secure callback handling
- Add automated retry logic for transient network failures during payment approval requests
- ensure consistent styling and verify adherence to language-specific best practices
- Check for proper error handling
- ensure that the changes are covered in the tests
- update README and comments where necessary

after update, return general recommended commit message containing commit name followed by what changed in bullet points e.g. 

<type>(<optional_scope>): <description>
<bullet> <body>

안녕하세요! 카카오페이 결제 연동 모듈의 안정성과 유지보수성을 높이기 위해 요청하신 가이드라인을 반영하여 코드 개선 방안과 커밋 메시지를 작성했습니다.

주요 개선 작업 내역 (예시)

  1. 비동기 처리 및 타임아웃: PaymentService를 async/await 구조로 리팩토링하고, API 요청 시 timeout 옵션(기본 5000ms)을 설정할 수 있도록 개선했습니다.
  2. 웹훅 서명 검증: 카카오페이 콜백 요청의 보안 강화를 위해 crypto.createHmac 기반의 validateWebhookSignature 검증 로직을 구현했습니다.
  3. 재시도 로직: 5xx 서버 에러 발생 시 지수 백오프(Exponential Backoff) 알고리즘을 적용해 최대 3회 재시도하도록 처리했습니다.
  4. 에러 핸들링 & 테스트: 커스텀 PaymentApiError 클래스를 도입하여 에러 응답 구조를 통일하고, Jest 단위 테스트 작성 및 README 문서 내 환경변수 설정 가이드를 업데이트했습니다.

권장 커밋 메시지

feat(payment): refactor KakaoPay module with retry and webhook verification

- Refactor payment request handler to async/await with configurable timeout
- Add HMAC-SHA256 signature verification logic for incoming webhook callbacks
- Implement exponential backoff retry mechanism for transient network errors
- Add PaymentApiError class and enhance overall error handling
- Add unit tests for payment approval flow and signature validation
- Update README.md with webhook environment configuration details

mopick 개선안

원문을 더 잘 동작하게 고쳐 쓴 프롬프트

원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.

AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님

원문72
개선안91

원문의 문제 → 개선안에서 고친 점

  • 입력 칸레슨 05 배우기 ›

    원문 · 5개바꿔 넣을 자리가 일부만 표시돼 있어 쓸 때마다 원문을 고쳐야 했습니다.

    개선 · 8개[Code] · [Self-Review] · [Commit Message]

  • 작업 순서레슨 07 배우기 ›

    원문 · 없음작업 순서가 정해져 있지 않아 AI 가 순서를 스스로 정해야 했습니다.

    개선 · 6단계

고친 이유 (개선안을 만든 AI 의 설명)

  1. 1코드 출력 및 자기 검토 단계를 명확히 추가함.
  2. 2예외 처리 및 테스트 커버리지 요구사항을 구체화함.
  3. 3출력 구조를 단계별로 정리하여 재사용성을 향상함.

원문

You are a senior software engineer with keen understanding in ${language}. I am working on ${project_or_feature_description}. Your task:
- ${task_1}
- ${task_2}
- ${task_N}
- ensure consistent styling and verify adherence to language-specific best practices
- Check for proper error handling
- ensure that the changes are covered in the tests
- update README and comments where necessary

after update, return general recommended commit message containing commit name followed by what changed in bullet points e.g. 

<type>(<optional_scope>): <description>
<bullet> <body>

개선안 · 색칠한 [칸]에 내 내용을 넣어 쓰세요

You are a senior software engineer expert in \${language}.
Context: I am working on \${project_or_feature_description}.

Task:
1. \${task_1}
2. \${task_2}
3. \${task_N}

Requirements:
- Follow \${language} best practices, clean code standards, and consistent styling.
- Ensure robust error handling and proper edge-case management.
- Update or add tests covering all code changes.
- Update README and inline comments where necessary.

Output Format:
1. [Code]: Provide the updated code with file names.
2. [Self-Review]: Briefly verify all tasks, tests, and edge cases are addressed.
3. [Commit Message]: Return a structured commit message:
<type>(<optional_scope>): <description>
- <bullet point of what changed>

같은 분야 프롬프트 코딩 · 개발

더 보기 ›