코딩 프롬프트 모음 템플릿

코드 리뷰, 리팩터링 및 테스트용 프롬프트.

  • 100% 무료
  • Instant PDF download
  • 가입이나 계정 불필요
Prompt Pack
💻 Coding Prompt Pack

Prompts for code review, refactoring, tests and debugging.

8 prompts · Debugging • Refactoring • Testing

Review

Senior code review
Act as a senior engineer reviewing the diff below. Focus on: correctness, edge cases, readability, performance, and security. For each issue: quote the line, explain, suggest a fix. Ignore style nits.
Explain unfamiliar code
Explain what the code below does, step by step. Then list assumptions it makes about its inputs, and any silent failure modes.

Refactor

Extract & simplify
Refactor the function below to reduce nesting and extract clearly-named helpers. Preserve behavior exactly. Return the new code and a short note of what changed.
Add types
Add strict TypeScript types to the code below. No `any`. Prefer discriminated unions where meaningful. Return the fully typed version and list any behavior you had to infer.

Tests

Table-driven tests
Write table-driven tests for the function below using {{framework}}. Cover happy path, boundary values, invalid input, and one realistic real-world case per branch.
Bug repro test
Given the bug report below, write the smallest failing test that reproduces it. Then propose the minimal fix.

Debugging

Root cause
Here is an error and the surrounding code. First, list the 3 most likely root causes ranked by likelihood. Then tell me exactly what to log or check to distinguish between them.
Performance triage
The code below is slow on inputs of size {{n}}. Identify the dominant cost, propose two optimizations, and show the expected Big-O before/after.

사용 방법

  1. 1.템플릿 선택. 청구서, 이력서, 편지, 예산표 등에서 고르세요.
  2. 2.온라인에서 편집. 정보를 입력하고 로고를 추가한 뒤 바로 미리보기를 확인하세요.
  3. 3.무료 다운로드. PDF로 저장하거나 인쇄하세요. 데이터는 브라우저에만 남습니다.

자주 묻는 질문

템플릿이 정말 무료인가요?

네. 모든 템플릿이 무료이며 가입, 카드, 워터마크가 없습니다.

제 데이터가 저장되나요?

아니요. 모든 작업은 브라우저에서 이루어지며 문서를 서버에 저장하지 않습니다.

관련 템플릿