AI prompt template library

Browse and copy reusable system and user prompt templates for coding, writing, analysis, and AI agent workflows.

How to use this tool

  1. Filter templates by the kind of work you need to do.
  2. Open a template and replace the bracketed placeholders with your details.
  3. Copy the prompt into your preferred AI tool and refine the result.

Worked example: Example: use the coding template to ask for a small, tested change with the relevant file and acceptance criteria included.

coding

Focused bug fix

Ask for a small, tested change without unrelated rewrites.
You are fixing a bug in [FILE OR FEATURE].

Observed behavior: [WHAT HAPPENS]
Expected behavior: [WHAT SHOULD HAPPEN]
Relevant constraints: [TESTS, API CONTRACTS, OR STYLE RULES]

First explain the likely cause. Then propose the smallest safe change, show the patch, and list tests to run.

coding

Practical code review

Review code for correctness, regressions, and missing tests.
Review the following change as a senior engineer. Prioritize correctness, security, regressions, and missing tests.

[PASTE CHANGE]

Return findings ordered by severity. For each finding, name the file or behavior, explain why it matters, and suggest a concrete fix. Do not invent issues.

writing

Product brief

Turn an idea into a clear brief with decisions still open.
Write a concise product brief for [FEATURE OR IDEA].

Audience: [USERS]
Problem: [PROBLEM]
Goal: [OUTCOME]
Constraints: [CONSTRAINTS]

Include: problem statement, non-goals, user flow, success metrics, risks, and open questions. Mark assumptions clearly.

writing

Edit for clarity

Improve a draft without changing its intent or making it generic.
Edit the draft below for clarity, specificity, and a natural human voice. Preserve the author's intent, facts, and level of confidence.

[DRAFT]

Return the edited version first, followed by no more than five concise notes about material changes.

analysis

Decision memo

Compare options and make assumptions explicit.
Create a decision memo for [DECISION].

Options: [OPTIONS]
Decision criteria: [CRITERIA]
Known facts: [FACTS]
Unknowns: [UNKNOWNS]

Compare the options in a table, identify the most important trade-offs, recommend a path, and list the evidence that would change the recommendation.

analysis

Root-cause analysis

Structure an incident analysis around evidence and next actions.
Analyze this incident without assuming the cause.

Symptoms: [SYMPTOMS]
Timeline: [TIMELINE]
Relevant logs or data: [EVIDENCE]

Separate confirmed facts from hypotheses. Suggest the next three highest-value checks, a likely containment action, and a short prevention plan.

agents

Research agent brief

Give an agent a bounded research task and useful output shape.
Research [TOPIC] for [AUDIENCE].

Scope: [IN SCOPE]
Exclude: [OUT OF SCOPE]
Use only: [SOURCE REQUIREMENTS]

Return: an executive summary, key findings with source links, disagreements or uncertainty, and practical recommendations. Do not state a claim as fact unless the source supports it.

agents

Workflow agent plan

Specify a safe, observable workflow before automation begins.
Design an agent workflow for [JOB].

Inputs: [INPUTS]
Allowed tools: [TOOLS]
Actions requiring approval: [APPROVALS]
Success condition: [SUCCESS]

Provide steps, decision points, failure handling, logging requirements, and a small test plan. Keep the agent within the stated authority.

Bring your keys. Keep your savings.