✨ Prompt Enhancer & RTL Fix
August 28, 2026 · View on GitHub
A Chrome extension that turns rough ideas into well-structured, effective prompts for LLMs — with a bonus automatic RTL/LTR text-direction fix for Persian and Arabic text on AI chat platforms.
Overview
Prompt Enhancer adds an "Enhance Prompt" button next to text inputs on your favorite AI chat platforms. When clicked, the selected provider (OpenRouter or Groq) refines the text into a strong, self-contained prompt and inserts it back into the input — ready to send. It also detects Persian/Arabic text on the page and fixes its direction and alignment automatically.
Features
- ✨ Prompt Enhancement — restructures rough input into clear, actionable prompts while preserving intent, language, and tone
- 🔀 Provider Choice — switch between OpenRouter and Groq with a segmented toggle
- 🧠 Model Picker — custom dropdown with badges (Default / Free / Fast / Versatile / Reasoning) for each provider
- 💾 Secure Storage — API keys and preferences saved per provider via
chrome.storage.sync - 🌐 RTL/LTR Auto-Fix — Persian/Arabic text is detected and rendered right-to-left with the Vazirmatn font
- ⌨️ Keyboard Shortcut —
Ctrl+Shift+E(orCmd+Shift+Eon macOS) enhances the focused input - 💬 Inline Feedback — gradient button with a spinner while processing, plus glass-style success/error toasts
- 🎨 Modern UI — dark-first popup with gradient accents and full light-mode support
Screenshots
Popup — provider, model, and API key settings:
Enhance Prompt button next to the input:
Supported Models
Groq (default provider)
| Model | Model ID |
|---|---|
| Qwen 3.8 27B (default) | qwen/qwen3.8-27b |
| Llama 3.3 70B (Versatile) | llama-3.3-70b-versatile |
| Llama 3.1 8B (Fast) | llama-3.1-8b-instant |
| Llama 4 Maverick 17B | meta-llama/llama-4-maverick-17b-128e-instruct |
| Llama 4 Scout 17B | meta-llama/llama-4-scout-17b-16e-instruct |
| Kimi K2 (Reasoning) | moonshotai/kimi-k2-instruct |
| GPT OSS 120B | openai/gpt-oss-120b |
| GPT OSS 20B (Fast) | openai/gpt-oss-20b |
| Qwen 3 32B | qwen/qwen3-32b |
| Qwen 3.6 27B | qwen/qwen3.6-27b |
OpenRouter
| Model | Model ID |
|---|---|
| OpenRouter Free Router (default) | openrouter/free |
| Dots3 Note Preview | dots-studio/dots-3-note-preview:free |
| Liquid LFM 2.5 2.6B | liquid/lfm-2.5-2.6b:free |
| NVIDIA Nemotron 3.5 Lightning | nvidia/nemotron-3.5-lightning:free |
| Thinking Machines Inkling | thinkingmachines/inkling:free |
| Poolside Laguna S 2.1 | poolside/laguna-s-2.1:free |
| Cohere North Mini Code | cohere/north-mini-code:free |
| GLM 5.2 | z-ai/glm-5.2:free |
| MiniMax M3 | minimax/minimax-m3:free |
💡 Saved models that are later removed by a provider automatically fall back to the default — no stale-model errors.
Installation
- Download the repository — download it as a ZIP file and extract it to your local machine (or clone it with
git clone). - Open the Extensions page — navigate to
chrome://extensions/in Chrome. - Enable Developer mode — toggle the "Developer mode" switch in the top-right corner.
- Load unpacked — click the "Load unpacked" button in the top-left corner.
- Select the extension directory — browse to the extracted folder and select it.
- Done — Prompt Enhancer & RTL Fix now appears on the Extensions page. Pin it to the toolbar for quick access.
Usage
1. Configure the provider
- Click the Prompt Enhancer icon in the Chrome toolbar to open the popup.
- Pick a provider (OpenRouter or Groq) using the segmented toggle.
- Enter the matching API key and choose a model from the dropdown.
- Click Save Settings — the key and model are stored per provider.
2. Enhance a prompt
-
Navigate to a supported site (ChatGPT, Claude, Gemini, DeepSeek, Perplexity, Copilot, Grok, and many more) and an Enhance Prompt button appears near the input:
-
Write your rough prompt — or just select part of the text you want improved.
-
Click Enhance Prompt (or press
Ctrl+Shift+Ewhile the input is focused). The button shows a spinner while processing: -
The input is replaced with the enhanced prompt, and a success toast appears. You can also Revert to the original text at any time:
Keyboard Shortcut
| Action | Windows / Linux | macOS |
|---|---|---|
| Enhance current prompt | Ctrl+Shift+E | Cmd+Shift+E |
Important Notes
- Provider API key required — create an OpenRouter key at openrouter.ai/keys or a Groq key at console.groq.com/keys.
- API usage — model availability, free-tier limits, and pricing can change; check the provider's model page before use.
- Error handling — missing keys, invalid keys, rate limits, and unavailable models are reported via an inline toast with guidance.
- Selection-aware — if text is selected inside the input, only the selection is enhanced.
Contributing
Contributions are welcome! Feel free to fork this repository, make your changes, and submit a pull request.
License
Released under the MIT License.