If you use AI daily, you have a private collection of prompts that work. The one that makes ChatGPT summarize a meeting the way you like. The one that gets Claude to review code without lecturing you. The system prompt you spent an hour tuning.
And you almost certainly cannot find any of them right now.
Storing AI prompts is a solved problem, but most people solve it badly - a scratch note, a pinned chat, a Slack message to themselves. This guide covers where to actually store prompts, what separates a real prompt library from a text dump, and how to make the library reachable everywhere you type: chat apps, your editor, the terminal, and even your coding agent.
Why the notes-app approach falls apart
The default storage strategy is a document called prompts.md. It works for about three weeks. Then:
- Retrieval costs more than rewriting. Opening the file, scrolling, finding the right block, selecting it exactly, copying, switching back - that is fifteen seconds and a lost train of thought. Retyping a mediocre prompt is faster, so you retype a mediocre prompt.
- The variable parts get baked in. Your "summarize this" prompt has a specific tone and length hardcoded from the day you wrote it. Adapting it means editing text by hand every time, which people do wrong or skip.
- It does not follow you. The prompt is on your Mac. You are on your phone. Or in a terminal. Or inside an agent session that cannot read your notes.
- It rots silently. Nothing tells you that eleven of your forty prompts were written for a model generation that no longer needs that scaffolding.
The fix is not a better document. It is storing prompts somewhere that can insert them for you.
What a real prompt library needs
Whatever tool you pick, judge it on five things:
- Instant recall. A prompt should arrive in the text field in under a second - a keyword you type, or a hotkey and two letters. If retrieval requires an app switch, the library will not get used.
- It works where you type. Prompts are not only for ChatGPT. You paste them into Claude, Gemini, Perplexity, an IDE chat panel, a GitHub issue, a terminal. Storage that only works inside one product is half a solution.
- Parameters, not copies. A prompt with a fill-in tone, audience, or language is one prompt. Without parameters it becomes eight near-duplicates that drift apart.
- Input injection. Most prompts are "do X to this" - where this is your clipboard or your current selection. The library should pull that in automatically.
- Privacy you can reason about. Prompts leak intent, client names, unreleased work, and sometimes credentials. Prefer local storage or your own cloud account over a third-party prompt SaaS.
Where people store AI prompts today
Chat app favorites and custom GPTs
ChatGPT's saved prompts, Claude Projects, and custom GPTs are genuinely useful - but they are walled in. A prompt saved in ChatGPT does not exist when you are in Claude, and neither exists in your editor. Good for a workflow that lives entirely in one assistant; poor as your system of record.
A Git repository of Markdown files
Popular with developers, and the versioning is a real advantage - you can diff a prompt against the version that worked last month. The weakness is retrieval: nothing types the prompt for you, so the copy-paste tax remains.
A text expander
This is the option most people overlook, and it maps almost exactly onto the five requirements above. A text expander stores blocks of text and inserts them when you type a keyword - system-wide, in any app. Prompts are blocks of text. The fit is not a coincidence: a prompt library is a snippet library where the snippets happen to be addressed to a model.
The rest of this guide uses Snippety for the examples, because it stores prompts locally, adds template variables, can call an AI model from inside a snippet, and exposes the whole library to the terminal. The general pattern applies to any capable expander.
Step 1: Store each prompt as a snippet with a keyword
Create one snippet per prompt and give it a keyword you can type without thinking. A consistent prefix keeps prompts from colliding with ordinary words and turns your library into a namespace:
;pr-summ- summarize;pr-review- code review;pr-eli5- explain simply;pr-email- draft a reply
Type the keyword in ChatGPT, Claude, an IDE, or a terminal, and the full prompt appears in place. That is the entire retrieval story - no app switch, no scrolling.
Group them with a collection (say, AI) and tag them by purpose (writing, code, research). Collections and tags matter more than they sound like they should: they are what lets you filter the library later from the search bar or the command line.
Step 2: Turn static prompts into templates
This is the step that separates a prompt library from a text file. Snippety placeholders use the {@…@} syntax, and a handful of them cover nearly every prompt you will write.
Fill-in variables
{@text|Field Title|default@} pauses on expansion and asks for a value:
Explain {@text|topic@} to a {@text|audience|senior engineer@}.
Use at most three paragraphs and one concrete example.
Dropdowns instead of duplicates
{@selectable|Title|A;B;C@} gives you a preset list - the cure for near-duplicate prompts:
Rewrite the text below to be {@selectable|Tone|neutral;friendly;formal;blunt@}
and about {@selectable|Length|half as long;the same length;more detailed@}.
Feed in your clipboard or selection
Most prompts operate on something you are looking at. {@clipboard@} and {@selected-text@} inject it directly, so "copy, switch, paste, write prompt around it" collapses into one keyword:
Review this diff for correctness bugs only. Ignore style.
Respond with a numbered list, most severe first.
{@clipboard@}
Branch inside a single prompt
Conditional blocks let one snippet cover cases that would otherwise be separate prompts. Combine them with a hidden dropdown - the YES flag means the choice itself is not inserted into the output, it only drives the logic:
{@selectable|Mode|explain;refactor;test||YES@}
{@if|Mode == explain@}
Explain what this code does, step by step, and flag anything surprising.
{@elseif|Mode == refactor@}
Refactor this code for readability. Keep behavior identical and show a diff.
{@else@}
Write thorough unit tests for this code, including edge cases.
{@endif@}
{@selected-text@}
One keyword, three prompts, no drift between them. Full reference: placeholders and conditional blocks.
Share a common preamble
If every prompt of yours starts with the same role and constraints, put that preamble in its own snippet and reference it with {@snippet|SNIPPET_ID@}. Edit the preamble once and every prompt that references it updates.
Step 3: Run the model from inside the snippet
Storing prompts assumes you are going to paste them into a chat window. Sometimes you do not need the chat window at all - you need the answer, right where the cursor is. That is what the AI Assistant placeholder does: it sends your instructions (and optionally some input) to a model and inserts the response inline.
Setting it up
Open App Settings → Integrations → AI and add an OpenAI API key, or point Snippety at any OpenAI-compatible endpoint - including a local model served by Ollama at http://localhost:11434/v1/chat/completions, which keeps every prompt and every input on your machine. Keys are stored in the system Keychain. You can also cap input length, output tokens, and request timeout so a stray expansion cannot run up a bill. See AI configuration.
The syntax
{@ai|InputMode|Instructions|Model@}
The input mode decides what the model receives alongside your instructions:
Selection- whatever text is selected in the front app (the default)Clipboard- the current clipboard contentsTextField- you type the input when the snippet expandsSelectionAndParam/ClipboardAndParam- the selection or clipboard plus a value you supply at expansion timeNone- instructions only, no input
With the …AndParam modes, %@ in the instructions marks where your value lands. That single feature turns a fixed prompt into a family of prompts:
{@ai|SelectionAndParam|Translate the selected text to %@. Keep the tone.@}
Expand it, type Japanese, and the translation replaces your keyword. No chat tab was opened. A few more that earn their keyword quickly:
{@ai|Selection|Fix grammar and punctuation. Change nothing else.@}
{@ai|Clipboard|Summarize into five bullet points, no preamble.@}
{@ai|Selection|Rewrite as a polite, concise reply.|GPT-4o mini@}
{@ai|SelectionAndParam|Convert this code to %@. Idiomatic style, no commentary.@}
The fourth parameter pins a model for that one snippet - useful when a cheap fast model handles your grammar fixes while something stronger handles the reasoning-heavy ones. Everything else falls back to the default model in settings. The whole thing is an AI Assistant placeholder, so it composes with the rest: a snippet can ask you for a tone via a dropdown, feed your selection to the model, and drop the result into your email.
Two practical notes. AI placeholders take real time to resolve - seconds, not milliseconds - so use them where the wait is worth it. And every expansion sends its input to whichever model you configured, which is exactly the moment to consider a local model for anything sensitive.
Step 4: Reach your prompts from the terminal
A prompt library that only exists in GUI text fields is missing half its value, because an increasing share of AI usage happens at a command line. Snippety Pro installs a snippety command that talks to the running app, so the terminal sees the same library as the app and iCloud:
snippety list --collection AI # what do I have?
snippety list --tag code --json # machine-readable, for scripts
snippety expand pr-review # print the resolved prompt
snippety expand pr-review | pbcopy # straight to the clipboard
expand writes to stdout with no trailing newline, so it pipes into anything - including whatever CLI you use to talk to a model:
snippety expand pr-summ | llm
git diff | pbcopy && snippety expand pr-review | claude -p
Prompts with variables take values positionally, in the order the placeholders appear, or pop the normal fill form:
snippety expand pr-translate --var "Japanese"
snippety expand pr-review --show-form # ask me for what I left out
And --in-app sends the expanded text to whatever app is in front instead of back to the terminal, which is what makes prompts bindable to global hotkeys via a daemon like skhd. Details in the CLI documentation.
Step 5: Let your AI agent fetch its own prompts
Here is the part most prompt-storage advice misses. Coding agents - Claude Code, Codex, Cursor, or anything else that can run shell commands - can read your prompt library themselves, if you tell them it exists. Your library stops being something you paste into the agent and becomes something the agent looks things up in.
Because snippety is an ordinary command with a --json mode and clear exit codes, no plugin or integration is needed. Add a section like this to your agent's instructions file (CLAUDE.md, AGENTS.md, a Cursor rule - whatever your tool reads):
## Prompt library
My reusable prompts live in Snippety. Use the `snippety` CLI to reach them
instead of writing a prompt from scratch or asking me to paste one.
- `snippety list --collection AI --json` - see what is available; each entry
has `name`, `keyword`, `template`, `collection`, and `tags`.
- `snippety expand <keyword>` - print one with its placeholders resolved.
- `snippety expand <keyword> --var "value"` - supply values positionally,
in the order the placeholders appear in the template.
- `snippety add "<name>" --keyword <kw> --collection AI --template-file -`
- save a prompt we just refined, reading the text from stdin.
Rules:
- Prefer an existing prompt over inventing one. Check the list first.
- Never pass `--show-form` or `--in-app`; both need me at the keyboard.
- Exit codes: 3 = app not running, 4 = Pro required, 5 = not found. On 3 or 4,
tell me instead of retrying.
What this buys you in practice:
- Consistency. "Review this the way I like reviews" resolves to the exact prompt you tuned, not the agent's improvisation of it.
- A shorter context. The agent pulls the one prompt it needs when it needs it, instead of you pasting a wall of standing instructions into every session.
- A library that grows itself. When you and the agent land on wording that works, "save that as a snippet called PR review with keyword
pr-review" is one command - and it is instantly available in your editor, on your phone, and in tomorrow's session, because the CLI writes through the app and into iCloud. - Shared prompts for a team. Snippety collections can be shared over iCloud, so a team can keep one reviewed set of prompts that everyone's agents read from.
The same trick works for shell scripts and CI: snippety expand is just a command that prints text, and the prompts stay editable in a real UI instead of buried in a script.
Organizing a library that stays useful
- One prefix for prompts.
;pr-or;ai-. It keeps prompts from firing inside ordinary words and makes the library browsable by typing the prefix alone. - Name for retrieval, not for cleverness. You will search by what the prompt does - "summarize", "review", "translate" - so put that word first in the name.
- Merge before you multiply. Two prompts differing by one adjective should be one prompt with a dropdown.
- Prune on model upgrades. Lots of prompt scaffolding - "think step by step", elaborate output-format begging, few-shot examples - exists to work around limitations that newer models no longer have. Re-test your top prompts when you switch models and delete what is no longer earning its tokens.
- Keep secrets out. Prompts get shared, synced, and pasted into third-party models. API keys and credentials do not belong in them.
A starter library
Six prompts worth creating today. They cover most of what people actually use AI for, and each one is a template rather than a fixed string:
;pr-summ - summarize the clipboard
Summarize the text below into {@selectable|Length|3 bullets;5 bullets;one paragraph@}. No preamble.
{@clipboard@}
;pr-review - review the selection
Review this code for {@selectable|Focus|correctness bugs;security issues;readability@}. Be specific and cite lines.
{@clipboard@}
;pr-reply - draft a reply
Draft a {@selectable|Tone|warm;neutral;firm@} reply to the message below. Keep it under {@text|words|120@} words.
{@clipboard@}
;pr-eli5 - explain something
Explain {@text|topic@} to a {@text|audience|smart beginner@}, in three short paragraphs with one concrete example.
;pr-fix - fix grammar in place, no chat window
{@ai|Selection|Fix grammar, spelling, and punctuation. Preserve voice and meaning. Return only the corrected text.@}
;pr-tr - translate the selection into any language
{@ai|SelectionAndParam|Translate the selected text to %@. Keep the tone and formatting.@}
The first four hand you a prompt to send to whichever assistant you prefer. The last two skip the assistant entirely and rewrite your text in place. Both patterns belong in the same library.
The short version
Store prompts where they can be inserted, not just read. Give each one a keyword, replace the parts that change with variables, and pull your clipboard or selection in automatically. Keep the library local so you can be honest in your prompts. Then expose it to the places you actually work - every text field, the terminal, and the agent you are pairing with - and it stops being a file you forget to open.
Snippety does all of that natively on Mac, iPhone, and iPad, with no account and a one-time purchase option. If you are new to the idea, start with what a text expander is, or see the prompt library page for more examples.
Ready to type less and do more?
Snippety is a native text expander for Mac, iPhone, and iPad. Free to start — one-time purchase available.