By methuz
Automatically provides grammar corrections and refined versions of your prompts before Claude responds
npx claudepluginhub methuz/claude-prompt-improver --plugin prompt-improverA Claude Code plugin that automatically provides grammar corrections and refined versions of your prompts before Claude responds.
Every time you submit a prompt, Claude will first output:
1. Grammar: [Your prompt with corrected grammar, spelling, and punctuation] 2. Refined: [Your prompt rewritten as a highly educated writer would phrase it]
Then Claude proceeds with the actual response.
You type:
why this dont work good
Claude responds:
1. Grammar: Why doesn't this work well? 2. Refined: What is preventing this from functioning properly?
[Then the actual answer to your question...]
# Add the marketplace
/plugin marketplace add methuz/claude-prompt-improver
# Install the plugin
/plugin install prompt-improver@prompt-improver-marketplace
# Clone this repository
git clone https://github.com/methuz/claude-prompt-improver.git
# Add as local marketplace
/plugin marketplace add ./claude-prompt-improver
# Install the plugin
/plugin install prompt-improver@prompt-improver-marketplace
If the plugin system doesn't work, add this to your ~/.claude/settings.json:
{
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "/path/to/claude-prompt-improver/hooks/prompt-improver.py",
"timeout": 10
}
]
}
]
}
}
Edit hooks/prompt-improver.py to customize:
| Variable | Default | Description |
|---|---|---|
MIN_PROMPT_LENGTH | 10 | Skip prompts shorter than this |
SKIP_PREFIXES | ("/", "!", "?") | Skip prompts starting with these |
SKIP_EXACT | {"y", "n", "yes", ...} | Skip these exact phrases |
Edit the create_instruction() function in prompt-improver.py:
Output format (use exactly):
> **1. Corrected**: [grammatically correct version]
> **2. Academic**: [formal academic prose]
> **3. Concise**: [shortened essential version]
Output format (use exactly):
> **1. Grammar**: [fix errors]
> **2. Technical**: [as a senior engineer would phrase it]
Output format (use exactly):
> **Corrected**: [grammar fixed]
┌─────────────────┐ ┌──────────────────────┐ ┌─────────────────┐
│ User types │────▶│ prompt-improver.py │────▶│ Claude sees │
│ prompt │ │ intercepts & │ │ instruction + │
│ │ │ adds instruction │ │ original │
└─────────────────┘ └──────────────────────┘ └─────────────────┘
UserPromptSubmit hook<MANDATORY-FIRST-RESPONSE> instructionThe plugin automatically skips:
/help, /clear, etc.)yes, no, ok, thanks)/plugin uninstall prompt-improver@prompt-improver-marketplace
Or manually remove the hook from ~/.claude/settings.json.
MIT License - feel free to modify and share!
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Intelligent prompt optimization using skill-based architecture. Enriches vague prompts with research-based clarifying questions before Claude Code executes them
Persistent memory system for Claude Code - seamlessly preserve context across sessions