My Prompt Library for Agentic Coding in Early 2025
· 2 min read
I keep all my prompts as keyboard text replacements on macOS. Type a shortcut, get the full prompt. Here's my complete library.
Browse the full prompt library, where every shortcut, category, and prompt lives with a copy button.
The Three-Part Workflows#
The most powerful patterns here are the **three-part workflows** for incident response (!b1 → !b2 → !b3) and feature development (!f1 → !f2 → !f3). Each stage hands off to the next with specific deliverables:
**Incident Response:**
- **!b1** - Diagnose the problem, create sequence diagram, root cause analysis
- **!b2** - Design the fix, create solution architecture document
- **!b3** - Implement the fix step-by-step with a checklist
**Feature Development:**
- **!f1** - Create PRD with user stories and acceptance criteria
- **!f2** - Architect the solution, create implementation roadmap
- **!f3** - Execute the plan with proper testing
How to Set This Up#
**Option 1: Manual Setup**
Go to **System Settings → Keyboard → Text Replacements**. Add each shortcut and its expansion. They sync across all your devices via iCloud.
**Option 2: Run My Import Script**
I made a bash script that imports all these prompts automatically by writing directly to the macOS TextReplacements database:
- Download the script from this gist
- Make it executable and run it:
chmod +x import-text-replacements.sh
./import-text-replacements.sh- Restart the text replacement service:
killall -HUP cfprefsdOr just log out and back in. The shortcuts will sync to all your Apple devices via iCloud.
**Export Your Own**
Want to export your existing text replacements? Run:
sqlite3 ~/Library/KeyboardServices/TextReplacements.db \
"SELECT ZSHORTCUT, ZPHRASE FROM ZTEXTREPLACEMENTENTRY WHERE ZWASDELETED = 0;"