Skip to content

Darshan3690/PromptGenius

Repository files navigation

🚀 PromptGenius – AI Prompt Enhancer

A beautiful Chrome extension that transforms basic prompts into optimized, professional CRISPE-formatted prompts for any AI model.

PromptGenius enhances ordinary inputs into high-quality, structured, and model-ready prompts using the CRISPE framework. Designed with a sleek UI and powerful client-side engine, it works instantly—no API keys required.


✨ Features

🔒 Client-Side Processing

All processing happens locally in your browser.

  • No API keys
  • No external servers
  • Zero privacy concerns

🧠 CRISPE Framework Optimization

Automatically rewrites any prompt using the CRISPE methodology:

  • Capacity & Role
  • Response Format
  • Insight (Context)
  • Statement of Task
  • Personality & Tone
  • Examples (Optional)

🎨 Modern, Beautiful Interface

  • Tailwind CSS styling
  • GSAP animations
  • Animated streaming output
  • Lucide icons

🤖 Multi-Model Support

Optimize prompts for:

  • OpenAI ChatGPT / GPT-4o
  • Google Gemini Pro
  • Anthropic Claude 3.5

🎛️ Style Variations

Choose output tone:

  • Professional
  • Creative
  • Technical
  • Concise

✨ In-Page Enhancement

A floating ✨ enhancer button appears on any text input.

🖱️ Context Menu Integration

Right-click selected text → Enhance with PromptGenius.


🎯 How It Works

  1. Enter your basic prompt
  2. Select target AI model
  3. Choose tone/style
  4. Click "Enhance Prompt"
  5. Watch the CRISPE-formatted result animate
  6. Copy or open in provider window

Example:

Input: write a python function

Output: A complete CRISPE-formatted prompt.


📦 Installation

  1. Clone or download this repository
  2. Open Chrome and go to chrome://extensions
  3. Enable Developer Mode
  4. Click Load unpacked
  5. Select the ai-prompt-enhancer folder

🏗️ Project Structure

ai-prompt-enhancer/
├── background.js
├── content.js
├── popup.html
├── promptEnhancer.js
├── manifest.json
└── tests/

🎨 CRISPE Framework Explained

Component Description
Capacity & Role Defines AI's identity
Response Format Specifies output structure
Insight (Context) Provides background
Statement of Task Main instruction
Personality Sets tone/style
Examples Guides desired output

🧪 Testing

npm test

🔧 Technical Stack

  • Manifest V3
  • Tailwind CSS
  • GSAP
  • Lucide Icons
  • ES Modules
  • Jest

🚀 Usage Examples

Example 1

Input: write a python function to add numbers

Enhanced Output:

You are a senior Python developer...

Example 2

Input: explain caching in OS

Enhanced Output: Full CRISPE explanation.


📝 License

ISC


❤️ Credits

Built using the CRISPE Framework.


⭐ PromptGenius – Make Every Prompt Extraordinary

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published