A macOS menu bar app that refines your prompts using your Claude subscription (no API key needed!).
- Select your draft prompt text in any app
- Press ββ§P (Command+Shift+P)
- App captures the text and opens Claude (Desktop or web)
- Auto-pastes the refinement request to Claude
- You copy Claude's response (βC)
- App detects the clipboard change and auto-pastes back to your original app
- β Works with Claude Desktop app OR Claude.ai web
- β Uses your existing Claude subscription (no API costs)
- β Global hotkey (ββ§P)
- β Auto-paste refined prompts back
- β Menu bar integration
- β Customizable prompt template
- β Clipboard monitoring for seamless workflow
- Open Xcode
- Create a new macOS App project
- Product Name: ClaudePromptRefiner
- Interface: SwiftUI
- Language: Swift
- Bundle Identifier: com.yourname.ClaudePromptRefiner
Replace the default files with these:
- β ClaudePromptRefinerApp.swift (already created)
- β AppDelegate.swift (already created)
- β ClipboardMonitor.swift (already created)
- β SettingsView.swift (already created)
- β Info.plist (already created)
- In Xcode, go to Signing & Capabilities
- Enable App Sandbox (uncheck if issues with accessibility)
- Go to Info tab
- Add custom Info.plist if needed
- Build and run the app
- macOS will prompt for Accessibility permission
- Go to System Settings β Privacy & Security β Accessibility
- Enable ClaudePromptRefiner
- Open any text editor
- Select some text like: "write a story"
- Press ββ§P
- Claude should open with the refinement request
- Copy Claude's response
- It should auto-paste back!
Before: "write a story"
After: "Write a compelling short story (500-800 words) with:
- A clear three-act structure
- A relatable protagonist facing an internal conflict
- Vivid sensory details
- An unexpected but satisfying resolution
Theme: The courage to embrace change"
Open Settings from the menu bar to customize the refinement instruction:
You are an expert prompt engineer. Refine and improve the following prompt to make it clearer, more specific, and more effective. Return ONLY the refined prompt without any explanations or meta-commentary.
Original prompt:
{PROMPT}
- ββ§P - Refine selected prompt
- β, - Open settings (when menu is focused)
- βQ - Quit app (when menu is focused)
- Check that Accessibility permissions are granted
- Try restarting the app
- Make sure no other app is using ββ§P
- Grant Accessibility permissions in System Settings
- Make sure text is actually selected before pressing hotkey
- The app monitors clipboard changes
- Make sure you copy (βC) Claude's response
- Wait ~0.5s after copying for auto-paste to trigger
- For Claude Desktop: Make sure it's installed
- For web: Default browser will open to claude.ai/new
- You can manually open Claude and the text will be in clipboard
This app does NOT use the Claude API. Instead:
- It captures your selected text
- Formats it with a prompt engineering instruction
- Copies it to clipboard
- Opens Claude (Desktop or web)
- Pastes the request
- You interact with Claude normally (counts toward your subscription usage)
- When you copy the response, it auto-pastes back
This means:
- β No API key needed
- β No extra API costs
- β Uses your existing Claude Pro/subscription
- β Full Claude features (artifacts, web search, etc.)
User selects text β ββ§P hotkey
β
App captures text via simulated βC
β
Formats with prompt engineering template
β
Opens Claude (Desktop or web)
β
Auto-pastes request via simulated βV
β
User reviews and copies (βC) Claude's response
β
Clipboard monitor detects change
β
App switches back to original app
β
Auto-pastes refined prompt via simulated βV
- macOS 13.0+ (Ventura or later)
- Claude Desktop app OR web browser
- Accessibility permissions
- All processing happens locally
- Text is only sent to Claude (your subscription)
- No data is stored or logged
- Clipboard monitoring only active while waiting for response
MIT License - Feel free to modify and distribute
Created with β€οΈ for better prompt engineering