🤖 AI

AI Prompt Template Library

Browse and copy curated AI prompt templates for coding, writing, DevOps, analysis and more. Each prompt includes variable placeholders you can customize. Works with ChatGPT, Claude, Gemini and any LLM.

Why the Same Prompt Keeps Producing Vague Answers

If asking an LLM to "explain this error" or "review this code" keeps returning generic, hedge-everything responses, the prompt is almost always missing one of four things: a role, a concrete output format, full context, or explicit constraints. "Explain this error" gives the model no signal about how deep to go or who the answer is for; "act as a senior SRE and list the three most likely root causes for this error, ordered by probability, with a one-line fix for each" gives it a role, a structure, and a length bound, and the difference in usefulness is immediate rather than marginal. Every template in this library exists specifically to front-load those four elements so the first response is usable instead of the fourth one after three rounds of "can you be more specific."

A second, subtler failure mode is pasting a template's {{VARIABLE}} placeholders into the chat without replacing them, or replacing them with too little context — dropping in just an error string with no surrounding code, environment, or stack trace. The templates are written assuming the placeholders carry real detail; a debugging prompt fed only a bare error message and no code will produce generic troubleshooting advice indistinguishable from a search-engine result, because the model has nothing specific to reason about. Filling in the full context the template asks for is what turns a templated prompt into a genuinely tailored answer.

Where These Templates Actually Get Used

From Copy to Paste: What Actually Happens

There's no AI call happening on this page — the "library" is a static array of prompt objects, each with a category, a title, a description, and the prompt text itself containing {{VARIABLE}} placeholders. Clicking a card expands it and renders the prompt with each placeholder highlighted in a distinct color so it's visually obvious what needs replacing before you send it anywhere. The Copy button copies the raw, unmodified template text to your clipboard; you then paste it into whichever chat interface or API client you're already using — ChatGPT, Claude, Gemini, a local Llama deployment — and replace the placeholders with your actual service name, error text, or code. The value this tool adds is entirely in the curation and structure of the prompt text itself, not in any processing step.

What Separates a Prompt That Works From One That Doesn't

Frequently Asked Questions

What AI models do these prompts work with?

All prompts are designed to be model-agnostic and have been tested with ChatGPT (GPT-4o), Claude (Sonnet, Opus), Google Gemini and open-source models like Llama and Mistral. They use standard natural language instruction patterns — no model-specific syntax or API features — so they transfer across models without modification. For best results with very large or complex prompts, use a frontier model like GPT-4o or Claude Opus.

How do I customise these prompt templates?

Every template contains [VARIABLE] placeholders highlighted in green. Replace each placeholder with your specific details before sending — for example, replace [SERVICE_NAME] with the actual name of your service, or [ERROR_MESSAGE] with the exact error text. You can also chain prompts: use the output of one template (e.g. a root cause analysis) as the input context for the next (e.g. a post-mortem draft), building a multi-step workflow.

What makes a good DevOps prompt template?

The most effective DevOps prompts share four elements: a clear role assignment ("Act as a senior SRE"), a specific task with a defined output format ("write a numbered runbook"), concrete context placeholders for the details that change each time, and explicit constraints on the response ("under 500 words", "in YAML format", "no markdown"). Prompts that define all four elements consistently produce structured, directly usable outputs rather than verbose, generic responses that require heavy editing.