A team prompt library is a shared, versioned collection of prompts that work, stored with enough context (purpose, inputs, tested model, example output, owner) that a colleague can reuse one without asking its author. Building it takes an afternoon; keeping it accurate is the real job, and that depends on three things: a fixed entry format, a named owner for every prompt, and a review step that runs when a prompt or the underlying model changes. This guide covers each step, with a copy-ready entry template, a folder layout, a review workflow, and prompts for using AI to help maintain the library.
Featured image: “Library stacks of books and bookshelf” by Shixart1985, licensed under CC BY 2.0.
Why most team prompt libraries go stale
Prompt libraries usually fail through neglect, not bad prompts. The typical pattern: someone collects a dozen prompts that work well in a shared doc, people use them for a few weeks, the model gets upgraded or a process changes, a few prompts start producing worse results, someone pastes an edited copy below the original, and soon nobody knows which version is current. People go back to writing their own.
Each of those failures has a specific cause, and the rest of this guide addresses them in order:
| Failure | Cause | Fix |
|---|---|---|
| Nobody trusts the prompts | No record of what a prompt was tested on, or when | Entry template with tested model, date and example output |
| Duplicate, conflicting versions | Editing by copy-and-paste | One file per prompt, with version history |
| Silent quality drops | Model changes nobody checked | Saved test inputs and a re-test on every model change |
| Prompts nobody understands | Only the prompt text was saved | Purpose, inputs and known limits written next to it |
| Nobody fixes anything | No owner | One named owner per prompt, reviews on a schedule |
Step 1: Decide what belongs in the library
Not every prompt deserves an entry. A library full of one-off prompts is as hard to use as having none. A prompt earns a place when at least one of these is true:
- More than one person runs it, or one person runs it every week.
- Its output goes to a customer, a public page, or another system.
- It encodes a rule people tend to forget (tone, legal wording, a required field).
- Someone spent real effort getting it to work and the reason is not obvious from the text.
Start with five to ten prompts that meet these criteria. A small library that is accurate builds more trust than a big one that is half outdated.
Step 2: Use the same entry format for every prompt
A fixed entry format is what makes a prompt reusable by someone other than its author. The template below is a Markdown file with a short metadata header. It works in a Git repository, a wiki, or a shared drive.
---
id: support-ticket-triage
title: Triage a support ticket into severity and summary
version: 1.3.0
status: active # draft | active | deprecated
owner: maria.s # one person, not a team
reviewers: [joao.p]
tested_with: [model name and version you actually ran it on]
last_tested: 2026-10-01
tags: [support, triage, classification]
---
## Purpose
One or two sentences: what this prompt is for and who uses the output.
## When NOT to use it
Cases it was not designed for (e.g. tickets longer than 3,000 words,
non-English tickets).
## Inputs
- {{TICKET_TEXT}}: the full ticket body, plain text
- {{CUSTOMER_TIER}}: one of free, pro, enterprise
## Prompt
[The full prompt text, with every variable written as {{NAME}}]
## Example
Input: [a realistic, anonymized example]
Output: [the output it produced, unedited]
## Known limits
- [Anything the prompt gets wrong or handles inconsistently]
## Test set
Link or path to the saved test inputs and expected outputs.
## Changelog
- 1.3.0 (2026-10-01, maria.s): added rule for security mentions; re-tested on test set
- 1.2.0 (2026-07-14, joao.p): output limited to three lines
Why each field is there:
- owner is a single person because “the support team” never fixes anything. Reassign it when that person changes roles.
- tested_with and last_tested answer the first question anyone asks: will this still work? Prompts do not always transfer between models, or between versions of the same model.
- When NOT to use it prevents the most common misuse, which is running a good prompt on input it was never designed for.
- {{NAME}} variables make the editable parts obvious. Anything not in braces should not be changed by the person using the prompt.
- Example output, unedited shows what “good” looks like. Polishing it hides the prompt’s real behavior.
- Test set turns “it seemed fine” into something you can re-run. More on this in Step 5.
Step 3: Pick a home that has version history
The storage tool matters less than two features: version history, and a way to propose a change without overwriting the current version. A comparison of common options:
| Option | Good for | Watch out for |
|---|---|---|
| Shared doc or spreadsheet | Small, non-technical teams starting out | Edits go live instantly; enforce the template by habit; use the built-in version history |
| Wiki (Confluence, Notion and similar) | Teams that already document processes there | Page history exists, but review before publishing is usually optional |
| Git repository | Technical teams and prompts used in code | Non-developers may need help with pull requests |
| IDE prompt files | Developer prompts used inside the editor | Tied to a specific tool and its feature status |
| Prompt management platform | Many prompts in production, many editors | Extra cost and lock-in; check export options |
Two vendor changes illustrate why plain files under version control are a safe default. For developers, VS Code’s prompt files feature stores reusable prompts as .prompt.md files in a repository’s .github/prompts folder, so they are versioned with the code and run as slash commands in chat. On the other side, OpenAI’s deprecations page lists its reusable prompt objects and the v1/prompts API as scheduled to shut down on November 30, 2026, and recommends moving prompt content into application code. Teams that kept a copy of each prompt in their own repository have nothing to migrate.
If you choose Git, a simple layout keeps it browsable:
prompt-library/
README.md # how to use and contribute, link to template
TEMPLATE.md
support/
support-ticket-triage.md
refund-reply-draft.md
marketing/
product-description.md
engineering/
pr-description.md
tests/
support-ticket-triage/
inputs.jsonl # one realistic input per line
expected.jsonl # expected severity / key fields
deprecated/ # moved here, never deleted
Step 4: Set up ownership and review
Treat a prompt change like a small code change: someone proposes it, explains the problem it fixes, shows it was tested, and a second person approves it. This matters most for shared system prompts and prompts that feed automated workflows, because one edit affects every use.
A workable set of rules for most teams:
- Anyone can propose; owners approve. Open proposals keep improvements coming. Owner approval keeps untested variants out.
- Every change states its reason. “Outputs included refund promises on 3 of 20 test tickets” is a reason. “Improved wording” is not.
- One change at a time. Prompts can be sensitive to small wording changes, so several edits bundled together make it impossible to tell which one helped or hurt.
- Bump the version. A simple scheme: patch for wording that should not change behavior, minor for new rules or format changes, major when inputs or output structure change and anything downstream must be updated.
- Never delete. Move retired prompts to a deprecated folder with a note on what replaced them, so old links and references still make sense.
For more on version numbers, diffs and rollbacks, see prompt versioning.
Step 5: Save test inputs and re-test on every model change
A small test set is what lets the library survive model upgrades. For each important prompt, keep 10 to 20 realistic inputs (anonymized), including a few difficult ones, plus the expected result or the key facts the output must contain. Re-run the set when:
- someone proposes a change to the prompt;
- the team moves to a new model or a new model version;
- a provider announces the retirement of the model the prompt was tested on. Anthropic, for example, says it gives at least 60 days’ notice before retiring publicly released models; see our summary of Claude’s model deprecation policy.
Non-technical teams can do this by hand in a spreadsheet: one row per input, columns for old output, new output and pass or fail. Technical teams can automate it; our walkthrough on building a regression test suite for prompts with promptfoo shows a working configuration. OpenAI’s prompting documentation makes the same recommendation in its own terms: run prompt tests and evaluation cases every time you publish a change.
Step 6: Use AI to help write and audit entries
AI is useful for the tedious part of library maintenance: turning a raw prompt into a complete entry, and checking existing entries for gaps. It should not be the one that approves changes. The two prompts below are designed to slot into the workflow above.
Prompt: turn a working prompt into a library entry
Here is a prompt our team uses for [task]:
<prompt>
[paste the prompt exactly as used]
</prompt>
Here is one real output it produced:
<output>
[paste unedited output]
</output>
Draft a library entry using the template below. Rules:
- Replace anything that changes between uses with a {{VARIABLE}} and list it under Inputs.
- Do not change the meaning of any instruction. If you think one should change,
put it under "Suggested improvements" instead of editing it.
- Under "When NOT to use it" and "Known limits", only list things you can
justify from the prompt or the output. Mark guesses as [UNVERIFIED].
- Suggest 5 test inputs: 2 typical, 3 difficult (edge cases).
<template>
[paste TEMPLATE.md]
</template>
The “do not change the meaning” rule matters because models asked to tidy a prompt tend to rewrite it, and the rewrite has not been tested. Keeping suggestions separate lets the owner decide. The [UNVERIFIED] marker stops plausible-sounding guesses from being saved as facts.
Prompt: quarterly audit of an entry
Audit this prompt library entry. Do not rewrite it.
<entry>
[paste the full entry]
</entry>
Report:
1. Missing or empty fields in the template
2. Variables used in the prompt but not listed under Inputs, or the reverse
3. Instructions that are ambiguous or contradict each other (quote them)
4. Whether the example output actually follows the prompt's format rules
5. Whether last_tested is more than 90 days old, or older than the model listed
6. A yes/no recommendation: keep active, needs re-test, or candidate for deprecation
Report "none found" for any category with no issues.
If you want AI help drafting brand-new prompts rather than documenting existing ones, the generate-critique-revise patterns in our guide to meta-prompting fit before Step 2.
Step 7: Make the library easy to find and use
A library people cannot find in ten seconds will not be used. Practical steps:
- Keep an index page with one line per prompt: title, purpose, owner, status.
- Use tags that match how people search (“support”, “email”, “SQL”), not internal project names.
- Link to the library from the places people already work: the team wiki home, the channel topic, onboarding docs.
- When someone asks in chat for a prompt that exists, reply with the library link, not a pasted copy.
- Add a feedback line to each entry (“Problems? Tell the owner”) so issues reach the right person.
Maintenance calendar
| When | What | Who |
|---|---|---|
| Every proposed change | Run the test set, review the diff, bump the version | Proposer and owner |
| New model or model version adopted | Re-run test sets for all active prompts; update tested_with | Each owner |
| Provider retirement notice | Identify affected prompts; re-test on the replacement before the cutoff | Library maintainer |
| Quarterly | Run the audit prompt; deprecate unused entries; reassign orphaned owners | Library maintainer |
The quarterly cadence is a reasonable starting point, not a rule. Teams whose prompts feed customer-facing automation may want to check monthly; teams with a handful of internal prompts can stretch it.



