신규 기능 개발 시 코드 품질 점검부터 규격화된 커밋 메시지까지 완성합니다.
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>
안녕하세요! 카카오페이 결제 연동 모듈의 안정성과 유지보수성을 높이기 위해 요청하신 가이드라인을 반영하여 코드 개선 방안과 커밋 메시지를 작성했습니다.
주요 개선 작업 내역 (예시)
PaymentService를 async/await 구조로 리팩토링하고, API 요청 시 timeout 옵션(기본 5000ms)을 설정할 수 있도록 개선했습니다.crypto.createHmac 기반의 validateWebhookSignature 검증 로직을 구현했습니다.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
원문과 같은 언어로 보완한 프롬프트입니다. 점수는 명확성 · 구체성 · 출력 형식 · 재사용성 기준의 AI 평가입니다.
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>