induwara.lk
induwara.lkAI · Prompt engineering

AI Prompt Library — Free Prompt Templates

48 structured prompt templates for ChatGPT, Claude, Gemini, and Llama — across writing, coding, analysis, learning, marketing, and productivity. Click a card, fill the placeholders, copy. No signup, no API call, every template cites its source.

By Induwara AshinsanaUpdated May 12, 2026
Browse the prompt library48 templates · 6 categories
Sources cited

Showing 48 of 48 prompts.

Category

Templates follow the four-section structure (Role / Task / Constraints / Output) recommended by Anthropic, OpenAI, and Google's prompt engineering documentation. Source for each template is listed in its detail panel.

How it works

A prompt library is only as good as the structure behind each template. Every entry in this library follows the same four-section pattern — Role, Task, Constraints, Output format — that Anthropic, OpenAI, and Google's published prompt engineering guides all converge on. The library doesn't call any AI; it's a static dataset that lives in your browser, with a small in-page tool to fill in placeholders and copy the result.

1. What each template provides

Every prompt ships with five pieces: a title describing the outcome, a one-line summary, the body (with {{placeholders}} for the variables you supply), a when-to-use note that tells you when the template is the right choice, and a source citation — which of the published prompt engineering guides most directly shaped its structure.

2. Categories

48 templates are organised into six categories. Each card carries a category badge and the count next to the filter chip:

  • Writing (8 templates) — Blog drafts, emails, summaries, headlines, rewrites.
  • Coding (8 templates) — Code review, debugging, refactors, tests, regex, SQL.
  • Analysis (8 templates) — SWOT, pros/cons, decisions, root-cause, comparisons.
  • Learning (8 templates) — Study plans, quizzes, Feynman, concept maps, exam prep.
  • Marketing (8 templates) — Ad copy, landing pages, SEO briefs, personas, product copy.
  • Productivity (8 templates) — Meeting prep, status updates, decision docs, OKR drafts.

3. Placeholders

Anything wrapped in {{double_braces}} is a variable you fill in. Open any template card to see the side form: each placeholder has a one-line hint and a realistic example. Click Use examples to auto-fill every field, or fill some and leave the rest. Unfilled placeholders remain as {{name}} in the output — useful if you want the AI to interpret them or you plan to edit before sending.

4. Source-cited methodology

Every template is labelled with the published guide whose structure most directly shaped it. The references are linked at the bottom of this page and on each template's detail panel. The four-section structure (Role / Task / Constraints / Output) comes from Anthropic's prompt engineering overview; the banned-phrases lists in some writing prompts come from OpenAI's style guidance; the comparison-and-reasoning prompts cite the Wei et al. 2022 chain-of-thought paper.

5. Integrity check (the cross-verifier)

The data module exports verifyLibraryIntegrity() — a deterministic self-check that runs through every template and asserts: each one has a non-empty title, body, summary, and when-to-use; every placeholder that appears in the body is declared in the template's metadata (and vice versa); and renderPrompt(body, {}) returns the body unchanged. Running it on this library returns an empty list of issues — that's the cross-check equivalent of the IRD formula reconciliation used in our tax calculator.

Everything is deterministic. The same template plus the same variable values always produces the same copyable prompt — no randomness, no LLM call, no rate limit.

Worked examples

Coding · Debug a Python error

I have a Python script that errors with UnicodeDecodeError. I open the Debug an error template under Coding.

  1. Click the Coding chip → category narrows to 8 templates.
  2. Click the 'Debug an error' card → detail modal opens.
  3. Side form shows 3 placeholders: language, error_message, code. Each has a one-line hint and an example value.
  4. Click 'Use examples' to auto-fill, or type my own: language = python; error_message = my traceback; code = my snippet.
  5. Preview shows the full Role/Task/Constraints/Output prompt with my values substituted. 'All filled' badge appears.
  6. Click Copy → the prompt is on the clipboard, ready to paste into ChatGPT, Claude, or Gemini.

Writing · Blog intro for a new post

I'm writing about why Sri Lankan freelancers should price in USD. I want a punchy 120-word intro.

  1. Search 'blog' → narrows to 1 template ('Blog post introduction') across all categories.
  2. Open the template. Fill: tone = conversational; word_count = 120; title = my draft title; audience = SL freelancers; thesis = LKR pricing compounds currency risk.
  3. Preview shows the full prompt with a Role line, a 4-sentence task description, an explicit banned-phrases list, and 'Output the paragraph only, no headings, no preamble'.
  4. Copy → paste into any chat model → get a focused intro that doesn't drift into '...in today's fast-paced world'.

Edge case · Leave a placeholder blank

I open 'Compare options on axes' under Analysis but I haven't decided on the criteria yet.

  1. Fill options = PostgreSQL, MySQL, SQLite. Leave criteria blank.
  2. Preview shows the prompt with options substituted, but {{criteria}} stays as-is.
  3. Copy → paste into the AI. The model sees {{criteria}} and can either ask me to fill it or pick sensible defaults.
  4. This is intentional: unfilled placeholders are useful when you want the AI to suggest the variable, not just consume it.

Frequently asked questions

Sources & references

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a template that misfires, a missing category, or a prompt you wish existed?

Email me at [email protected] — most fixes ship within 24 hours.