コーディング用プロンプト集テンプレート

コードレビュー、リファクタリング、テスト用のプロンプト。

  • 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で保存するか印刷します。データはブラウザ内にとどまります。

よくある質問

テンプレートは本当に無料ですか?

はい。すべてのテンプレートが無料で、登録もカードも不要、透かしも入りません。

入力したデータは保存されますか?

いいえ。すべてブラウザ内で処理され、書類が当サイトのサーバーに保存されることはありません。

関連テンプレート