43.2 Shared prompt libraries and templates

Overview and links for this section of the guide.

The Internal Library

Create a `prompts` package in your monorepo.

import { summarizer } from '@org/prompts';

const summary = await summarizer.run(text);

This ensures that when the "Summarizer" prompt is improved, every app in the company benefits instantly.

Template Variables

Standardize your variable names. Use `{{user_context}}`, `{{file_content}}`, `{{query}}`. Don't use `{{input}}` in one place and `{{text}}` in another.

Where to go next