Agent Prompt Library

card-ui grid-ui search-ui tag-ui menu-ui option-card-ui

Saved prompts the user can recall instead of re-typing — recurring queries, formatted recipes, role-pinned starters. Three shapes — the full library page, a compact picker (popover or menu), and the prompt card itself.

When to use

Whenever users send the same prompt more than twice. The library is the curation surface (settings/library route); the picker is the in-context recall (chat input slash-menu, slash-command); the card is the unit shared between both. All three reuse the same fact: a prompt has a name, body, optional tags, optional pinned role.

Library grid

Full library route. search-ui at the top, tag-ui filter chips, grid-ui columns="2" of prompt cards. Empty state when search returns nothing.

Prompt library 12 prompts · 4 categories
All · 12 Code review · 4 Drafts · 3 Research · 3 Personal · 2
Code reviewPinned
Review the diff for security, perf, and naming. Flag with file:line. Suggest fixes inline.
Standup draft
Summarize what I did yesterday from my git log. Group by repo. End with today's plan.
Spec from notes
Turn these notes into a spec doc with sections: problem, design, alternatives, open questions.
Bug repro
Given this stack trace, propose three hypotheses ordered by likelihood. Show the test that would falsify each.

Picker (slash-menu)

Compact popover surface fired from a chat input slash-command (/ or Cmd+J). menu-ui with the prompt name + first 80 characters of body as the description. Recent prompts at the top.

Recent Code review Review the diff for security, perf, and naming… ⌘1 Standup draft Summarize what I did yesterday from my git log… ⌘2 All prompts Spec from notes Turn these notes into a spec doc with sections… Bug repro Given this stack trace, propose three hypotheses…

Prompt card (the unit)

The single prompt as a self-contained card. Header with name + tags; body with the full prompt text; footer with run / edit / delete. Reused inside the grid and the slash-menu detail.

Code review Pinned Code review
Review the diff for security, perf, and naming. Flag issues with file:line citations. Suggest concrete fixes inline. Skip nitpicks unless asked. Last used 3 hours ago Times run 28

Composition rules

See also