Sunday, 25 Oct 2026 · Hong Kong Hong Kong and China labour news in English
CLB.org.hk China Labour Bulletin Board
Hong Kong news · dedicated AI coverage 中國勞工資訊板 · Labour, employment, jobs and AI.
Artificial Intelligence

A shared prompt library needs owners, tests and expiry dates

Teams using shared AI prompt libraries need more than a text file. This article provides a practical framework for documenting purpose, approved inputs, expected outputs, failure modes, regression tests, and change history to reduce risk and improve consistency.

A shared prompt library needs owners, tests and expiry dates

Your team has a shared prompt library — a spreadsheet, a wiki page, or a folder of text files. Everyone copies and pastes the same prompts for summarising meeting notes, drafting emails, or extracting data from contracts. But when a prompt suddenly produces a different result, no one knows why. Was the model updated? Did someone edit the prompt without telling anyone? Is the prompt still fit for purpose?

A shared prompt library without owners, tests, and expiry dates is a liability. The Hong Kong Digital Policy Office’s Ethical AI Framework and the NIST Generative AI Profile both stress the importance of documentation, testing, and accountability throughout the AI lifecycle. This article gives you a practical structure for managing prompts as the living assets they are.

Why a plain-text library is not enough

Prompts are not static. Large language models change over time — providers update underlying models, adjust safety filters, or alter tokenisation. A prompt that worked reliably in January may produce hallucinations, refusals, or off-topic output in October. Without a record of what the prompt was supposed to do and how it was tested, teams cannot tell whether a failure is a one-off glitch or a sign that the prompt needs to be retired.

The NIST Generative AI Profile recommends that organisations “document the intended purpose, capabilities, and limitations of the GAI system” and “establish processes for monitoring and updating.” A prompt library is a small GAI system. It deserves the same rigour.

Assign an owner for every prompt

Every prompt in the shared library must have a named owner. The owner is responsible for:

  • Defining the prompt’s purpose and scope
  • Reviewing test results
  • Approving changes
  • Setting an expiry date

Ownership does not mean the person writes every prompt themselves. It means there is a single point of accountability. If the owner leaves the team, the prompt should be reassigned or retired. The Hong Kong Ethical AI Framework’s principle of “Accountability” states that “roles and responsibilities for AI systems should be clearly assigned.” A prompt library is no exception.

Document purpose, approved inputs, and expected output

Each prompt entry should include a structured header with at least the following fields:

  • Prompt name — a short, descriptive label
  • Purpose — one or two sentences explaining what the prompt is meant to achieve
  • Approved inputs — what data can be fed into the prompt (e.g., “meeting notes in English, 500–1,000 words”)
  • Expected output — the format and content the prompt should produce (e.g., “a bullet-point summary with no more than five items”)
  • Known failure modes — situations where the prompt is known to perform poorly (e.g., “ambiguous pronouns in the input cause hallucinated names”)
  • Change history — a log of edits with dates, authors, and reasons
  • Expiry date — a date after which the prompt must be reviewed or removed

This documentation turns a raw text string into a governed asset. It also helps new team members understand when and how to use each prompt safely.

Define regression tests for each prompt

A regression test is a small set of example inputs with known correct outputs. Running these tests after any change — or on a regular schedule — tells you whether the prompt still behaves as expected.

For each prompt, create a test table with three columns: Input, Expected output, and Actual output. The actual output is filled in when the test is run. A prompt fails if the actual output does not match the expected output in a meaningful way.

Example for a meeting-summary prompt:

  • Input: “Team discussed Q3 budget. Agreed to reduce marketing spend by 15%. Next meeting: 5 Nov.”
  • Expected output: A bullet list with at least “Q3 budget” and “marketing spend reduction of 15%”

If the prompt returns a paragraph instead of bullets, or omits the spending reduction, the test fails. The owner investigates whether the model changed, the prompt was edited, or the input violated a constraint.

Regression tests do not need to be exhaustive. Three to five representative inputs per prompt is a reasonable starting point. The NIST profile encourages “testing and evaluation throughout the AI lifecycle” — regression tests are a lightweight way to do that for prompts.

Set expiry dates and review cycles

Prompts should not live forever. Set an expiry date — 90 or 180 days from creation or last review — and schedule a reminder. On the expiry date, the owner must either confirm the prompt is still fit for purpose, update it, or archive it.

Expiry dates force teams to re-evaluate prompts against current model behaviour and business needs. A prompt written for a model version that has since been deprecated may produce unreliable results. The Hong Kong Generative AI Technical and Application Guideline notes that “the accuracy and reliability of generative AI outputs should be continuously monitored.” Expiry dates operationalise that monitoring at the prompt level.

Track change history manually or with version control

Every change to a prompt — even a single word — should be logged. The change history record should include:

  • Date of change
  • Name of the person who made the change
  • What was changed (e.g., “added instruction to use bullet points”)
  • Reason for the change (e.g., “users reported inconsistent formatting”)

If your team uses a version control system like Git, store prompts as plain text files and commit changes with descriptive messages. If you use a spreadsheet or wiki, add a “Change history” section at the bottom of each prompt entry. The NIST profile’s emphasis on “transparency” supports this: a documented history lets anyone trace why a prompt behaves the way it does.

Practical checklist for your prompt library

Use this checklist to audit your current library or set up a new one:

  1. Does every prompt have a named owner?
  2. Does every prompt have a documented purpose, approved inputs, and expected output?
  3. Are known failure modes listed?
  4. Are regression tests defined and run on a regular schedule?
  5. Does every prompt have an expiry date?
  6. Is change history recorded and accessible?
  7. Is there a process for retiring prompts that are no longer needed?

If the answer to any of these is “no,” your prompt library is a risk. The good news is that the fix is straightforward: assign owners, write documentation, define tests, set dates, and log changes. These steps do not require special software or a large budget — just discipline and a shared understanding that prompts are not set-and-forget tools.

For further reading, the OWASP Top 10 for LLM Applications 2025 provides a complementary risk-focused perspective on prompt injection, data leakage, and model denial-of-service. The NIST Generative AI Profile and the Hong Kong Digital Policy Office’s Ethical AI Framework offer more detailed guidance on governance and risk management. Your team’s prompt library will be safer and more reliable when it is treated as a governed system rather than a loose collection of text snippets.

Sources and further reading

Guidance and regulations can change; check the current primary sources before applying them to a consequential workplace decision.

Adam
Editor in Chief

Editor in Chief overseeing CLB.org.hk coverage and editorial standards.