Skip to content

Clementtang/metamagic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metamagic

繁體中文

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.

Features

  • 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

Installation

git clone https://github.com/Clementtang/metamagic.git ~/metamagic
~/metamagic/install.sh

Usage

# Optimize clipboard content
/op

# Optimize specific text
/op "your prompt here"

# Optimize from file
/op --file path/to/prompt.md

Output Format

## 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.

Iterative Refinement

After receiving results, you can continue refining:

  • "Make it shorter"
  • "Add more examples"
  • "Rewrite in English"
  • "Optimize for Claude"

Requirements

  • Claude Code
  • macOS (for clipboard integration via pbcopy/pbpaste)

License

MIT

About

Metamagic - Claude Code prompt optimizer with clipboard integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages