Your Personal Prompt Library
As of 2026-11-01
A prompt library is a versioned asset with an owner, a test file and a validation date, not a folder of saved chats. This course takes you from an empty Git repository to tested templates that survive a model change. You apply an inclusion test (reuse across at least three clients, a 12-month rule), lay out a folder tree you can navigate in 30 seconds while screen-sharing, write templates with placeholders, a fixed output format, a no-invention constraint and an injection guard, and pair each template with a 10-row test file and a validation log. A worked case drafts a data dictionary for 40 InfoObjects in a BW/4HANA to Datasphere migration. You then choose where the library lives — personal Git, an MCP server, the Prompt Registry in Generative AI Hub or a specification-first route — and how a small team shares it.
What you will learn
- Apply the 3-client reuse test and the 12-month rule to decide which prompts enter a library, and document one failure mode per template
- Scaffold a Git repository with the phase folders, a CONTRIBUTING.md anonymisation rule and one YAML template carrying last_validated and model_tested
- Write a template with named placeholders, a fixed output format, a no-invention constraint, a thin-input escape and a data-not-instructions line
- Build a 10-row test CSV (normal, unknown field, empty value, injected instruction, long input) and record pass counts with date and model name
- Choose between a personal Git library, an MCP server, the SAP Prompt Registry in Generative AI Hub and a Joule Studio specification for a given client
- Run the re-validation loop after a model change and decide from the diff whether the template or the model is at fault
A prompt library is not a folder of saved chat conversations. It is a versioned asset with an owner, a test file and a validation date, the same discipline you apply to a reusable BW transformation template or a Datasphere naming standard. This module takes you from an empty Git repository to a library of five tested templates that survive a model change, and shows where SAP's own Prompt Registry in Generative AI Hub sits relative to your personal version. Budget about 3 hours: 30 minutes of reading, 90 minutes for the hands-on chapter, 60 minutes for the exercise. SAP Business AI Platform, which SAP's Sapphire keynote coverage describes as bringing together SAP Business Technology Platform, SAP Business Data Cloud and AI Foundation (SAP News, May 2026), appears only where the Prompt Registry needs it.
1. What belongs in a library, and what does not
The inclusion test is reuse across at least 3 different clients without a material rewrite, for example the same dictionary-from-bw-metadata prompt on a BW/4HANA and a Datasphere project. If you rewrote the prompt for each project, it was context, not a template. Apply the test to each candidate before you commit it:
Prerequisites
- Git, a text editor and access to one chat model whose name and version you record
Outcomes
- Apply the inclusion test — reuse across at least three clients, the 12-month rule, no real client data — before committing a template.
- Structure a repository by engagement phase with a meta folder, and give every template the same fields including last_validated and model_tested.
- Turn a one-off sentence into a template with placeholders, a fixed output, a no-invention constraint, a thin-input escape and an injection guard.
- Build, version and test one template with a 10-row test file and a dated validation log, and rerun it after a model update.
- Choose where the library lives — personal Git, MCP server, SAP Prompt Registry or specification-first — and a sharing model for a small team.
Full module with the Consultant plan — €19.90/month. The full module adds: the decision framework · the end-to-end scenario walkthrough · the KPI scorecard · the anti-patterns · the code blocks · the knowledge check · the diagrams.