The Claude Code workflow problem
If you use Claude Code every day, you've got a handful of prompts you send constantly. "Make a comprehensive plan and put my full message in it verbatim." "Do a review pass and look for nuances I forgot." "Check the schemas and variable types before we continue."
These aren't one-liners. The ones that actually change the output are two or three paragraphs with specific instructions. You wrote them once, nailed the wording, and now you need them fast.
The problem is that Claude Code itself doesn't have a prompt library.
The options you've got
There are four places people try to keep these:
- A scratch file. Usually called
prompts.mdand opened in whatever editor is nearest. Works until the file gets disorganized. - Scrolling back through Claude Code history. Finds last week's prompt, fails to find last month's.
- Claude Code's slash commands. Great for frequent flows you can templatize. Awkward for ad-hoc prompts you want available in any tool.
- A snippet app. Refrain keeps any text you reuse, from email replies to code snippets, in one searchable list. Your Claude Code prompts can live there too.
How Refrain fits the Claude Code loop
Refrain is a Mac menu bar app for any text you reuse, and AI prompts are one of the most common uses. Your prompts sit in its list next to whatever else you paste often. You're in a Claude Code session, you want to run your "final review pass" prompt, you click the menu bar icon, click the prompt, and paste with Cmd-V. Or stay on the keyboard: press Control-Option-Space, type "final", press Return, and paste. Your terminal stays in front the whole time.
A few things matter for Claude Code specifically:
Long prompts, kept intact
The prompts that produce good results are multi-paragraph. Refrain stores and copies them as-is, whitespace and line breaks preserved. No field truncation, no autoformat surprises.
Starter snippets, then your own prompts
A new Refrain file starts with 13 starter snippets in your Mac's language. Most cover everyday text like an email signature, meeting link, follow-up, and support replies. A few are handy for developers right away: a git command for undoing the last commit, plus two AI prompts, summarize and proofread.
The planning and review prompts that shape a Claude Code session are the ones you write yourself. A few worth adding on day one:
- plan-before-coding: capture the request verbatim and plan against every line.
- second-review-pass: look for the nuances and details you forgot.
- check-field-names: catch field-name and variable-type drift.
- continue-and-log: keep going, updating a progress file as you work.
Every starter snippet is editable and deletable, so keep the ones you use and replace the rest with your own.
External edits, live reload
Refrain stores every snippet in a single markdown file at a location you choose. Edit it in Vim or VS Code. Refrain notices and reloads. If you already keep coding notes in your editor of choice, prompts are just more of the same.
Claude Code slash commands vs Refrain
These are complements, not substitutes. Slash commands are great when a prompt belongs to a specific repo and can take arguments. Refrain is better when the prompt is global: you want it across every repo, every session, and also available in ChatGPT, Cursor, and the Claude desktop app.
The rule of thumb I use:
- Lives in one repo, parameterized? Slash command.
- Lives in your head across all work? Refrain.
Sync across machines
Refrain's storage is one file. If you put it in your Dropbox or iCloud Drive folder, every Mac you own picks it up. Switch laptops during the day, your prompts follow. No account to create.
A suggested setup
This is the setup I'd recommend for a Claude Code power user:
- Install Refrain. Point its file at
~/Dropbox/refrain-snippets.mdor equivalent. - Look over the 13 starter snippets. Keep the ones you'll use, like the git command or your meeting link, delete the rest, and add your top five planning and review prompts.
- For anything repo-specific, write it as a Claude Code slash command instead. Let Refrain hold the global stuff.
- Learn the shortcut: Control-Option-Space by default. If it clashes with something else, pick another preset in Settings (Control-Option-P, Option-Command-P, or Shift-Option-Space).
That's it. Setup takes a few minutes, and the prompts you reach for every day stop living in your scrollback.