Skip to main content

Prompt Library

Prompts are reusable instruction templates with a slash-command identity. Each prompt has a slug (/review-pr), a title, optional description and tags, template content, and typed variables.

Variables

Content references variables as {{name}}. Every referenced variable must be declared, and each declaration is typed: text, number, select (with options), or boolean, optionally required and with a default. When a prompt is inserted in the composer, its variables are collected before the content is rendered.

Versions

Updating a prompt bumps its version and archives the prior revision. The history view lists revisions; a rollback restores an old revision as a new version, so the trail stays linear and nothing is silently rewritten.

Sharing, export, and import

Prompts are private by default and shareable through the common resource-grant model (read or write, to users or groups). Export produces a libre-prompt.v1 JSON document; import recreates it, refusing a slug collision unless overwrite is requested. Prompt titles, descriptions, content, variables, and tags are encrypted at rest; the slug stays plain so slash lookup works.

Profiles

An assistant profile can bind one prompt; the rendered content then leads the profile's own system prompt for every session using that profile.

Example

Create a prompt under Settings → Prompts (or pick one of the starter templates there and edit it):

  • Slug: review-pr

  • Title: Pull request review

  • Content:

    Review the following {{language}} changes with {{strictness}} strictness.
    Point out bugs first, style second, and end with a one-line verdict.
  • Variables: language (text, required) and strictness (select: low, normal, pedantic, default normal).

In any chat, type / — the composer lists your prompts. Pick /review-pr, fill in language: TypeScript and pick pedantic, and the rendered text replaces your draft, ready to send (paste the diff after it). Editing the prompt later bumps it to version 2; the old wording stays in the history and can be rolled back.