# Prompt library

> Canonical: https://skillalmanac.com/glossary/prompt-library | Last verified: 2026-11-25 | Index status: index-eligible

A prompt library is a saved collection of reusable prompts, such as examples, templates or team standards, that people can browse, copy and adapt instead of writing each prompt from scratch.

Also called: AI prompt library, prompt libraries, prompt collection, prompt gallery, prompt repository.

## In plain language

A prompt is the text you give an AI model to say what you want. A prompt library is a shelf of prompts that someone already wrote: an email summariser, a bug report template, a code-review checklist. You pick one, fill in your details and run it, like using a recipe card instead of improvising dinner. The limit is that a prompt that worked for one model, one task or one set of documents may work worse in another setting, so a library entry is a starting point to test, not a guaranteed result. Shared libraries also need an owner, or old entries pile up and nobody knows which one is current.

## Technical definition

A prompt library stores prompts as text, often with placeholders for variables, plus notes on purpose and the model used. Vendors publish them as examples: Google Cloud's Vertex AI prompt gallery offers sample prompts and responses labelled by use case, such as classify, extract, summarize and write/generate. Teams also keep their own in a repository or a prompt-management tool. Version control and tests keep entries from drifting.

## How it shows up when you use agents

With agents, a prompt library is often a folder of Markdown files, a team document or a set of saved commands that people reuse across sessions. In a coding tool the same idea can appear as a saved instruction, a template or an [agent skill](/glossary/agent-skill), which is packaged instructions an agent loads when a task matches. A library saves retyping and gives a team a shared wording for common jobs, such as review or test writing. It sits next to [prompt engineering](/glossary/prompt-engineering), the practice of writing and testing prompts, and uses [prompt templates](/glossary/prompt-template) with blanks to fill in.

What breaks when it is misunderstood: people assume a prompt that looked good in a gallery will behave the same on their model and data. An entry copied without testing can produce wrong or off-format output. A library with no owner or version history also drifts.

Next action: when you add an entry, record its purpose, the model it was tried on and one example input and output. Test it on your own data before sharing, and retire entries that fail. For longer-lived instructions, compare a library entry with a rule or skill, and read the [prompt engineering for agents](/learn/prompt-engineering-guide-for-agents) guide.

## Common confusions

- **Prompt library versus prompt template.** A template is one prompt with blanks. A library is the collection that holds many of them.
- **Prompt library versus agent skill.** A library entry is text you paste or call. A skill is a packaged folder with instructions, and sometimes scripts, that an agent can load on its own.
- **Vendor gallery versus team library.** A vendor gallery shows samples to learn from. A team library holds prompts tuned to your models, data and style.
- **Myth: a good prompt works everywhere.** Results depend on the model and the input, so test each entry in its new setting.

## Worked examples in this catalogue

### [prompt-writing](https://skillalmanac.com/skills/skill-almanac/prompt-writing)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A skill that writes and lints LLM prompts with a fixed structure, injection rules and a numeric test plan.

Why it exercises the concept: A library entry is only as good as its prompt. This is a way to write and check one before saving it for reuse.

### [Prompt Engineering for Agents vs Chat Models](https://skillalmanac.com/learn/prompt-engineering-guide-for-agents)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A guide explaining that prompting an agent differs from prompting a chat model because the agent edits files and calls tools, and what the prompt must define.

Why it exercises the concept: It shows why a prompt copied from a chat-oriented library may need changes before it suits a coding agent.

### [image-prompt-direction](https://skillalmanac.com/skills/skill-almanac/image-prompt-direction)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A skill that writes image prompts like an art director and lints them for gaps, contradictions and rights problems.

Why it exercises the concept: Image prompts are a common kind of library entry, and this checks one for gaps before it is shared.

## Related terms

- [Prompt](https://skillalmanac.com/glossary/prompt.md)
- [Prompt template](https://skillalmanac.com/glossary/prompt-template.md)
- [Prompt engineering](https://skillalmanac.com/glossary/prompt-engineering.md)
- [System prompt](https://skillalmanac.com/glossary/system-prompt.md)
- [Context engineering](https://skillalmanac.com/glossary/context-engineering.md)
- [Agent skill](https://skillalmanac.com/glossary/agent-skill.md)

## Sources

- [Prompt gallery](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/prompt-gallery), Google Cloud (accessed 2026-11-24)
- [Prompting (background: providing input to a model)](https://developers.openai.com/api/docs/guides/prompting), OpenAI (accessed 2026-11-25)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
