A Claude Code command for quickly optimizing prompts with systematic analysis and clipboard integration.
In D&D, Metamagic allows sorcerers to alter spells. Here, it alters your prompts.
- Systematic Analysis - Evaluates prompts across 5 dimensions: clarity, completeness, structure, examples, and role definition
- Clipboard Integration - Reads from and writes to clipboard automatically (macOS)
- Iterative Refinement - Continue the conversation to further adjust results
git clone https://github.com/Clementtang/metamagic.git ~/metamagic
~/metamagic/install.sh# Optimize clipboard content
/op
# Optimize specific text
/op "your prompt here"
# Optimize from file
/op --file path/to/prompt.md## Prompt Analysis
### Original Prompt
[shows original content]
### Issues Found
1. [issue type] [description]
2. [suggestion type] [recommendation]
### Optimized Version
[improved prompt]
The optimized prompt is automatically copied to your clipboard.
After receiving results, you can continue refining:
- "Make it shorter"
- "Add more examples"
- "Rewrite in English"
- "Optimize for Claude"
- Claude Code
- macOS (for clipboard integration via
pbcopy/pbpaste)
MIT