Skip to content

Repository files navigation

✨ Prompt Enhancer

Supercharge your AI prompts with one click.

A Chrome Extension that enhances your prompts on ChatGPT, Claude, and Gemini — making them clearer, more structured, and dramatically more effective.

Chrome Extension Manifest V3 License: MIT PRs Welcome


Prompt Enhancer Logo

Works on   ChatGPT · Claude · Gemini · Grok · DeepSeek · Perplexity · HuggingChat


🚀 Key Features

Feature Description
✨ One-Click Enhance Floating "Enhance" button appears right next to your prompt input
🎯 Smart Detection Auto-detects prompt category (coding, writing, analysis, creative, etc.)
📋 8 Templates Pre-built enhancement patterns for different use cases
⚡ 3 Enhancement Levels Light (cleanup), Medium (structure), Aggressive (full rewrite)
📝 Fix Typos Dedicated Quick Enhance button to instantly correct English grammar
🔌 Hybrid Mode Works offline with templates; add an API key for AI-powered enhancement
📜 History Keeps track of your last 50 enhanced prompts
🎨 Premium UI Dark glassmorphism design with smooth animations
⚙️ Customizable Default template, level, and API provider settings

📸 Screenshots

Popup UI On-Page Button Settings
Dark glassmorphism popup with template grid and quick enhance Floating ✨ Enhance button on ChatGPT/Claude/Gemini API key management and preferences

🛠️ Tech Stack

  • Platform: Chrome Extension (Manifest V3)
  • Language: Vanilla JavaScript (no frameworks, lightweight)
  • Styling: CSS Variables with glassmorphism design
  • Typography: Inter (Google Fonts)
  • Storage: chrome.storage API
  • AI APIs (optional): Google Gemini, OpenAI, Groq, OpenRouter

📦 Installation

From Source (Developer Mode)

  1. Clone the repository

    git clone https://github.com/JeevaVenkidu/Prompt-Enhancer.git
    cd Prompt-Enhancer
  2. Load in Chrome

    • Navigate to chrome://extensions/
    • Enable Developer mode (top-right toggle)
    • Click Load unpacked
    • Select the Prompt-Enhancer folder
  3. Done! The extension icon will appear in your toolbar. Visit any supported AI platform to see the ✨ Enhance button.


🎯 How to Use

On AI Platforms (Content Script)

  1. Go to ChatGPT, Claude, or Gemini
  2. Type your prompt in the input field
  3. Click the ✨ Enhance button that appears
  4. Your prompt is instantly enhanced!

💡 Tip: Right-click the Enhance button to switch templates and enhancement levels on-the-fly.

Quick Enhance (Popup)

  1. Click the extension icon in the toolbar
  2. Select a template (General, Coding, Writing, etc.)
  3. Choose an enhancement level (Light, Medium, Aggressive)
  4. Paste your prompt and click ✨ Enhance Prompt or 📝 Fix Typos
  5. Copy the enhanced result

⌨️ Shortcut: Press Ctrl+Enter to enhance from the popup.


📋 Enhancement Templates

Template Icon Best For
General Everyday prompts, Q&A
Coding 💻 Code generation, debugging, architecture
Writing ✍️ Content creation, emails, copywriting
Analysis 📊 Data analysis, research, comparisons
Creative 🎨 Design, brainstorming, ideation
Learning 📚 Explanations, tutorials, teaching
Academic 🎓 Research papers, scholarly writing
Business 💼 Strategy, planning, reports

⚡ Enhancement Levels

Level Effect Example
🌱 Light Minor cleanup and formatting Adds punctuation, basic clarity
Medium Add structure, role, and format Adds role prefix, output format instructions
🚀 Aggressive Full prompt restructuring Complete rewrite with role, context, requirements, and quality standards

🔌 Hybrid Mode

The extension works in two modes:

Template Mode (Default — No API Key Required)

Uses built-in enhancement algorithms and templates. Works completely offline. Great for most use cases.

AI-Powered Mode (Optional)

Add your own API key for smarter, context-aware enhancement:

  1. Click the ⚙️ Settings icon in the popup
  2. Choose Google Gemini, OpenAI, Groq, or OpenRouter
  3. Paste your API key
  4. Click Save API Key
Provider Free Tier Get API Key
Google Gemini ✅ Generous free tier Google AI Studio
OpenAI ❌ Pay-as-you-go OpenAI Platform
Groq ✅ Free tier Groq Console
OpenRouter ✅ Free tier OpenRouter

🔒 Security: Your API key is stored locally in chrome.storage.sync and never leaves your browser except for API calls.


🏗️ Architecture

Prompt Enhancer/
├── manifest.json              # Extension config (Manifest V3)
├── icons/                     # Extension icons (16/48/128px)
│   ├── icon16.png
│   ├── icon48.png
│   └── icon128.png
├── lib/                       # Core logic (shared)
│   ├── enhancer.js            # Enhancement engine
│   └── templates.js           # Pre-built templates
├── content/                   # Content scripts (injected into pages)
│   └── content.js             # Detects inputs, injects button
├── styles/                    # Injected CSS
│   └── content.css            # Floating button styling
├── popup/                     # Extension popup UI
│   ├── popup.html
│   ├── popup.css
│   └── popup.js
├── background/                # Service worker
│   └── service-worker.js      # API calls & message routing
└── options/                   # Settings page
    └── options.html

Communication Flow

Popup ←→ Service Worker (Background) ←→ Content Script
                ↓                              ↓
          chrome.storage              AI Platform Input
          (Gemini/OpenAI              (ChatGPT, Claude,
            API calls)                    Gemini)

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Quick Start for Contributors

# Fork and clone
git clone https://github.com/YOUR_USERNAME/Prompt-Enhancer.git
cd Prompt-Enhancer

# Load in Chrome (Developer Mode)
# Make your changes
# Test thoroughly
# Submit a PR

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.


🔒 Security

If you discover a security vulnerability, please see SECURITY.md for responsible disclosure guidelines.


📝 Changelog

See CHANGELOG.md for a list of changes.


🙏 Acknowledgments


Built with ❤️ by Jeeva Venkidu

⭐ Star this repo if you find it useful!

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages