Build prompts for tasks you repeat across sessionsย
Builds, saves, loads, searches, compares, and manages reusable prompt templates with file-based persistence and git version tracking. Your prompts survive across sessions and accumulate into a searchable library.
Cowork Persistent Prompt Library with Git Versioning
TL;DR
How To Start
STEP 1Choose the Operation Mode
-
mode
· string · optional · default: build
Operation mode. Options: “build” (interactive UltraPrompt builder with auto-save), “save” (save current prompt), “load” (load template), “list” (list all templates), “search” (search by keyword), “compare” (compare versions via git), “delete” (remove template). -
template_name
· string · optional
Name for saving or loading a prompt template. -
category
· string · optional · default: general
Template category. Options: “general,” “content_creation,” “technical,” “marketing,” “analysis,” “craft_specific,” “custom.” -
search_term
· string · optional
Search term for finding saved templates. Used with search mode. -
user_name
· string · optional · default: User
Name for personalized prompts. -
initial_purpose
· string · optional
Initial purpose to guide the build process.
Usage Examples
How AI Reads This Recipe
- DETERMINE MODE from the mode parameter. Route to the appropriate step: build → Step 2, save → Step 3, load → Step 4, list → Step 5, search → Step 6, compare → Step 7, delete → Step 8.
- BUILD PROMPT in build mode by executing the full Core UltraPrompt 10-step interactive flow (template selection through optional sections). After assembly, offer to save to the prompt library. If the user provides a name, auto-save via Step 3.
- SAVE TEMPLATE to the prompt-library directory. Create the category subdirectory if needed. Generate a template file with header metadata (name, category, created, modified, version, author, description) and the full assembled prompt. Update the central PROMPT-INDEX.txt. Recommend a git checkpoint.
- LOAD TEMPLATE by searching the prompt-library directory for a matching filename. Display the template with metadata and offer three options: use as-is, modify specific sections, or use as a starting point for a new build. Section modification reassembles the prompt and offers a new version save.
- LIST TEMPLATES from the index file (or rebuild from file scan if the index is missing). Filter by category if specified. Display a formatted table with name, category, modified date, version, and description.
- SEARCH TEMPLATES using Grep across the prompt-library directory. Case-insensitive search. Rank results by relevance: filename match > metadata match > content match.
- COMPARE VERSIONS using git history. Show commit log for the template file, let the user choose two versions, display the diff with added/removed/changed sections highlighted.
- DELETE TEMPLATE after confirmation. Remove the file and update the index. Note that git history preserves the content for recovery.
When to Use This Recipe
- Want to build a high-quality prompt using the structured UltraPrompt interactive flow and save it for reuse.
- Need to load, modify, or reuse a prompt template from a previous session.
- Want to search your accumulated prompt library by keyword to find relevant templates.
- Need to compare how a template has evolved over time using git version diffs.
Recipe FAQ
Q.Where are prompt templates stored?
Q.How does versioning work?
Q.What happens in build mode?
Q.Can I modify a saved template without rebuilding from scratch?
Q.What categories are available?
Q.How does the recipe integrate with other CRAFT recipes?
Version History
Get this recipe with CRAFT for Claude Cowork
Cowork recipes ship bundled with CRAFT for Claude Cowork — there’s no separate download. Clone the framework once, and your AI runs every recipe automatically when invoked.
Pull anytime to stay on the latest version — free to clone, no login or email required.
Then start your session
Once CRAFT is in your project folder, open a new Cowork session and ask Claude to initialize. For example:
You
Claude
Not familiar with Git? Download as a ZIP
No command line needed. Just download, move, and unzip:
- Open the CRAFT framework repo on GitHub.
- Click the green Code button, then choose Download ZIP.
- Move the downloaded ZIP into your Claude Cowork project folder.
- Unzip it: double-click on Mac, or right-click → Extract All on Windows.
